Changeset 2738 for sandbox/jabberit_messenger/trophy_expresso
- Timestamp:
- 05/07/10 16:04:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2737 r2738 1451 1451 else 1452 1452 { 1453 if( loadscript.getStatusMessage() != "")1453 if( TrophyIM.statusConn.connected ) 1454 1454 { 1455 var _presence = $pres( ); 1456 _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _type ) ); 1457 _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( loadscript.getStatusMessage() )); 1458 1459 TrophyIM.connection.send( _presence.tree() ); 1460 } 1461 else 1462 { 1463 TrophyIM.connection.send($pres( ).c('show').t(_type).tree()); 1455 if( loadscript.getStatusMessage() != "" ) 1456 { 1457 var _presence = $pres( ); 1458 _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _type ) ); 1459 _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( loadscript.getStatusMessage() )); 1460 1461 TrophyIM.connection.send( _presence.tree() ); 1462 } 1463 else 1464 { 1465 TrophyIM.connection.send($pres( ).c('show').t(_type).tree()); 1466 } 1464 1467 } 1465 1468 } … … 1497 1500 } 1498 1501 1499 var _presence = $pres( ); 1500 _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _show ) ); 1501 _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( _status ) ); 1502 1503 TrophyIM.connection.send( _presence.tree() ); 1502 if ( TrophyIM.statusConn.connected ) 1503 { 1504 var _presence = $pres( ); 1505 _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _show ) ); 1506 _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( _status ) ); 1507 1508 TrophyIM.connection.send( _presence.tree() ); 1509 } 1504 1510 } 1505 1511 },
Note: See TracChangeset
for help on using the changeset viewer.