From: matthew Date: Wed, 6 Feb 2002 20:58:56 +0000 (+0000) Subject: google now talks to the channel if it finds a page X-Git-Tag: upstream_0_3~5 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=commitdiff_plain;h=222606d00c98166671ee1fd13a53c149f9f223d2;p=irc.git google now talks to the channel if it finds a page --- diff --git a/acrobat-chiark-0.2.py b/acrobat-chiark-0.2.py index 965c96c..6406940 100755 --- a/acrobat-chiark-0.2.py +++ b/acrobat-chiark-0.2.py @@ -248,17 +248,17 @@ class Acrobat(SingleServerIRCBot): if public == 0: conn.notice(nick, str(gsearch)) else: # we haven't found anything. - conn.privmsg(nick, str(gsearch)) + conn.privmsg(self.channel, str(gsearch)) else: if public == 0: conn.notice(nick, "No pages found.") else: - conn.privmsg(nick, "No pages found.") + conn.privmsg(self.channel, "No pages found.") except IOError: # if the connection times out. This blocks. :( if public == 0: conn,notice(nick, "The web's broken. Waah!") else: - conn.privmsg(nick, "The web's broken. Waah!") + conn.privmsg(self.channel, "The web's broken. Waah!") # General query handler def do_command(self, nick, cmd, public=0):