I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit edc3a54a authored by hypercubus's avatar hypercubus Committed by zzz
Browse files

changed _botShutdownCommand to _botShutdownPassword for clarity

parent a3cd7d10
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ public class Bogobot extends PircBot { ...@@ -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 { ...@@ -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() + " ***");
......
...@@ -18,10 +18,11 @@ ownerPrimaryNick=somenick ...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment