new auto-reply regexp (thanks @lilyhill!)
darcs-hash:20081204174754-5ed1f-dcce210332c55a544c35d535c3f3008aa8c165d3.gz
This commit is contained in:
parent
5eb729b5d5
commit
0a4905035a
@ -195,7 +195,7 @@ class XMPPDaemon extends Daemon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function is_autoreply($txt) {
|
function is_autoreply($txt) {
|
||||||
if (preg_match('/[\[\(]?[Aa]uto-?[Rr]eply[\]\)]/', $txt)) {
|
if (preg_match('/[\[\(]?[Aa]uto[-\s]?[Rr]e(ply|sponse)[\]\)]/', $txt)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user