Skip to content

Commit

Permalink
Merge pull request #1998 from slingamn/away
Browse files Browse the repository at this point in the history
fix #1996
  • Loading branch information
slingamn committed Sep 11, 2022
2 parents 57a2131 + 4e0d2d6 commit a9c77af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ func awayHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
var isAway bool
var awayMessage string
if len(msg.Params) > 0 {
isAway = true
awayMessage = msg.Params[0]
awayMessage = ircutils.TruncateUTF8Safe(awayMessage, server.Config().Limits.AwayLen)
}
isAway = (awayMessage != "") // #1996

rb.session.SetAway(awayMessage)

Expand Down

0 comments on commit a9c77af

Please sign in to comment.