diff --git a/apps/bogobot/Bogobot.java b/apps/bogobot/Bogobot.java index 6e7e80c7779e4db34efee223ac632cae65c423f8..6f267566394a50a191cb6aaf77f1522755a14a42 100644 --- a/apps/bogobot/Bogobot.java +++ b/apps/bogobot/Bogobot.java @@ -42,7 +42,7 @@ public class Bogobot extends PircBot { */ private String _botPrimaryNick = "somebot"; private String _botSecondaryNick = "somebot_"; - private String _botShutdownCommand = "take off eh"; + private String _botShutdownPassword = "take off eh"; private long _commandAntiFloodInterval = 60; private String _ircChannel = "#i2p-chat"; 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 * 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) _logger.info(System.currentTimeMillis() + " quits *** " + this.getName() + " ***"); diff --git a/apps/bogobot/bogo.config b/apps/bogobot/bogo.config index 61616b8cdfaf97d8f96f85937bcf649f66382aa0..0854621f43b165feec6e5d1ca14a6414ee3a9b2b 100644 --- a/apps/bogobot/bogo.config +++ b/apps/bogobot/bogo.config @@ -18,10 +18,11 @@ ownerPrimaryNick=somenick ownerSecondaryNick=somenick_ ### -# The bot will disconnect and shut down when sent this command via private -# message (aka query) from either of the owner nicks specified above. +# The bot will disconnect and shut down when sent this password via private +# 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.