mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +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:
parent
84c1533b53
commit
d39ee2fafa
@ -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)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user