From fa3de3e149b25c59d6cf9285140639644136f789 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 18 Jul 2022 00:54:01 -0400 Subject: [PATCH] fix #1983 TAGMSG should not get automatic RPL_AWAY replies --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index bb5dc1ba..7f3143d6 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2360,7 +2360,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi // the originating session may get an echo message: rb.addEchoMessage(tags, nickMaskString, accountName, command, tnick, message) - if histType != history.Notice { + if histType == history.Privmsg { //TODO(dan): possibly implement cooldown of away notifications to users if away, awayMessage := user.Away(); away { rb.Add(nil, server.name, RPL_AWAY, client.Nick(), tnick, awayMessage)