move !alias manipulation commands out of try_alias and into the pubmsg/privmsg handler
This commit is contained in:
parent
4cac5f1a93
commit
a234807335
10
DrBotIRC.py
10
DrBotIRC.py
|
@ -103,9 +103,6 @@ class DrBotIRC(irclib.IRC):
|
|||
admin_unlocked = True
|
||||
except NoOptionError: pass
|
||||
|
||||
return self.reply(connection, replypath, self.try_recursion(connection, event, nick, userhost, None, what, admin_unlocked))
|
||||
|
||||
def try_alias(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
|
||||
# first see if the aliases are being directly manipulated via add/remove
|
||||
whats = what.split(' ')
|
||||
try:
|
||||
|
@ -138,11 +135,10 @@ class DrBotIRC(irclib.IRC):
|
|||
except NoOptionError: pass
|
||||
except NoSectionError: pass
|
||||
|
||||
# done searching for recursions in this level. we will now operate on
|
||||
# whatever recursion-satisfied string we have, checking for alias and
|
||||
# running module commands
|
||||
return self.reply(connection, replypath, self.try_recursion(connection, event, nick, userhost, None, what, admin_unlocked))
|
||||
|
||||
# now that that's over, try doing alias work
|
||||
def try_alias(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
|
||||
# try doing alias work
|
||||
try:
|
||||
alias_list = self.config.options('Alias')
|
||||
|
||||
|
|
Loading…
Reference in New Issue