chiark / gitweb /
new flirt from rjk
[irc.git] / commands.py
old mode 100644 (file)
new mode 100755 (executable)
index bbcaeb8..7232bd1
@@ -300,6 +300,9 @@ def __getall(tdb,tdbk,fdb,fdbk,sdb,sdbk,what):
 
 def blameq(bot,cmd,nick,conn,public,fish,tdb,tdbk,fdb,fdbk,sdb,sdbk):
     clist=cmd.split()
+    if len(clist) < 2:
+       bot.automsg(public,nick,"Who or what do you want to blame?")
+       return
     cwhat=' '.join(clist[2:])
     if clist[1]=="#last":
        ans=__getall(tdb,tdbk,fdb,fdbk,sdb,sdbk,fish.last)