forked from RepoMirrors/kami-blue
fix sent message message detection
This commit is contained in:
parent
3ff91918f0
commit
6623a281ab
|
@ -22,7 +22,7 @@ public class MessageDetectionHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isDirectOther(boolean directSent, String message) {
|
public static boolean isDirectOther(boolean directSent, String message) {
|
||||||
return directSent && Pattern.compile("to .+:", Pattern.CASE_INSENSITIVE).matcher(message).find();
|
return directSent && Pattern.compile("to [0-9A-Za-z_]+:", Pattern.CASE_INSENSITIVE).matcher(message).find();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isQueue(boolean queue, String message) {
|
public static boolean isQueue(boolean queue, String message) {
|
||||||
|
|
Loading…
Reference in New Issue