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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>loper</groupId>
|
<groupId>loper</groupId>
|
||||||
<artifactId>InnaIrcBot</artifactId>
|
<artifactId>InnaIrcBot</artifactId>
|
||||||
<version>0.2-SNAPSHOT</version>
|
<version>0.2.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>InnaIrcBot</name>
|
<name>InnaIrcBot</name>
|
||||||
|
|
|
@ -210,6 +210,9 @@ public class PrivateMsgCommander { // T
|
||||||
else
|
else
|
||||||
tell(simplifyNick(sender), "Pattern: invite <user> <channel>");
|
tell(simplifyNick(sender), "Pattern: invite <user> <channel>");
|
||||||
break;
|
break;
|
||||||
|
case "login":
|
||||||
|
tell(simplifyNick(sender), "Already logged in.");
|
||||||
|
break;
|
||||||
default:
|
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)");
|
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
|
} // TODO: chanel limits set/remove
|
||||||
|
@ -263,9 +266,9 @@ public class PrivateMsgCommander { // T
|
||||||
}
|
}
|
||||||
private void kick(String chanel, String user, String reason){
|
private void kick(String chanel, String user, String reason){
|
||||||
if (reason == null)
|
if (reason == null)
|
||||||
raw("KICK "+chanel+" "+user+" :requested");
|
raw("KICK "+chanel+" "+simplifyNick(user)+" :requested");
|
||||||
else
|
else
|
||||||
raw("KICK "+chanel+" "+user+" :"+reason);
|
raw("KICK "+chanel+" "+simplifyNick(user)+" :"+reason);
|
||||||
}
|
}
|
||||||
private void ban(String chanel, String user){
|
private void ban(String chanel, String user){
|
||||||
cmode(chanel, "+b", simplifyNick(user)+"*!*@*"); // TODO: work on patter.n
|
cmode(chanel, "+b", simplifyNick(user)+"*!*@*"); // TODO: work on patter.n
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package InnaIrcBot;
|
package InnaIrcBot;
|
||||||
|
|
||||||
public class GlobalData {
|
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(){
|
public static synchronized String getAppVersion(){
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue