v0.2.2 minor changes: add tracking /me in PrivateMsgCommander command tell
This commit is contained in:
parent
23a8b35d1e
commit
79b13c9126
4 changed files with 7 additions and 4 deletions
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>loper</groupId>
|
||||
<artifactId>InnaIrcBot</artifactId>
|
||||
<version>0.2.1-SNAPSHOT</version>
|
||||
<version>0.2.2-SNAPSHOT</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
<name>InnaIrcBot</name>
|
||||
|
|
|
@ -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].trim());
|
||||
tell(tellArgs[0], tellArgs[1]);
|
||||
}
|
||||
else
|
||||
tell(simplifyNick(sender), "Pattern: tell <nick> <message>");
|
||||
|
@ -241,6 +241,10 @@ public class PrivateMsgCommander { // T
|
|||
//System.exit(0); // TODO: change to normal exit
|
||||
}
|
||||
private void tell(String channelUser, String message){
|
||||
message = message.trim();
|
||||
if (message.startsWith("/me ")){
|
||||
message = "\u0001ACTION "+message.substring(3)+"\u0001";
|
||||
}
|
||||
raw("PRIVMSG "+channelUser+" :"+message);
|
||||
}
|
||||
private void nick(String newNick){
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package InnaIrcBot;
|
||||
|
||||
public class GlobalData {
|
||||
public static final String version = "InnaIrcBot v0.2.1 \"Маньчжурия\"";
|
||||
public static final String version = "InnaIrcBot v0.2.2 \"Маньчжурия\"";
|
||||
public static synchronized String getAppVersion(){
|
||||
return version;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package Temporary;
|
||||
|
||||
import InnaIrcBot.ReconnectControl;
|
||||
import com.sun.org.apache.regexp.internal.RE;
|
||||
|
||||
public class ReconnectControlTest {
|
||||
public static void main(String args[]){
|
||||
|
|
Loading…
Reference in a new issue