The weather command help is now returned when a station id is not specified.
This commit is contained in:
parent
d8a7b966fd
commit
365bc27e7d
2 changed files with 4 additions and 6 deletions
|
@ -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 +
|
||||
" [<ICAO station id>]");
|
||||
this.sendNotice(sender, "See: <" + Weather.STATIONS_URL + '>');
|
||||
" [<station id>]");
|
||||
this.sendNotice(sender, "For a listing of the ICAO station IDs, please visit: <" + Weather.STATIONS_URL + '>');
|
||||
}
|
||||
else if (lcmd.endsWith(USERS_CMD))
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue