[RUtils] Fix !regex

master
Sfan5 2013-06-01 19:38:50 +02:00
parent efcc4241e9
commit dbc74695b4
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ def regex(phenny, input):
return
q = input.group(2).encode('utf-8')
rgx = q[:q.find("\x02")]
msg = q[q.find("\x02"):]
msg = q[q.find("\x02")+1:]
if rgx == "" or msg == "":
return phenny.reply("Give me a regex and a message seperated by \x02")
try: