From f9cf18cf3b555ddc9d75c423203f589d3620d852 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Tue, 4 Dec 2012 15:39:44 +0100 Subject: [PATCH] fixed a small bug in quote --- modules/active/get_quote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/active/get_quote.py b/modules/active/get_quote.py index 2c9877f..ecdedf1 100644 --- a/modules/active/get_quote.py +++ b/modules/active/get_quote.py @@ -78,7 +78,7 @@ def quote(msg,args): brathuhn.sendMsg(brathuhn.ROOM,"Usage: "+args[0]+" language (two letter code) topic",'groupchat') else: try: - brathuhn.sendMsg(brathuhn.ROOM,'searching for "'+ args[2] +'"...') + brathuhn.sendMsg(brathuhn.ROOM,'searching for "'+ args[2] +'"...','groupchat') search_results = search_wiki(args[1],args[2]) if len( search_results )==0: brathuhn.sendMsg(brathuhn.ROOM,"No quotes found",'groupchat') @@ -96,7 +96,7 @@ def quote(msg,args): # print "-- ",i if len(wqp.quotes)>=1: - brathuhn.sendMsg(brathuhn.ROOM,'Quoting "'+ search_results[0] +'"') + brathuhn.sendMsg(brathuhn.ROOM,'Quoting "'+ search_results[0] +'"','groupchat') brathuhn.sendMsg(brathuhn.ROOM,wqp.quotes[randint(0,len(wqp.quotes)-1)],'groupchat') else: brathuhn.sendMsg(brathuhn.ROOM,'Could not crawl quotes from > '+url+' <','groupchat')