X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=38769876bff1ff5a4a730f78f6f95c729952475c;hp=474a4420e4edfca1921431bf733b1a1fe05f8445;hb=8c9f41ccf5bc8e3711147710e7948b1c70ed56b1;hpb=7776d826554ed6dfaf010e3ae5b7ba0d63e20284 diff --git a/commands.py b/commands.py index 474a442..3876987 100755 --- a/commands.py +++ b/commands.py @@ -256,7 +256,7 @@ def currencyq(bot, cmd, nick, conn, public): targ = ("http://www.xe.com/ucc/convert.cgi?From=%s&To=%s" % (args[0], args[1])) try: currencypage = urllib.urlopen(targ).read() - match = re.search(r"(1 %s = [\d\.]+ %s)" % (args[0],args[1]),currencypage,re.MULTILINE) + match = re.search(r"(1 %s = [\d\.]+ %s)" % (args[0].upper(),args[1].upper()),currencypage,re.MULTILINE) if match == None: bot.automsg(public,nick,"Dear Chief Secretary, there is no money.") else: