Permalink
Browse files

Fixes maths plugin since google changed and the parsing failed

  • Loading branch information...
1 parent a7ae915 commit 1a8dd350706f33cdbec7ded2a9f6b3fd5b0767c7 Jessica T committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Plugins/math.py
View
@@ -35,7 +35,7 @@ def main(connection, line):
google = urllib2.urlopen(google)
source = google.read()
print source
- a = re.findall("<div class=\"wansgk\"><span class=\"sifhoi\">(.+?)</span> </div> <div>", source)
+ a = re.findall("<span class=\"sifhoi\">(.+?)</span> </div>", source)
try:
connection.core["privmsg"].main(connection, line.split()[2], "%s" % a[0])
except:

0 comments on commit 1a8dd35

Please sign in to comment.