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 | a966d8489a771cef957c9c27e093aee6a59c2f99 (patch) | |
| tree | a31f6c144aaebfd4b768f43907b020dce517319b /hid | |
| parent | e0b46a8cff40e9a6d965a18900572c4832e1d075 (diff) | |
| download | haven-a966d8489a771cef957c9c27e093aee6a59c2f99.tar.gz haven-a966d8489a771cef957c9c27e093aee6a59c2f99.tar.xz haven-a966d8489a771cef957c9c27e093aee6a59c2f99.zip | |
hid: ircSendToRoommates -> ircNotifyRoommates
Should be clearer.
Diffstat (limited to 'hid')
| -rw-r--r-- | hid/main.go | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/hid/main.go b/hid/main.go index c3b2875..c078440 100644 --- a/hid/main.go +++ b/hid/main.go @@ -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)  	} | 
