changed _botShutdownCommand to _botShutdownPassword for clarity

This commit is contained in:
hypercubus
2004-08-01 06:42:31 +00:00
committed by zzz
parent a3cd7d1068
commit edc3a54ad3
2 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,7 @@ public class Bogobot extends PircBot {
*/ */
private String _botPrimaryNick = "somebot"; private String _botPrimaryNick = "somebot";
private String _botSecondaryNick = "somebot_"; private String _botSecondaryNick = "somebot_";
private String _botShutdownCommand = "take off eh"; private String _botShutdownPassword = "take off eh";
private long _commandAntiFloodInterval = 60; private long _commandAntiFloodInterval = 60;
private String _ircChannel = "#i2p-chat"; private String _ircChannel = "#i2p-chat";
private String _ircServer = "irc.duck.i2p"; private String _ircServer = "irc.duck.i2p";
@ -131,7 +131,7 @@ public class Bogobot extends PircBot {
* Nobody else except the bot's owner can shut it down, unless of * Nobody else except the bot's owner can shut it down, unless of
* course the owner's nick isn't registered and someone's spoofing it. * course the owner's nick isn't registered and someone's spoofing it.
*/ */
if ((sender.equals(_ownerPrimaryNick) || sender.equals(_ownerSecondaryNick)) && message.equals(_botShutdownCommand)) { if ((sender.equals(_ownerPrimaryNick) || sender.equals(_ownerSecondaryNick)) && message.equals(_botShutdownPassword)) {
if (_isLoggerEnabled) if (_isLoggerEnabled)
_logger.info(System.currentTimeMillis() + " quits *** " + this.getName() + " ***"); _logger.info(System.currentTimeMillis() + " quits *** " + this.getName() + " ***");

View File

@ -18,10 +18,11 @@ ownerPrimaryNick=somenick
ownerSecondaryNick=somenick_ ownerSecondaryNick=somenick_
### ###
# The bot will disconnect and shut down when sent this command via private # The bot will disconnect and shut down when sent this password via private
# message (aka query) from either of the owner nicks specified above. # message (aka query) from either of the owner nicks specified above. DO NOT USE
# THIS DEFAULT VALUE!
# #
botShutdownCommand=take off eh botShutdownPassword=take off eh
### ###
# The server, channel, and port the bot will connect to. # The server, channel, and port the bot will connect to.