diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-13 23:34:55 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-13 23:34:55 +0200 |
commit | 8ad9329e0d77adcf821ae085f40201227443f980 (patch) | |
tree | 44dd6555f8a090368aa08f3d39a2e8157adf5c48 /modules | |
parent | ff9050665086d4cd315eb42fa400a93e0bf7fa27 (diff) |
wolframalpha: Print usage on empty query.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/wolframalpha.py | 3 |
1 files changed, 3 insertions, 0 deletions
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', |