X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=474a4420e4edfca1921431bf733b1a1fe05f8445;hp=f015b89a59754789d7f586e918f5a37323c2d5c6;hb=ffde107cee73ddd64dc0bc22df215efe6011c5e0;hpb=d2e5620332806c4a9877860f57de371a77ae797c diff --git a/commands.py b/commands.py index f015b89..474a442 100755 --- a/commands.py +++ b/commands.py @@ -62,7 +62,7 @@ def fish_quota(pond): pond.quotatime=time.time() # List of things the bot might be called to work round the self-trouting code -synonyms=["itself","the bot"] +synonyms=["itself","the bot","themself"] # trout someone, or flirt with them def troutq(bot, cmd, nick, conn, public, cfg): @@ -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 @@ -506,7 +505,7 @@ def getTweet(urlstring,twitapi): tweetID = parts[-1] try: status = twitapi.GetStatus(tweetID) - print status, type(status), status=={} + #print status, type(status), status=={} if status == {}: return "twitapi.GetStatus returned nothing :-(" if status.user == None and status.text == None: