Changeset a91ecee


Ignore:
Timestamp:
2006-01-23T14:20:18Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
68c7c14
Parents:
87de505
Message:

/AWAY now only sets the IM-protocols away that belong to the current IRC
/connection (was an issue in single-process daemon mode).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r87de505 ra91ecee  
    415415{
    416416        user_t *u = user_find( irc, irc->nick );
    417         GSList *c = get_connections();
    418417        char *away = cmd[1];
     418        account_t *a;
    419419       
    420420        if( !u ) return;
     
    443443        }
    444444       
    445         while( c )
    446         {
    447                 if( ((struct gaim_connection *)c->data)->flags & OPT_LOGGED_IN )
    448                         proto_away( c->data, u->away );
    449                
    450                 c = c->next;
     445        for( a = irc->accounts; a; a = a->next )
     446        {
     447                struct gaim_connection *gc = a->gc;
     448               
     449                if( gc && gc->flags & OPT_LOGGED_IN )
     450                        proto_away( gc, u->away );
    451451        }
    452452}
Note: See TracChangeset for help on using the changeset viewer.