changed command to .re

This commit is contained in:
ipsum 2010-01-26 17:57:47 -05:00
parent 4ffc5fe5bf
commit 768bde1f93
1 changed files with 3 additions and 3 deletions

View File

@ -13,13 +13,13 @@ from util import hook
@hook.command @hook.command('re')
def reg(bot, input): def reg(bot, input):
".reg <regex> <string> -- matches regular expression in given <string> (seperate regex and string by 2 spaces)" ".re <regex> <string> -- matches regular expression in given <string> (seperate regex and string by 2 spaces)"
m = "" m = ""
if len(input.msg) < 4: if len(input.msg) < 3:
return reg.__doc__ return reg.__doc__
query = input.inp.partition(" ") query = input.inp.partition(" ")