3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00
TAGMSG should not get automatic RPL_AWAY replies
This commit is contained in:
Shivaram Lingamneni 2022-07-18 00:54:01 -04:00
parent 2bfa13b7d0
commit fa3de3e149

View File

@ -2360,7 +2360,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
// the originating session may get an echo message: // the originating session may get an echo message:
rb.addEchoMessage(tags, nickMaskString, accountName, command, tnick, 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 //TODO(dan): possibly implement cooldown of away notifications to users
if away, awayMessage := user.Away(); away { if away, awayMessage := user.Away(); away {
rb.Add(nil, server.name, RPL_AWAY, client.Nick(), tnick, awayMessage) rb.Add(nil, server.name, RPL_AWAY, client.Nick(), tnick, awayMessage)