From 660995da3b8a288ab5e6a17960e204b8de2e3876 Mon Sep 17 00:00:00 2001 From: Sridhar Ratna Date: Mon, 31 Dec 2007 08:15:58 +0000 Subject: [PATCH] test --- plugins.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index 73eab21..6625d15 100644 --- a/plugins.py +++ b/plugins.py @@ -163,7 +163,7 @@ class Commands(BotActions): cmd_e = cmd_eval def cmd_google(self, search_terms=None): - # search the internet + "search the internet" if search_terms: soup = soupify('http://www.google.com/search?' + urllib.urlencode({'q': search_terms})) firstLink = soup.find('a', attrs={'class': 'l'})['href'].encode('utf-8').strip() @@ -171,6 +171,12 @@ class Commands(BotActions): self.toChannel(firstLink) cmd_g = cmd_google + def cmd_tell(self, args=None): + if args: + user, message = args.split(None, 1) + # XXX: add to db + self.toUser('ok') + @admin(['srid']) def cmd_join(self, channel=None): if channel: -- 2.11.4.GIT