From: Evan Prodromou Date: Thu, 26 Jun 2008 20:39:35 +0000 (-0400) Subject: lost a couple of variables X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5527d6b5359a022256e91c258c78d2881ef9f086;p=quix0rs-gnu-social.git lost a couple of variables darcs-hash:20080626203935-34904-bf73b91cc008b28a0d0d2187dfaa346784c23afd.gz --- diff --git a/lib/jabber.php b/lib/jabber.php index 7630d8cd20..2e136cd748 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -93,7 +93,7 @@ function jabber_confirm_address($code, $nickname, $address) { 'address bar of your browser). If that user isn\'t you, ' . 'or if you didn\'t request this confirmation, just ignore this message.'; - jabber_send_message($address, $body); + jabber_send_message($address, $body); } function jabber_special_presence($type, $to=NULL, $show=NULL, $status=NULL) { diff --git a/xmppdaemon.php b/xmppdaemon.php index cc464f155e..afe248c8e4 100755 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -111,6 +111,10 @@ class XMPPDaemon { if (strlen($pl['body']) == 0) { return; } + + $from = jabber_normalize_jid($pl['from']); + $user = $this->get_user($from); + if (!$user) { $this->log(LOG_WARNING, 'Message from unknown user ' . $from); return;