add Alias at priority 1 (so that it is handled first)

This commit is contained in:
Brian S. Stephan 2011-01-07 01:11:35 -06:00
parent de3f9d9ae7
commit b7ce4b6dcc

View File

@ -27,6 +27,9 @@ class Alias(Module):
"""Alias commands as !command, circumventing bot addressing stuff."""
def priority(self):
return 1
def do(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
"""See if there is an alias ("!command") in the text, and if so, translate it into
an internal bot command and run it.