X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=38769876bff1ff5a4a730f78f6f95c729952475c;hp=640c694638774d192eddbf350eb686339e887e88;hb=8c9f41ccf5bc8e3711147710e7948b1c70ed56b1;hpb=e2b42080d49e7071c20e2ffe67704dd60e6677de diff --git a/commands.py b/commands.py index 640c694..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: @@ -440,7 +440,6 @@ def urlq(bot, cmd, nick, conn, public,urldb): conn.privmsg(bot.channel,"%s remarks: %s" % (nick," ".join(cmd.split()[1:]))) else: conn.privmsg(bot.channel,"(via %s) %s"%(nick," ".join(cmd.split()[1:]))) - bot.automsg(False,nick,"That URL was unique; I have posted it into IRC") urldb[url]=UrlLog(url,nick) ### Deal with URLs spotted in channel