From 21a39de0b480607f7c38fb204695a043d4562d1f Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 7 Aug 2017 16:15:54 -0700 Subject: [PATCH] corecommands: alias 'identify' to 'login' and 'id' --- coremods/corecommands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/coremods/corecommands.py b/coremods/corecommands.py index fe6978f..0125437 100644 --- a/coremods/corecommands.py +++ b/coremods/corecommands.py @@ -25,14 +25,13 @@ def _loginfail(irc, source, username): irc.error('Incorrect credentials.') log.warning("(%s) Failed login to %r from %s", irc.name, username, irc.get_hostmask(source)) -@utils.add_cmd def identify(irc, source, args): """ Logs in to PyLink using the configured administrator account.""" 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?)') + '(Would you really type a password inside a channel?)') return try: username, password = args[0], args[1] @@ -52,7 +51,7 @@ def identify(irc, source, args): else: # Username not found. _loginfail(irc, source, username) - +utils.add_cmd(identify, aliases=('login', 'id')) @utils.add_cmd def shutdown(irc, source, args):