mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-27 01:54:47 -07: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:
@@ -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)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user