3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 23:09:23 +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> """<username> <password>
Logs in to PyLink using the configured administrator account.""" 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. ' irc.reply('Error: This command must be sent in private. '
'(Would you really type a password inside a channel?)') '(Would you really type a password inside a channel?)')
return return