mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Stupid variable name changes...
This commit is contained in:
parent
04855169e2
commit
7828b73e1b
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user