Changeset aef4828 for protocols/jabber/jabber.c
- Timestamp:
- 2007-04-06T05:20:31Z (17 years ago)
- Branches:
- master
- Children:
- 552e641
- Parents:
- 0da65d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r0da65d5 raef4828 59 59 static void jabber_login( account_t *acc ) 60 60 { 61 struct im_connection *ic = new_gaim_conn( acc );61 struct im_connection *ic = imc_new( acc ); 62 62 struct jabber_data *jd = g_new0( struct jabber_data, 1 ); 63 63 struct ns_srv_reply *srv = NULL; … … 72 72 if( jd->server == NULL ) 73 73 { 74 hide_login_progress( ic, "Incomplete account name (format it like <username@jabberserver.name>)" );75 signoff( ic );74 imc_error( ic, "Incomplete account name (format it like <username@jabberserver.name>)" ); 75 imc_logout( ic ); 76 76 return; 77 77 } … … 159 159 connect_to = jd->server; 160 160 161 set_login_progress( ic, 0, "Connecting" );161 imc_log( ic, "Connecting" ); 162 162 163 163 if( set_getint( &acc->set, "port" ) < JABBER_PORT_MIN || 164 164 set_getint( &acc->set, "port" ) > JABBER_PORT_MAX ) 165 165 { 166 serv_got_crap( ic, "Incorrect port number, must be in the %d-%d range",166 imc_log( ic, "Incorrect port number, must be in the %d-%d range", 167 167 JABBER_PORT_MIN, JABBER_PORT_MAX ); 168 signoff( ic );168 imc_logout( ic ); 169 169 return; 170 170 } … … 186 186 if( jd->fd == -1 ) 187 187 { 188 hide_login_progress( ic, "Could not connect to server" );189 signoff( ic );188 imc_error( ic, "Could not connect to server" ); 189 imc_logout( ic ); 190 190 } 191 191 } … … 285 285 while( bud ) 286 286 { 287 serv_got_crap( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s",287 imc_log( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s", 288 288 bud->full_jid, bud->priority, 289 289 bud->away_state ? bud->away_state->full_name : "(none)",
Note: See TracChangeset
for help on using the changeset viewer.