summaryrefslogtreecommitdiff
path: root/actions/imsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-23 20:15:23 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-23 20:15:23 -0400
commit63dcbe1e6e4dc49de9ce9be82421c043cc751007 (patch)
treeb289596fb22b1e2fef21e27160ef20de2eed9e6a /actions/imsettings.php
parentae40dfe842c034263a49e2dbbde5c19ac9515c19 (diff)
add jabber library and use it
darcs-hash:20080624001523-34904-8d0c052f12301d86aeb9107149b34f22c94da1c4.gz
Diffstat (limited to 'actions/imsettings.php')
-rw-r--r--actions/imsettings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/imsettings.php b/actions/imsettings.php
index b34f8ca12..d8680c98b 100644
--- a/actions/imsettings.php
+++ b/actions/imsettings.php
@@ -61,11 +61,11 @@ class ImsettingsAction extends SettingsAction {
function handle_post() {
- $jabber = $this->trimmed('jabber');
+ $jabber = jabber_normalize_jid($this->trimmed('jabber'));
$jabbernotify = $this->boolean('jabbernotify');
$updatefrompresence = $this->boolean('updatefrompresence');
- if (!jabber_validate_jid($jabber)) {
+ if (!jabber_valid_base_jid($jabber)) {
$this->show_form(_('Not a valid Jabber ID'));
return;
} else if ($this->jabber_exists($jabber)) {