- Timestamp:
- 12/21/10 20:47:19 (17 months ago)
- Files:
-
- 1 modified
-
HelpIM3/branches/chatgroups/htdocs/chat.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/htdocs/chat.js
r1354 r1358 322 322 function(user) { 323 323 if (user.role == 'participant') { 324 changeRole(user. nick, 'visitor');324 changeRole(user.jid, 'visitor'); 325 325 } 326 326 } … … 334 334 function(user) { 335 335 if (user.role == 'visitor') { 336 changeRole(user. nick, 'participant');336 changeRole(user.jid, 'participant'); 337 337 } 338 338 } … … 353 353 354 354 var query = iq.setQuery('http://jabber.org/protocol/muc#admin'); 355 var item = query.appendChild(iq.getDoc().createElement('item')); 355 var item = query.appendChild( 356 iq.getDoc().createElement('item', 357 'http://xmpp.org/extensions/xep-0045.html#kick')); 358 356 359 item.setAttribute('nick',user.name); 357 360 … … 362 365 363 366 me = this; 364 srcW.con.send(iq ,me.handleError);367 srcW.con.send(iq); 365 368 } 366 369
