Kaynağa Gözat

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
tags/v0.9.2-beta
Shivaram Lingamneni 6 yıl önce
ebeveyn
işleme
d39ee2fafa
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1
    4
      irc/monitor.go

+ 1
- 4
irc/monitor.go Dosyayı Görüntüle

@@ -51,10 +51,7 @@ func (manager *MonitorManager) AlertAbout(client *Client, online bool) {
51 51
 	// asynchronously send all the notifications
52 52
 	go func() {
53 53
 		for _, mClient := range watchers {
54
-			// don't have to notify ourselves
55
-			if mClient != client {
56
-				mClient.SendFromClient("", client, nil, command, mClient.getNick(), nick)
57
-			}
54
+			mClient.Send(nil, client.server.name, command, mClient.getNick(), nick)
58 55
 		}
59 56
 	}()
60 57
 }

Loading…
İptal
Kaydet