3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-28 13:42:37 +01:00

corecommands: use irc.error() in login fail wrapper

This commit is contained in:
James Lu 2016-12-16 19:06:33 -08:00
parent f9adaa85ca
commit 7b5fcc3219

View File

@ -25,7 +25,7 @@ def _login(irc, source, username):
def _loginfail(irc, source, username):
"""Internal function to process login failures."""
irc.reply('Error: Incorrect credentials.')
irc.error('Incorrect credentials.')
log.warning("(%s) Failed login to %r from %s", irc.name, username, irc.getHostmask(source))
@utils.add_cmd