mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-20 06:28:09 -07:00
WHOIS: Use inbuilt functionality to force trailing, as suggested by @vegax87
This commit is contained in:
+5
-1
@@ -535,10 +535,14 @@ func (client *Client) SendFromClient(msgid string, from *Client, tags *map[strin
|
||||
}
|
||||
|
||||
var (
|
||||
// these are all the output commands that MUST have their last param be a trailing
|
||||
// these are all the output commands that MUST have their last param be a trailing.
|
||||
// this is needed because silly clients like to treat trailing as separate from the
|
||||
// other params in messages.
|
||||
commandsThatMustUseTrailing = map[string]bool{
|
||||
"PRIVMSG": true,
|
||||
"NOTICE": true,
|
||||
|
||||
RPL_WHOISCHANNELS: true,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user