mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1076
This commit is contained in:
parent
c1d4c5596d
commit
2def06b98f
4 changed files with 9 additions and 7 deletions
|
|
@ -25,9 +25,7 @@ func (mm *MonitorManager) Initialize() {
|
|||
}
|
||||
|
||||
// AlertAbout alerts everyone monitoring `client`'s nick that `client` is now {on,off}line.
|
||||
func (manager *MonitorManager) AlertAbout(client *Client, online bool) {
|
||||
cfnick := client.NickCasefolded()
|
||||
nick := client.Nick()
|
||||
func (manager *MonitorManager) AlertAbout(nick, cfnick string, online bool) {
|
||||
var watchers []*Client
|
||||
// safely copy the list of clients watching our nick
|
||||
manager.RLock()
|
||||
|
|
@ -42,7 +40,7 @@ func (manager *MonitorManager) AlertAbout(client *Client, online bool) {
|
|||
}
|
||||
|
||||
for _, mClient := range watchers {
|
||||
mClient.Send(nil, client.server.name, command, mClient.Nick(), nick)
|
||||
mClient.Send(nil, mClient.server.name, command, mClient.Nick(), nick)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue