diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-15 16:47:34 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-15 16:47:34 +0100 |
commit | 85023c65b697d2dab932acbda31258ae5270dbe6 (patch) | |
tree | 5ecc35fc39a5f71f0c68b4c0497d5431bef90b9a /protocols/jabber/conference.c | |
parent | 1ffb46f027f501da45951428e097f69ced1c80e0 (diff) |
Added imcb_clean_handle() to sanitize handles properly (without putting
IRC-specific stuff into the Jabber module). Only using this in the MUC
code for now because this only works if the IM module can somehow convert
the cleaned up handle back to the original one.
Diffstat (limited to 'protocols/jabber/conference.c')
-rw-r--r-- | protocols/jabber/conference.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c index f49dbd1c..3fc9ee70 100644 --- a/protocols/jabber/conference.c +++ b/protocols/jabber/conference.c @@ -179,6 +179,9 @@ void jabber_chat_pkt_presence( struct im_connection *ic, struct jabber_buddy *bu for( i = 0; bud->resource[i]; i ++ ) if( bud->ext_jid[i] == '=' || bud->ext_jid[i] == '@' ) bud->ext_jid[i] = '_'; + + /* Some program-specific restrictions. */ + imcb_clean_handle( ic, bud->ext_jid ); } bud->flags |= JBFLAG_IS_ANONYMOUS; } |