forked from GNUsocial/gnu-social
Bounce oversized XMPP messages back to user (Ticket #112)
darcs-hash:20080814083856-f6e2c-0e56895260fb96dedaa6a663db7e906fee2f7b05.gz
This commit is contained in:
parent
3fba1d51ce
commit
a0b6ebdd2d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user