summaryrefslogtreecommitdiff
path: root/actions/imsettings.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/imsettings.php')
-rw-r--r--actions/imsettings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/imsettings.php b/actions/imsettings.php
index b76779a70..836c473fc 100644
--- a/actions/imsettings.php
+++ b/actions/imsettings.php
@@ -148,6 +148,8 @@ class ImsettingsAction extends SettingsAction {
function add_address() {
+ $user = common_current_user();
+
$jabber = $this->trimmed('jabber');
# Some validation
@@ -191,7 +193,7 @@ class ImsettingsAction extends SettingsAction {
# XXX: optionally queue for offline sending
if (!jabber_is_subscribed($jabber)) {
- jabber_special_presence('subscribe', $address);
+ jabber_special_presence('subscribe', $jabber);
} else {
jabber_confirm_address($confirm->code,
$user->nickname,