From 4208a1a439617a2c6985f1e38c89b0bcbac2847c Mon Sep 17 00:00:00 2001 From: fritzy Date: Fri, 16 May 2008 21:43:57 +0000 Subject: [PATCH] * subscribe fix git-svn-id: svn://netflint.net/xmpphp@43 ef36c318-a008-4979-b6e8-6b496270793b --- XMPPHP/XMPP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index a4562bc..8721645 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -212,7 +212,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { $payload['status'] = (isset($xml->sub('status')->data)) ? $xml->sub('status')->data : ''; $this->log->log("Presence: {$payload['from']} [{$payload['show']}] {$payload['status']}", XMPPHP_Log::LEVEL_DEBUG); if($xml->attrs['type'] == 'subscribe') { - if($this->auto_subscribe) $this->send(""); + if($this->auto_subscribe) $this->send(""); $this->event('subscription_requested', $payload); } elseif($xml->attrs['type'] == 'subscribed') { $this->event('subscription_accepted', $payload);