mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-31 06:34:32 +01:00
It's nice when Weather.weather works.
This commit is contained in:
parent
334c5f9456
commit
d5a324a0d2
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user