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: