summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-17 22:55:49 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-17 22:55:49 -0400
commitc9d9ecffd45143a1214aafb5fab5c6f040c2250e (patch)
treeb39e71a8ac11e18df506461cf01f9f4b7e80fa62 /scripts
parentee858bc8809f846860e4372444b172d8737abc75 (diff)
use mb_substr for xmpp daemon check
darcs-hash:20080818025549-84dde-0277e3c0b58a6d223f892376cfc9f5aa9df9714b.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xmppdaemon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index 43f2b6aae..e5ecf9d2d 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -234,7 +234,7 @@ class XMPPDaemon {
}
function add_notice(&$user, &$pl) {
- $notice = Notice::saveNew($user->id, trim(substr($pl['body'], 0, 140)), 'xmpp');
+ $notice = Notice::saveNew($user->id, trim(mb_substr($pl['body'], 0, 140)), 'xmpp');
if (is_string($notice)) {
$this->log(LOG_ERR, $notice);
return;