summaryrefslogtreecommitdiffstats
path: root/modules/admin.py
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-03-31 16:17:32 +0100
committerSean B. Palmer <http://inamidst.com/sbp/>2008-03-31 16:17:32 +0100
commit286d4a8497621d2f3c0f1f8d66db60b11c87fad5 (patch)
tree23493e843bcb1a1d6b25346a3dfd6290df46d5ba /modules/admin.py
parentfb2cd452e963b8bc048161036903cd82d3b113f0 (diff)
downloadbot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.tar.gz
bot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.tar.bz2
bot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.zip
New "limit" config variable, and some module fixes.
Diffstat (limited to 'modules/admin.py')
-rwxr-xr-xmodules/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin.py b/modules/admin.py
index 24b8fb6..e1dd908 100755
--- a/modules/admin.py
+++ b/modules/admin.py
@@ -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__':