From 365bc27e7d9f142aefab7dac87a4546d5db3ed52 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 18 Feb 2004 11:40:43 +0000 Subject: [PATCH] The weather command help is now returned when a station id is not specified. --- src/net/thauvin/erik/mobibot/Mobibot.java | 6 +++--- src/net/thauvin/erik/mobibot/Weather.java | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/net/thauvin/erik/mobibot/Mobibot.java b/src/net/thauvin/erik/mobibot/Mobibot.java index 75900a3..cc7745c 100644 --- a/src/net/thauvin/erik/mobibot/Mobibot.java +++ b/src/net/thauvin/erik/mobibot/Mobibot.java @@ -256,7 +256,7 @@ public class Mobibot extends PircBot /** * The weather command. */ - private static final String WEATHER_CMD = "weather"; + public static final String WEATHER_CMD = "weather"; /** * The HH:MM timestamp simple date format. @@ -871,8 +871,8 @@ public class Mobibot extends PircBot this.sendNotice(sender, "To display weather information:"); this.sendNotice(sender, DOUBLE_INDENT + Colors.BOLD + getNick() + ": " + WEATHER_CMD + Colors.BOLD + - " []"); - this.sendNotice(sender, "See: <" + Weather.STATIONS_URL + '>'); + " []"); + this.sendNotice(sender, "For a listing of the ICAO station IDs, please visit: <" + Weather.STATIONS_URL + '>'); } else if (lcmd.endsWith(USERS_CMD)) { diff --git a/src/net/thauvin/erik/mobibot/Weather.java b/src/net/thauvin/erik/mobibot/Weather.java index d0f1e14..2d8ec26 100644 --- a/src/net/thauvin/erik/mobibot/Weather.java +++ b/src/net/thauvin/erik/mobibot/Weather.java @@ -173,8 +173,6 @@ public class Weather implements Runnable } } - _bot.send(_sender, - "For a listing of the supported ICAO weather station IDs please visit: <" + STATIONS_URL + '>', - _isPrivate); + _bot.helpResponse(_sender, Mobibot.WEATHER_CMD); } }