It's nice when Weather.weather works.

This commit is contained in:
James Vega 2004-09-25 17:55:22 +00:00
parent 334c5f9456
commit d5a324a0d2
1 changed files with 4 additions and 5 deletions

View File

@ -111,13 +111,12 @@ class Weather(callbacks.Privmsg):
s = self.userValue('lastLocation', msg.prefix) s = self.userValue('lastLocation', msg.prefix)
if s: if s:
args = [s] args = [s]
else: location = privmsgs.getArgs(args)
location = privmsgs.getArgs(args) self.setUserValue('lastLocation', msg.prefix,
self.setUserValue('lastLocation', msg.prefix, location, ignoreNoUser=True)
location, ignoreNoUser=True)
realCommandName = self.registryValue('command', channel) realCommandName = self.registryValue('command', channel)
realCommand = getattr(self, realCommandName) realCommand = getattr(self, realCommandName)
ret = realCommand(irc, msg, args, location) ret = realCommand(irc, msg, args)
def _toCelsius(self, temp, unit): def _toCelsius(self, temp, unit):
if unit == 'K': if unit == 'K':