Changeset c2fb3809 for protocols/nogaim.c
- Timestamp:
- 2007-04-15T22:39:35Z (17 years ago)
- Branches:
- master
- Children:
- 84b045d
- Parents:
- cd4723c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
rcd4723c rc2fb3809 151 151 ic = g_new0( struct im_connection, 1 ); 152 152 153 /* Maybe we should get rid of this memory waste later. ;-) */154 g_snprintf( ic->username, sizeof( ic->username ), "%s", acc->user );155 g_snprintf( ic->password, sizeof( ic->password ), "%s", acc->pass );156 157 153 ic->irc = acc->irc; 158 154 ic->acc = acc; … … 201 197 /* If we found one, include the screenname in the message. */ 202 198 if( a ) 203 irc_usermsg( ic->irc, "%s(%s) - %s", ic->acc->prpl->name, ic-> username, text );199 irc_usermsg( ic->irc, "%s(%s) - %s", ic->acc->prpl->name, ic->acc->user, text ); 204 200 else 205 201 irc_usermsg( ic->irc, "%s - %s", ic->acc->prpl->name, text ); … … 291 287 } 292 288 293 void imc_logout( struct im_connection *ic )289 void imc_logout( struct im_connection *ic, int allow_reconnect ) 294 290 { 295 291 irc_t *irc = ic->irc; … … 333 329 /* Uhm... This is very sick. */ 334 330 } 335 else if( !ic->wants_to_die&& set_getbool( &irc->set, "auto_reconnect" ) &&331 else if( allow_reconnect && set_getbool( &irc->set, "auto_reconnect" ) && 336 332 set_getbool( &a->set, "auto_reconnect" ) ) 337 333 { … … 436 432 437 433 return( b ); 438 }439 440 void signoff_blocked( struct im_connection *ic )441 {442 return; /* Make all blocked users look invisible (TODO?) */443 434 } 444 435 … … 730 721 731 722 /* Gaim sends own messages through this too. IRC doesn't want this, so kill them */ 732 if( g_strcasecmp( who, ic-> username) == 0 )723 if( g_strcasecmp( who, ic->acc->user ) == 0 ) 733 724 return; 734 725 … … 781 772 782 773 /* It might be yourself! */ 783 if( b->ic->acc->prpl->handle_cmp( handle, b->ic-> username) == 0 )774 if( b->ic->acc->prpl->handle_cmp( handle, b->ic->acc->user ) == 0 ) 784 775 { 785 776 u = user_find( b->ic->irc, b->ic->irc->nick ); … … 815 806 816 807 /* It might be yourself! */ 817 if( g_strcasecmp( handle, b->ic-> username) == 0 )808 if( g_strcasecmp( handle, b->ic->acc->user ) == 0 ) 818 809 { 819 810 u = user_find( b->ic->irc, b->ic->irc->nick ); … … 958 949 { 959 950 char *buf = NULL; 960 int st;961 951 962 952 if( ( c->ic->flags & OPT_CONN_HTML ) && ( g_strncasecmp( msg, "<html>", 6 ) != 0 ) )
Note: See TracChangeset
for help on using the changeset viewer.