mirror of
https://github.com/kami-blue/client
synced 2025-02-24 01:06:49 +00:00
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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user