v0.2 bug fixes

This commit is contained in:
Dmitry Isaenko 2019-01-02 18:08:45 +03:00
parent 623889602b
commit 1e4d8f9f21

View file

@ -84,8 +84,11 @@ public class ChanelCommander implements Runnable {
came(joinMap, who, who); came(joinMap, who, who);
} }
private void privmsgCame(String who, String what){ private void privmsgCame(String who, String what){
if (what.indexOf(":")+1 < what.length()){
what = what.substring(what.indexOf(":")+1);
came(msgMap, what, who); came(msgMap, what, who);
} }
}
private void came(HashMap<String, String[]> map, String arg1, String arg2){ private void came(HashMap<String, String[]> map, String arg1, String arg2){
for (String pattern : map.keySet()) for (String pattern : map.keySet())