formatWhois: Fix channel names having the # cut off

This commit is contained in:
James Lu 2015-05-15 18:46:28 -07:00
parent c651bc5482
commit 5190db39a4

View File

@ -440,11 +440,11 @@ def formatWhois(irc, replies, caller='', channel='', command='whois'):
if not modes:
normal.append(chan)
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, ('%',)):
halfops.append(chan[1:])
halfops.append(chan)
elif utils.iter.any(lambda c: c in modes, ('+',)):
voices.append(chan[1:])
voices.append(chan)
L = []
if ops:
L.append(format(_('is an op on %L'), ops))