Browse Source

send `*` for WHOX o (oplevel) instead of `0`

Jobe points out that 0 is a valid oplevel in some contexts,
* is a better placeholder for "unimplemented".
tags/v2.9.0-rc1
Shivaram Lingamneni 2 years ago
parent
commit
f3f805acb8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      irc/handlers.go

+ 3
- 3
irc/handlers.go View File

@@ -3319,9 +3319,9 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response
3319 3319
 		}
3320 3320
 		params = append(params, fAccount)
3321 3321
 	}
3322
-	if fields.Has('o') { // target's channel power level
3323
-		//TODO: implement this
3324
-		params = append(params, "0")
3322
+	if fields.Has('o') {
3323
+		// channel oplevel, not implemented
3324
+		params = append(params, "*")
3325 3325
 	}
3326 3326
 	if fields.Has('r') {
3327 3327
 		params = append(params, details.realname)

Loading…
Cancel
Save