Changeset 0a3c243 for irc.c


Ignore:
Timestamp:
2006-06-30T23:18:56Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5100caa
Parents:
5c9512f
Message:

Got rid of struct aim_user (now using account_t everywhere). Needs some more
testing though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r5c9512f r0a3c243  
    925925{
    926926        char *nick, *s;
    927         char reason[64];
     927        char reason[128];
    928928       
    929929        if( u->gc && u->gc->flags & OPT_LOGGING_OUT )
    930930        {
    931                 if( u->gc->user->proto_opt[0][0] )
     931                if( u->gc->acc->server )
    932932                        g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost,
    933                                     u->gc->user->proto_opt[0] );
     933                                    u->gc->acc->server );
    934934                else if( ( s = strchr( u->gc->username, '@' ) ) )
    935935                        g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost,
     
    937937                else
    938938                        g_snprintf( reason, sizeof( reason ), "%s %s.%s", irc->myhost,
    939                                     u->gc->prpl->name, irc->myhost );
     939                                    u->gc->acc->prpl->name, irc->myhost );
    940940               
    941941                /* proto_opt might contain garbage after the : */
     
    10131013                else if( g_strncasecmp( s + 1, "TYPING", 6 ) == 0 )
    10141014                {
    1015                         if( u && u->gc && u->gc->prpl->send_typing && strlen( s ) >= 10 )
     1015                        if( u && u->gc && u->gc->acc->prpl->send_typing && strlen( s ) >= 10 )
    10161016                        {
    10171017                                time_t current_typing_notice = time( NULL );
     
    10191019                                if( current_typing_notice - u->last_typing_notice >= 5 )
    10201020                                {
    1021                                         u->gc->prpl->send_typing( u->gc, u->handle, s[8] == '1' );
     1021                                        u->gc->acc->prpl->send_typing( u->gc, u->handle, s[8] == '1' );
    10221022                                        u->last_typing_notice = current_typing_notice;
    10231023                                }
     
    10521052                }
    10531053        }
    1054         else if( c && c->gc && c->gc->prpl )
     1054        else if( c && c->gc && c->gc->acc && c->gc->acc->prpl )
    10551055        {
    10561056                return( bim_chat_msg( c->gc, c->id, s ) );
Note: See TracChangeset for help on using the changeset viewer.