]> jfr.im git - erebus.git/blobdiff - modules/weather.py
bugfixes
[erebus.git] / modules / weather.py
index 597335019db22735d7cc8f7fc2daa9e1033b1eb4..2249abacfba44bb576cd85e20d06ddccdfb39c9a 100644 (file)
@@ -22,7 +22,7 @@ import json, urllib, time, rfc822
 
 def location(person, default=None): return lib.mod('userinfo')._get(person, 'location', default=None)
 
-@lib.hook(needchan=False)
+@lib.hook(('weather','w'), needchan=False)
 @lib.help('[<location>]', 'show weather for your location')
 def weather(bot, user, chan, realtarget, *args):
        if len(args) == 0:
@@ -50,4 +50,4 @@ def weather(bot, user, chan, realtarget, *args):
                }
                bot.msg(chan, output)
        else:
-               bot.msg(chan, "I don't know where to look!")
+               bot.msg(chan, "I don't know where to look! Try SETINFO LOCATION <your location>")