summaryrefslogtreecommitdiff
path: root/xmppdaemon.php
diff options
context:
space:
mode:
Diffstat (limited to 'xmppdaemon.php')
-rwxr-xr-xxmppdaemon.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php
index cc464f155..afe248c8e 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;