From 5190db39a4d5645eb4672a9c2f85baba49310c1d Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 15 May 2015 18:46:28 -0700 Subject: [PATCH] formatWhois: Fix channel names having the # cut off --- src/ircutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ircutils.py b/src/ircutils.py index 4044cf363..606d32f5d 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -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))