JABBER

squeak at poczta.onet.pl squeak at poczta.onet.pl
Sat Sep 20 09:41:11 EDT 2008


 How can i change the xmpp server

I wrote somthine like this:
 if ( sz_JABBER_ID[0] && sz_JABBER_PW[0] && pPlugins.xmpp  ) {
  pAccount.jabber = _purple_account_new( "Gizmo", pPlugins.xmpp->info->id );
  if ( !pAccount.jabber ) {
   MessageBox( 0, "Nie można utworzyć konta JABBER", NAZWAPROGRAMU, 0 );
  } else {
   sprintf( szBuffer, "%s at jabber.org", sz_JABBER_ID );
   //MessageBox( 0, sz_JABBER_PW, szBuffer, 0 );
   _purple_account_set_username( pAccount.jabber, szBuffer );
   _purple_account_set_password ( pAccount.jabber, sz_JABBER_PW );
   _purple_account_set_enabled( pAccount.jabber, UI_ID, TRUE );
   _purple_account_connect( pAccount.jabber );
   PurpleConnection *pc = _purple_account_get_connection( pAccount.jabber );
   if ( pc ) {
    _purple_connection_set_account( pc, pAccount.jabber );
    pc->prpl = pPlugins.xmpp;
   }
  }
 }

And it wont connect after call
connect_to_signals_for_demonstration_purposes_only().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20080920/8f45a3a8/attachment.html>


More information about the Devel mailing list