changed _botShutdownCommand to _botShutdownPassword for clarity
This commit is contained in:
@ -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() + " ***");
|
||||||
|
@ -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.
|
||||||
|
Reference in New Issue
Block a user