Changeset 0e7ab64 for protocols/nogaim.c


Ignore:
Timestamp:
2007-04-23T02:58:44Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2d317bb
Parents:
43671b9
Message:

Got rid of one HORRIBLE stupidity called chat_by_channel(), which still
used the GLOBAL IM connections list, allowing user A to interfere with
user B's groupchats if running in daemon mode. I can't believe this was
still there...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r43671b9 r0e7ab64  
    856856/* Misc. BitlBee stuff which shouldn't really be here */
    857857
    858 struct groupchat *chat_by_channel( char *channel )
    859 {
    860         struct im_connection *ic;
    861         struct groupchat *c;
    862         GSList *l;
    863        
    864         /* This finds the connection which has a conversation which belongs to this channel */
    865         for( l = connections; l; l = l->next )
    866         {
    867                 ic = l->data;
    868                 for( c = ic->groupchats; c && g_strcasecmp( c->channel, channel ) != 0; c = c->next );
    869                 if( c )
    870                         return c;
    871         }
    872        
    873         return NULL;
    874 }
    875 
    876858char *set_eval_away_devoice( set_t *set, char *value )
    877859{
Note: See TracChangeset for help on using the changeset viewer.