new auto-reply regexp (thanks @lilyhill!)

darcs-hash:20081204174754-5ed1f-dcce210332c55a544c35d535c3f3008aa8c165d3.gz
This commit is contained in:
Evan Prodromou 2008-12-04 12:47:54 -05:00
parent 5eb729b5d5
commit 0a4905035a

View File

@ -195,7 +195,7 @@ class XMPPDaemon extends Daemon {
}
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;
} else {
return false;