From e4fa4dec7b12ea0542283e903559843ad02613ce Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 6 Dec 2004 20:31:47 +0000 Subject: [PATCH] Prevent two replies when @weather succeeds --- plugins/Weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Weather.py b/plugins/Weather.py index b07ba535a..f436d52b7 100644 --- a/plugins/Weather.py +++ b/plugins/Weather.py @@ -131,7 +131,7 @@ class Weather(callbacks.Privmsg): try: getattr(self, command)(irc, msg, args[:]) self.log.info('%s lookup succeeded.', command) - break + return except NoLocation: self.log.info('%s lookup failed as backup.', command) irc.error('Could not retrieve weather for %s.' %