mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
commands: actually break when identify is sent in a channel
This commit is contained in:
parent
d4200424fa
commit
6034333682
@ -32,6 +32,7 @@ def identify(irc, source, args):
|
|||||||
if utils.isChannel(irc.called_by):
|
if utils.isChannel(irc.called_by):
|
||||||
irc.msg(irc.called_by, 'Error: This command must be sent in private. '
|
irc.msg(irc.called_by, 'Error: This command must be sent in private. '
|
||||||
'(Would you really type a password inside a public channel?)')
|
'(Would you really type a password inside a public channel?)')
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
username, password = args[0], args[1]
|
username, password = args[0], args[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Loading…
Reference in New Issue
Block a user