String value = args[4];\r
\r
// Check to make sure is oper or me!\r
- boolean ident = nick.equals("Nol888") || bot.lookupOper(nick);\r
+ boolean ident = bot.lookupOper(nick);\r
if (!ident) {\r
// Silently ignore the command.\r
return;\r
String nick = user.split("!")[0];\r
\r
// Check to make sure is oper or me!\r
- boolean ident = nick.equals("Nol888") || bot.lookupOper(nick);\r
+ boolean ident = bot.lookupOper(nick);\r
if (!ident) {\r
// Silently ignore the command.\r
return;\r
super.prepare(line);\r
\r
// Checking for admin channel-age.\r
- return args[2].equalsIgnoreCase(bot.getAdminChannel()) && (args[0].startsWith(":Nol888!") || args[0].startsWith(":MoeMoeYuki!"));\r
+ return args[2].equalsIgnoreCase(bot.getAdminChannel());\r
}\r
\r
@Override\r
public void run() {\r
+ String user = args[0].substring(1);\r
+ String nick = user.split("!")[0];\r
+\r
+ // Check to make sure is oper or me!\r
+ boolean ident = bot.lookupOper(nick);\r
+ if (!ident) {\r
+ // Silently ignore the command.\r
+ return;\r
+ }\r
+\r
bot.stdPrintln("Shutting down on request from IRC.");\r
\r
bot.running = false;\r