Browse Source

fix #1983

TAGMSG should not get automatic RPL_AWAY replies
tags/v2.11.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
fa3de3e149
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go View File

@@ -2360,7 +2360,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
2360 2360
 
2361 2361
 		// the originating session may get an echo message:
2362 2362
 		rb.addEchoMessage(tags, nickMaskString, accountName, command, tnick, message)
2363
-		if histType != history.Notice {
2363
+		if histType == history.Privmsg {
2364 2364
 			//TODO(dan): possibly implement cooldown of away notifications to users
2365 2365
 			if away, awayMessage := user.Away(); away {
2366 2366
 				rb.Add(nil, server.name, RPL_AWAY, client.Nick(), tnick, awayMessage)

Loading…
Cancel
Save