From 97ffefbc2f0270d09c1405e64936bdbb60d41167 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Mon, 15 Dec 2014 20:54:31 +0100 Subject: [PATCH] (Probabbly) fixed a bug in get_quote.py --- 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 422a9c1..e67ef37 100644 --- a/modules/active/get_quote.py +++ b/modules/active/get_quote.py @@ -74,11 +74,11 @@ def search_wiki(code,term): return results def quote(msg,args): - if len(args)!=2: + if len(args)!=2 or len(args)!=3: brathuhn.sendMsg(brathuhn.ROOM,"Usage: "+args[0]+" language (two letter code) [topic]",'groupchat') else: try: - if args==2: + if len(args)==2: brathuhn.sendMsg(brathuhn.ROOM,'fetching random page...','groupchat') url = "http://"+args[1][0:2]+".wikiquote.org/wiki/Special:Random" else: