Bläddra i källkod

fix #1983

TAGMSG should not get automatic RPL_AWAY replies
tags/v2.11.0-rc1
Shivaram Lingamneni 1 år sedan
förälder
incheckning
fa3de3e149
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go Visa fil

@@ -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)

Laddar…
Avbryt
Spara