version reply hotfix

This commit is contained in:
Dmitry Isaenko 2019-01-05 23:45:10 +03:00
parent 1e4d8f9f21
commit ae3890fc9f
2 changed files with 4 additions and 3 deletions

View file

@ -19,13 +19,14 @@ public class BotStart {
new Connections(args);
} else if (args[0].equals("--generate") || args[0].equals("-g")) {
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")){
StorageReader.generateDefaultConfig(null);
}
else if (args[0].equals("--version") || args[0].equals("-v")) {
System.out.println(GlobalData.getAppVersion());
}
}
else {
System.out.println("Usage:\n"

View file

@ -27,7 +27,7 @@ public class PrivateMsgCommander { // T
case "tell":
if ((cmd.length == 2) && (cmd[1].split("(\\s)|(\t)+?",2).length == 2)) {
String[] tellArgs = cmd[1].split("(\\s)|(\t)+?", 2);
tell(tellArgs[0], tellArgs[1]);
tell(tellArgs[0], tellArgs[1].trim());
}
else
tell(simplifyNick(sender), "Pattern: tell <nick> <message>");