version reply hotfix
This commit is contained in:
parent
1e4d8f9f21
commit
ae3890fc9f
2 changed files with 4 additions and 3 deletions
|
@ -19,13 +19,14 @@ public class BotStart {
|
||||||
new Connections(args);
|
new Connections(args);
|
||||||
} else if (args[0].equals("--generate") || args[0].equals("-g")) {
|
} else if (args[0].equals("--generate") || args[0].equals("-g")) {
|
||||||
StorageReader.generateDefaultConfig(args[1]);
|
StorageReader.generateDefaultConfig(args[1]);
|
||||||
} else if (args[0].equals("--version") || args[0].equals("-v")) {
|
|
||||||
System.out.println(GlobalData.getAppVersion());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (args[0].equals("--generate") || args[0].equals("-g")){
|
else if (args[0].equals("--generate") || args[0].equals("-g")){
|
||||||
StorageReader.generateDefaultConfig(null);
|
StorageReader.generateDefaultConfig(null);
|
||||||
}
|
}
|
||||||
|
else if (args[0].equals("--version") || args[0].equals("-v")) {
|
||||||
|
System.out.println(GlobalData.getAppVersion());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
System.out.println("Usage:\n"
|
System.out.println("Usage:\n"
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class PrivateMsgCommander { // T
|
||||||
case "tell":
|
case "tell":
|
||||||
if ((cmd.length == 2) && (cmd[1].split("(\\s)|(\t)+?",2).length == 2)) {
|
if ((cmd.length == 2) && (cmd[1].split("(\\s)|(\t)+?",2).length == 2)) {
|
||||||
String[] tellArgs = cmd[1].split("(\\s)|(\t)+?", 2);
|
String[] tellArgs = cmd[1].split("(\\s)|(\t)+?", 2);
|
||||||
tell(tellArgs[0], tellArgs[1]);
|
tell(tellArgs[0], tellArgs[1].trim());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
tell(simplifyNick(sender), "Pattern: tell <nick> <message>");
|
tell(simplifyNick(sender), "Pattern: tell <nick> <message>");
|
||||||
|
|
Loading…
Reference in a new issue