diff options
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', |