chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d9c9c
)
deal with empty ~blame arguments
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 2 Aug 2011 22:02:56 +0000
(23:02 +0100)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 2 Aug 2011 22:02:56 +0000
(23:02 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index bbcaeb898dd83def7686c40f29a6fb5c566689d1..7232bd1292fd022061481bb3defe3f01b3d7e1f3 100644
(file)
--- 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)