From 8ad9329e0d77adcf821ae085f40201227443f980 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 13 Sep 2012 23:34:55 +0200 Subject: wolframalpha: Print usage on empty query. --- modules/wolframalpha.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index 30bdfe6..8a752be 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -19,6 +19,9 @@ class Module(object): def keyword(self, nick, channel, kw, msg): target = channel if not channel == self.irc.nickname else nick.split('!')[0] + if not len(msg.strip()): + self.irc.msg(target, 'Usage: !wa query') + return query = { 'appid': config.get(self.config_section, 'api_key'), 'format': 'plaintext', -- cgit v1.2.3