From 2299ef258897a32bfb883e47bcdc5dc212d46758 Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Mon, 19 Jan 2009 16:47:05 +0000 Subject: Small edits. --- modules/admin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/admin.py') diff --git a/modules/admin.py b/modules/admin.py index 3c3356f..b617c4c 100755 --- a/modules/admin.py +++ b/modules/admin.py @@ -43,9 +43,11 @@ quit.priority = 'low' def msg(phenny, input): # Can only be done in privmsg by an admin if input.sender.startswith('#'): return + a, b = input.group(2), input.group(3) + if (not a) or (not b): return if input.admin: - phenny.msg(input.group(2), input.group(3)) -msg.rule = (['msg'], r'(#?\S+) (.*)') + phenny.msg(a, b) +msg.rule = (['msg'], r'(#?\S+) (.+)') msg.priority = 'low' def me(phenny, input): -- cgit v1.2.3-1-g7c22