mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Prevent two replies when @weather succeeds
This commit is contained in:
parent
91c6cb51e5
commit
e4fa4dec7b
@ -131,7 +131,7 @@ class Weather(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
getattr(self, command)(irc, msg, args[:])
|
getattr(self, command)(irc, msg, args[:])
|
||||||
self.log.info('%s lookup succeeded.', command)
|
self.log.info('%s lookup succeeded.', command)
|
||||||
break
|
return
|
||||||
except NoLocation:
|
except NoLocation:
|
||||||
self.log.info('%s lookup failed as backup.', command)
|
self.log.info('%s lookup failed as backup.', command)
|
||||||
irc.error('Could not retrieve weather for %s.' %
|
irc.error('Could not retrieve weather for %s.' %
|
||||||
|
Loading…
Reference in New Issue
Block a user