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
|
admin_unlocked = True
|
||||||
except NoOptionError: pass
|
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
|
# first see if the aliases are being directly manipulated via add/remove
|
||||||
whats = what.split(' ')
|
whats = what.split(' ')
|
||||||
try:
|
try:
|
||||||
@ -138,11 +135,10 @@ class DrBotIRC(irclib.IRC):
|
|||||||
except NoOptionError: pass
|
except NoOptionError: pass
|
||||||
except NoSectionError: pass
|
except NoSectionError: pass
|
||||||
|
|
||||||
# done searching for recursions in this level. we will now operate on
|
return self.reply(connection, replypath, self.try_recursion(connection, event, nick, userhost, None, what, admin_unlocked))
|
||||||
# whatever recursion-satisfied string we have, checking for alias and
|
|
||||||
# running module commands
|
|
||||||
|
|
||||||
# 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:
|
try:
|
||||||
alias_list = self.config.options('Alias')
|
alias_list = self.config.options('Alias')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user