3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

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
This commit is contained in:
Shivaram Lingamneni 2017-10-04 03:51:41 -04:00
parent 84c1533b53
commit d39ee2fafa

View File

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