3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

commands: actually break when identify is sent in a channel

This commit is contained in:
James Lu 2015-10-18 10:09:31 -07:00
parent d4200424fa
commit 6034333682

View File

@ -32,6 +32,7 @@ def identify(irc, source, args):
if utils.isChannel(irc.called_by):
irc.msg(irc.called_by, 'Error: This command must be sent in private. '
'(Would you really type a password inside a public channel?)')
return
try:
username, password = args[0], args[1]
except IndexError: