Bug in removing channels from supybot.channels.

This commit is contained in:
Jeremy Fincher 2004-07-28 03:27:35 +00:00
parent a42eb99cdf
commit 73af1f2a8d

View File

@ -275,7 +275,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
L = []
for channelWithPass in conf.supybot.channels():
channel = channelWithPass.split(',')[0]
if arg == channel:
if chan == channel:
L.append(channelWithPass)
# This is necessary so the set doesn't change size while iterating.
for channel in L: