From e4a1b9cde9e975209c76e5e7322a14336b42f18f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 5 Jul 2008 23:57:07 -0400 Subject: optionally queue jabber confirmations darcs-hash:20080706035707-84dde-5403fe9bcb017c401fe5847527628df548e54499.gz --- actions/imsettings.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'actions/imsettings.php') diff --git a/actions/imsettings.php b/actions/imsettings.php index 4ad63e1cc..bad0bc18a 100644 --- a/actions/imsettings.php +++ b/actions/imsettings.php @@ -185,12 +185,12 @@ class ImsettingsAction extends SettingsAction { return; } - # XXX: queue for offline sending - - jabber_confirm_address($confirm->code, - $user->nickname, - $jabber); - + if (!common_config('queue', 'enabled')) { + jabber_confirm_address($confirm->code, + $user->nickname, + $jabber); + } + # XXX: I18N $msg = 'A confirmation code was sent to the IM address you added. ' . @@ -246,9 +246,7 @@ class ImsettingsAction extends SettingsAction { } $user->query('COMMIT'); - # Unsubscribe to the old address - - jabber_special_presence('unsubscribe', $jabber); + # XXX: unsubscribe to the old address $this->show_form(_t('The address was removed.'), TRUE); } -- cgit v1.2.3-54-g00ecf