mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Slight cleanup.
This commit is contained in:
parent
71ea32c811
commit
cc9522e833
@ -75,6 +75,8 @@ class WeatherCommand(registry.String):
|
||||
Weather.weather.im_func.__doc__ = method.__doc__
|
||||
registry.String.setValue(self, s)
|
||||
|
||||
# Registry variables moved to the bottom to use Weather.weatherCommands.
|
||||
|
||||
class Weather(callbacks.Privmsg):
|
||||
weatherCommands = ['ham', 'cnn']
|
||||
threaded = True
|
||||
@ -326,7 +328,8 @@ conf.registerChannelValue(conf.supybot.plugins.Weather, 'temperatureUnit',
|
||||
reporting the weather."""))
|
||||
conf.registerChannelValue(conf.supybot.plugins.Weather, 'command',
|
||||
WeatherCommand('cnn', """Sets the default command to use when retrieving
|
||||
the weather."""))
|
||||
the weather. Command must be one of %s.""" %
|
||||
utils.commaAndify(Weather.weatherCommands, And='or')))
|
||||
|
||||
Class = Weather
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user