From d39ee2fafa40e43aed85147737e7f80a95ee02bb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 4 Oct 2017 03:51:41 -0400 Subject: [PATCH] fix: RPL_MONONLINE must be server-prefixed also, remove the self-notification check; clients are probably not monitoring themselves, and it doesn't much matter if they are --- irc/monitor.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/irc/monitor.go b/irc/monitor.go index 0f3fb9c5..1d27100a 100644 --- a/irc/monitor.go +++ b/irc/monitor.go @@ -51,10 +51,7 @@ func (manager *MonitorManager) AlertAbout(client *Client, online bool) { // asynchronously send all the notifications go func() { for _, mClient := range watchers { - // don't have to notify ourselves - if mClient != client { - mClient.SendFromClient("", client, nil, command, mClient.getNick(), nick) - } + mClient.Send(nil, client.server.name, command, mClient.getNick(), nick) } }() }