mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-04 08:59:23 +01:00
weatherCommand -> command
This commit is contained in:
parent
31c8af3fda
commit
8590bc2134
@ -87,7 +87,7 @@ class Weather(callbacks.Privmsg):
|
|||||||
channel = None
|
channel = None
|
||||||
if ircutils.isChannel(msg.args[0]):
|
if ircutils.isChannel(msg.args[0]):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
realCommandName = self.registryValue('weatherCommand', channel)
|
realCommandName = self.registryValue('command', channel)
|
||||||
realCommand = getattr(self, realCommandName)
|
realCommand = getattr(self, realCommandName)
|
||||||
realCommand(irc, msg, args)
|
realCommand(irc, msg, args)
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ conf.registerPlugin('Weather')
|
|||||||
conf.registerChannelValue(conf.supybot.plugins.Weather, 'temperatureUnit',
|
conf.registerChannelValue(conf.supybot.plugins.Weather, 'temperatureUnit',
|
||||||
WeatherUnit('Fahrenheit', """Sets the default temperature unit to use when
|
WeatherUnit('Fahrenheit', """Sets the default temperature unit to use when
|
||||||
reporting the weather."""))
|
reporting the weather."""))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Weather, 'weatherCommand',
|
conf.registerChannelValue(conf.supybot.plugins.Weather, 'command',
|
||||||
WeatherCommand('cnn', """Sets the default command to use when retrieving
|
WeatherCommand('cnn', """Sets the default command to use when retrieving
|
||||||
the weather."""))
|
the weather."""))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user