]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/xmppdaemon.php
Added Snapshot::check() to main function for index.php
[quix0rs-gnu-social.git] / scripts / xmppdaemon.php
index 28ac647253cfe07d1907541197fd87d55f146d25..ef3f8c63d862472d52d3af9e725e7c1262797ce9 100755 (executable)
@@ -37,7 +37,8 @@ set_error_handler('common_error_handler');
 # in jabber.php, which create a new XMPP class. A more elegant (?) solution
 # might be to use make this a subclass of XMPP.
 
-class XMPPDaemon extends Daemon {
+class XMPPDaemon extends Daemon
+{
 
     function XMPPDaemon($resource=null)
     {
@@ -207,6 +208,8 @@ class XMPPDaemon extends Daemon {
     {
         if (preg_match('/[\[\(]?[Aa]uto[-\s]?[Rr]e(ply|sponse)[\]\)]/', $txt)) {
             return true;
+        } else if (preg_match('/^System: Message wasn\'t delivered. Offline storage size was exceeded.$/', $txt)) {
+            return true;
         } else {
             return false;
         }