summaryrefslogtreecommitdiff
path: root/actions/imsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-26 16:31:03 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-26 16:31:03 -0400
commit48cac45fd9e2c13ee66b32059552acf831515599 (patch)
tree9b1d44cb788d2d3c5fbc727cb48d45c357974049 /actions/imsettings.php
parent31b5ae1523c4f64159f00b32683912da1a9fb474 (diff)
don't bother with subscription hoohaw; just ask the user to do it
darcs-hash:20080626203103-34904-19ef53bc734622a310a705608f3e227e2f387904.gz
Diffstat (limited to 'actions/imsettings.php')
-rw-r--r--actions/imsettings.php28
1 files changed, 14 insertions, 14 deletions
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() {