v0.2.1 minor changes
This commit is contained in:
parent
ae3890fc9f
commit
23a8b35d1e
3 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-SNAPSHOT</version>
|
||||
<version>0.2.1-SNAPSHOT</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
<name>InnaIrcBot</name>
|
||||
|
|
|
@ -210,6 +210,9 @@ public class PrivateMsgCommander { // T
|
|||
else
|
||||
tell(simplifyNick(sender), "Pattern: invite <user> <channel>");
|
||||
break;
|
||||
case "login":
|
||||
tell(simplifyNick(sender), "Already logged in.");
|
||||
break;
|
||||
default:
|
||||
tell(simplifyNick(sender), "Unknown command. Could be: join, part, quit, tell, nick, ctcp, notice, umode, cmode, raw, kick[k], ban[b], unban[-b], kickban[kb], voice[v], unvoice[-v], hop[h], unhop[-h], op[o], unop[-o], topic, invite and (login)");
|
||||
} // TODO: chanel limits set/remove
|
||||
|
@ -263,9 +266,9 @@ public class PrivateMsgCommander { // T
|
|||
}
|
||||
private void kick(String chanel, String user, String reason){
|
||||
if (reason == null)
|
||||
raw("KICK "+chanel+" "+user+" :requested");
|
||||
raw("KICK "+chanel+" "+simplifyNick(user)+" :requested");
|
||||
else
|
||||
raw("KICK "+chanel+" "+user+" :"+reason);
|
||||
raw("KICK "+chanel+" "+simplifyNick(user)+" :"+reason);
|
||||
}
|
||||
private void ban(String chanel, String user){
|
||||
cmode(chanel, "+b", simplifyNick(user)+"*!*@*"); // TODO: work on patter.n
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package InnaIrcBot;
|
||||
|
||||
public class GlobalData {
|
||||
public static final String version = "InnaIrcBot v0.2 \"Маньчжурия\"";
|
||||
public static final String version = "InnaIrcBot v0.2.1 \"Маньчжурия\"";
|
||||
public static synchronized String getAppVersion(){
|
||||
return version;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue