From 48cac45fd9e2c13ee66b32059552acf831515599 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 26 Jun 2008 16:31:03 -0400 Subject: don't bother with subscription hoohaw; just ask the user to do it darcs-hash:20080626203103-34904-19ef53bc734622a310a705608f3e227e2f387904.gz --- xmppdaemon.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'xmppdaemon.php') diff --git a/xmppdaemon.php b/xmppdaemon.php index 3f2b575e4..cc464f155 100755 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -194,30 +194,7 @@ class XMPPDaemon { 'Accepted subscription from ' . $from); break; case 'subscribed': - $confirm = $this->get_confirmation($from); - if ($confirm) { - $user = User::staticGet($confirm->user_id); - if ($user) { - jabber_confirm_address($confirm->code, - $user->nickname, - $confirm->address); - } else { - $this->log(LOG_WARNING, - 'got unexpected subscribed message from ' . $from); - } - } case 'unsubscribed': - $user = $this->get_user($from); - if ($user) { - $this->set_notify($user, false); - } - - $confirm = $this->get_confirmation($from); - if ($confirm) { - $user = User::staticGet($confirm->user_id); - if ($user) { - } - } case 'unsubscribe': $this->log(LOG_INFO, 'Ignoring "' . $pl['type'] . '" from ' . $from); -- cgit v1.2.3-54-g00ecf