]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bounce oversized XMPP messages back to user (Ticket #112)
authorCiaranG <ciaran@ciarang.com>
Thu, 14 Aug 2008 08:38:56 +0000 (04:38 -0400)
committerCiaranG <ciaran@ciarang.com>
Thu, 14 Aug 2008 08:38:56 +0000 (04:38 -0400)
darcs-hash:20080814083856-f6e2c-0e56895260fb96dedaa6a663db7e906fee2f7b05.gz

scripts/xmppdaemon.php

index e067fdcdb232ed30c3eb515ab4fd497aa4445068..ea5c29dbfb67db9f3edffbb868cf7906600d83fc 100755 (executable)
@@ -138,11 +138,6 @@ class XMPPDaemon extends Daemon {
                        $this->log(LOG_INFO, 'Ignoring OTR from ' . $from);
                        return;
                } else {
-                       $len = mb_strlen($pl['body']);
-                       if($len > 140) {
-                               $this->from_site($from, 'Message too long - maximum is 140 characters, you sent ' . $len);
-                               return;
-                       }
                        $this->add_notice($user, $pl);
                }