New "limit" config variable, and some module fixes.

This commit is contained in:
Sean B. Palmer
2008-03-31 16:17:32 +01:00
parent fb2cd452e9
commit 286d4a8497
10 changed files with 48 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ def msg(phenny, input):
if input.sender.startswith('#'): return
if input.admin:
phenny.msg(input.group(2), input.group(3))
msg.rule = (['msg'], r'(#\S+) (.*)')
msg.rule = (['msg'], r'(#?\S+) (.*)')
msg.priority = 'low'
def me(phenny, input):
@@ -51,7 +51,7 @@ def me(phenny, input):
if input.admin:
msg = '\x01ACTION %s\x01' % input.group(3)
phenny.msg(input.group(2), msg)
me.rule = (['me'], r'(#\S+) (.*)')
me.rule = (['me'], r'(#?\S+) (.*)')
me.priority = 'low'
if __name__ == '__main__':