summaryrefslogtreecommitdiffstats
path: root/modules/weather.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/weather.py')
-rwxr-xr-xmodules/weather.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/weather.py b/modules/weather.py
index 77f0fd0..787551c 100755
--- a/modules/weather.py
+++ b/modules/weather.py
@@ -84,6 +84,9 @@ def f_weather(self, origin, match, args):
if args[0].startswith('.weather '): return
icao_code = match.group(2)
+ if not icao_code:
+ return self.msg(origin.sender, 'Try .weather London, for example?')
+
if (not len(icao_code) == 4) or \
(len(icao_code) > 1 and icao_code[0] in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' and
icao_code[1] in 'abcdefghijklmnopqrstuvwxyz'):