From edc3a54ad3eaae483bc7bd4bb7e54d177525f912 Mon Sep 17 00:00:00 2001
From: hypercubus <hypercubus>
Date: Sun, 1 Aug 2004 06:42:31 +0000
Subject: [PATCH] changed _botShutdownCommand to _botShutdownPassword for
 clarity

---
 apps/bogobot/Bogobot.java | 4 ++--
 apps/bogobot/bogo.config  | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/apps/bogobot/Bogobot.java b/apps/bogobot/Bogobot.java
index 6e7e80c777..6f26756639 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 61616b8cdf..0854621f43 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.
-- 
GitLab