Fixed bug in relay whois; chopping characters off the end of the channel rather than the beginning.

This commit is contained in:
Jeremy Fincher 2003-11-04 08:50:10 +00:00
parent a456c5ea57
commit afa0cb8f41

View File

@ -389,11 +389,11 @@ class Relay(callbacks.Privmsg, plugins.Toggleable):
halfops = [] halfops = []
for channel in channels: for channel in channels:
if channel.startswith('@'): if channel.startswith('@'):
ops.append(channel[:-1]) ops.append(channel[1:])
elif channel.startswith('%'): elif channel.startswith('%'):
halfops.append(channel[:-1]) halfops.append(channel[1:])
elif channel.startswith('+'): elif channel.startswith('+'):
voices.append(channel[:-1]) voices.append(channel[1:])
else: else:
normal.append(channel) normal.append(channel)
L = [] L = []