diff --git a/irc/handlers.go b/irc/handlers.go index 7270fb04..3a4b3fa1 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -489,7 +489,7 @@ func awayHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Resp // dispatch away-notify for session := range client.Friends(caps.AwayNotify) { - if session != rb.session && rb.session.client == client { + if session != rb.session && rb.session.client == session.client { session.Send(nil, server.name, "MODE", details.nick, modeString) } if isAway {