[gozerbot] push by bthate - use ievent.rest in seen command instead of ievent.args[0] on 2012-08-06 13:31 GMT

0 views
Skip to first unread message

goze...@googlecode.com

unread,
Aug 6, 2012, 9:31:21 AM8/6/12
to gozerbo...@googlegroups.com
Revision: bdfc50eb973e
Author: Bart Thate <bth...@gmail.com>
Date: Mon Aug 6 06:29:47 2012
Log: use ievent.rest in seen command instead of ievent.args[0]
http://code.google.com/p/gozerbot/source/detail?r=bdfc50eb973e

Modified:
/gplugs/seen.py

=======================================
--- /gplugs/seen.py Sun Jan 22 16:49:11 2012
+++ /gplugs/seen.py Mon Aug 6 06:29:47 2012
@@ -41,10 +41,10 @@
Pdod.__init__(self, os.path.join(self.datadir, 'seen.data'))

def handle_seen(self, bot, ievent):
- if not ievent.args:
+ if not ievent.rest:
ievent.missing('<nick>')
return
- nick = ievent.args[0].lower()
+ nick = ievent.rest.lower()
if not self.data.has_key(nick):
alts = [x for x in self.data.keys() if nick in x]
if alts:
Reply all
Reply to author
Forward
0 new messages