diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-01 19:35:47 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-01 20:39:37 +0200 |
commit | fea801ac7a0bc81452d4e606fa72a2b6255598de (patch) | |
tree | a04f1b86941e7eb10423e6a6565bb25c60701db0 /xS/main.go | |
parent | cbdbfc3d642761741f148c6be83851d839a00a94 (diff) | |
download | xK-fea801ac7a0bc81452d4e606fa72a2b6255598de.tar.gz xK-fea801ac7a0bc81452d4e606fa72a2b6255598de.tar.xz xK-fea801ac7a0bc81452d4e606fa72a2b6255598de.zip |
hid: ircSendToRoommates -> ircNotifyRoommates
Should be clearer.
Diffstat (limited to 'xS/main.go')
-rw-r--r-- | xS/main.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -828,8 +828,7 @@ func ircChannelDestroyIfEmpty(ch *channel) { } } -// TODO: Improve the name as it takes mode +q into account. -func ircSendToRoommates(c *client, message string) { +func ircNotifyRoommates(c *client, message string) { targets := make(map[*client]bool) for _, ch := range channels { _, present := ch.userModes[c] @@ -929,7 +928,7 @@ func (c *client) unregister(reason string) { return } - ircSendToRoommates(c, fmt.Sprintf(":%s!%s@%s QUIT :%s", + ircNotifyRoommates(c, fmt.Sprintf(":%s!%s@%s QUIT :%s", c.nickname, c.username, c.hostname, reason)) // The eventual QUIT message will take care of state at clients. @@ -1379,7 +1378,7 @@ func ircHandleNICK(msg *message, c *client) { message := fmt.Sprintf(":%s!%s@%s NICK :%s", c.nickname, c.username, c.hostname, nickname) - ircSendToRoommates(c, message) + ircNotifyRoommates(c, message) c.send(message) } |