Skip to content

Commit

Permalink
send * for WHOX o (oplevel) instead of 0
Browse files Browse the repository at this point in the history
Jobe points out that 0 is a valid oplevel in some contexts,
* is a better placeholder for "unimplemented".
  • Loading branch information
slingamn committed Dec 12, 2021
1 parent 1cd31f4 commit f3f805a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions irc/handlers.go
Expand Up @@ -3319,9 +3319,9 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response
}
params = append(params, fAccount)
}
if fields.Has('o') { // target's channel power level
//TODO: implement this
params = append(params, "0")
if fields.Has('o') {
// channel oplevel, not implemented
params = append(params, "*")
}
if fields.Has('r') {
params = append(params, details.realname)
Expand Down

0 comments on commit f3f805a

Please sign in to comment.