X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=blobdiff_plain;f=commands.py;h=7232bd1292fd022061481bb3defe3f01b3d7e1f3;hb=9d2d9009f1b354993ccf5a2c707e079b41f14ead;hp=bbcaeb898dd83def7686c40f29a6fb5c566689d1;hpb=80d9c9c42e877de154e6a0c7ce4c725a1448c51f;p=irc.git diff --git a/commands.py b/commands.py old mode 100644 new mode 100755 index bbcaeb8..7232bd1 --- a/commands.py +++ b/commands.py @@ -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)