mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
formatWhois: Fix channel names having the # cut off
This commit is contained in:
parent
c651bc5482
commit
5190db39a4
@ -440,11 +440,11 @@ def formatWhois(irc, replies, caller='', channel='', command='whois'):
|
|||||||
if not modes:
|
if not modes:
|
||||||
normal.append(chan)
|
normal.append(chan)
|
||||||
elif utils.iter.any(lambda c: c in modes,('@', '&', '~', '!')):
|
elif utils.iter.any(lambda c: c in modes,('@', '&', '~', '!')):
|
||||||
ops.append(chan[1:])
|
ops.append(chan)
|
||||||
elif utils.iter.any(lambda c: c in modes, ('%',)):
|
elif utils.iter.any(lambda c: c in modes, ('%',)):
|
||||||
halfops.append(chan[1:])
|
halfops.append(chan)
|
||||||
elif utils.iter.any(lambda c: c in modes, ('+',)):
|
elif utils.iter.any(lambda c: c in modes, ('+',)):
|
||||||
voices.append(chan[1:])
|
voices.append(chan)
|
||||||
L = []
|
L = []
|
||||||
if ops:
|
if ops:
|
||||||
L.append(format(_('is an op on %L'), ops))
|
L.append(format(_('is an op on %L'), ops))
|
||||||
|
Loading…
Reference in New Issue
Block a user