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 --- actions/imsettings.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'actions') diff --git a/actions/imsettings.php b/actions/imsettings.php index 90a4fd807..e471aafac 100644 --- a/actions/imsettings.php +++ b/actions/imsettings.php @@ -73,7 +73,9 @@ class ImsettingsAction extends SettingsAction { } else { common_input('jabber', _t('IM Address'), ($this->arg('jabber')) ? $this->arg('jabber') : NULL, - _t('Jabber or GTalk address, like "UserName@example.org"')); + _t('Jabber or GTalk address, like "UserName@example.org". ' . + 'Make sure to subscribe to ' . jabber_daemon_address() . + ' before adding your IM address here.')); common_submit('add', 'Add'); } } @@ -192,21 +194,19 @@ class ImsettingsAction extends SettingsAction { return; } - # XXX: optionally queue for offline sending + # XXX: queue for offline sending - if (!jabber_is_subscribed($jabber)) { - jabber_special_presence('subscribe', $jabber); - } else { - jabber_confirm_address($confirm->code, - $user->nickname, - $jabber); - } + jabber_confirm_address($confirm->code, + $user->nickname, + $jabber); + + # XXX: I18N + + $msg = 'A confirmation code was sent to the IM address you added. ' . + ' You must approve ' . jabber_daemon_address() . + ' for sending messages to you.'; - $this->show_form(_t('A confirmation code was ' . - ' sent to the IM address you added. ' . - ' You must approve ' . jabber_daemon_address() . - ' for sending messages to you.'), - TRUE); + $this->show_form($msg, TRUE); } function cancel_confirmation() { -- cgit v1.2.3-54-g00ecf