[RUtils] ° is \xb0 not \xc2

master
Sfan5 2013-06-02 20:49:30 +02:00
parent ff5e3c603c
commit bc5703b112
1 changed files with 3 additions and 3 deletions

View File

@ -216,10 +216,10 @@ def regex(phenny, input):
if not input.group(2):
return
q = input.group(2).encode('utf-8')
rgx = q[:q.find("\xc2")]
txt = q[q.find("\xc2")+1:]
rgx = q[:q.find("\xb0")]
txt = q[q.find("\xb0")+1:]
if rgx == "" or txt == "":
return phenny.reply("Give me a regex and a message seperated by \xc2")
return phenny.reply("Give me a regex and a message seperated by \xb0")
try:
r = re.compile(rgx)
except BaseException as e: