3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

corecommands: fix no-identify-in-channel logic

This commit is contained in:
James Lu 2016-07-13 19:32:39 -07:00
parent 0c8397e940
commit b79f391be6

View File

@ -21,7 +21,7 @@ def identify(irc, source, args):
"""<username> <password>
Logs in to PyLink using the configured administrator account."""
if utils.isChannel(irc.called_by):
if utils.isChannel(irc.called_in):
irc.reply('Error: This command must be sent in private. '
'(Would you really type a password inside a channel?)')
return