]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
lost a couple of variables
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 20:39:35 +0000 (16:39 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 20:39:35 +0000 (16:39 -0400)
darcs-hash:20080626203935-34904-bf73b91cc008b28a0d0d2187dfaa346784c23afd.gz

lib/jabber.php
xmppdaemon.php

index 7630d8cd2039e4736522a83a0eed0d21a86c57d9..2e136cd74874ae7091b4b9b9b416dddff11e8ca7 100644 (file)
@@ -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) {
index cc464f155e4de9d55f53937eaac166d694dc4469..afe248c8e4f2fa4394cef43d3325032a0a93dd8a 100755 (executable)
@@ -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;