Stupid variable name changes...

This commit is contained in:
Jeremy Fincher 2003-04-11 20:26:49 +00:00
parent 04855169e2
commit 7828b73e1b

View File

@ -44,7 +44,7 @@ import callbacks
class AdminCommands(privmsgs.CapabilityCheckingPrivmsg): class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
capability = 'admin' capability = 'admin'
def join(self, irc, msg, args): def join(self, irc, msg, args):
"""<channel> [<channel> ...] """<channel>[,<key>] [<channel>[,<key>] ...]
Tell the bot to join the whitespace-separated list of channels Tell the bot to join the whitespace-separated list of channels
you give it. If a channel requires a key, attach it behind the you give it. If a channel requires a key, attach it behind the
@ -54,8 +54,8 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
keys = [] keys = []
channels = [] channels = []
for channel in args: for channel in args:
if ',' in s: if ',' in channel:
(channel, key) = s.split(',', 1) (channel, key) = channel.split(',', 1)
channels.insert(0, channel) channels.insert(0, channel)
keys.insert(0, key) keys.insert(0, key)
else: else: