+ return "I don't know where to look! Try %sSETINFO LOCATION <your location>" % (lib.parent.trigger,)
+
+@lib.hook(('weather','w'), needchan=False, wantchan=True)
+@lib.help('[<location>]', 'show weather for your location')
+def weather(bot, user, chan, realtarget, *args):
+ if chan is None:
+ chan = user
+ if len(args) == 0:
+ place = location(user)
+ else:
+ place = ' '.join(args)
+ bot.msg(chan, _weather(place))
+
+@lib.hook(('weatheruser','wu'))
+@lib.help('<user>', 'show weather for <user>\'s location')
+@lib.argsEQ(1)
+def wu(bot, user, chan, realtarget, *args):
+ bot.msg(chan, _weather(location(' '.join(args))))