Changeset 0e7ab64 for protocols


Ignore:
Timestamp:
2007-04-23T02:58:44Z (17 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...

Location:
protocols
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r43671b9 r0e7ab64  
    102102
    103103/* Not really the same syntax as the normal pkt_ functions, but this isn't
    104    called by the xmltree parser exactly and this way I can add some extra
     104   called by the xmltree parser directly and this way I can add some extra
    105105   parameters so we won't have to repeat too many things done by the caller
    106106   already. */
     
    151151                if( s ) *s = '/';
    152152        }
    153         else if( type ) /* This only gets called if type=="unavailable" */
     153        else if( type ) /* This only gets called if type is NULL or "unavailable" */
    154154        {
    155155                /* Won't handle this for now. */
  • 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{
  • protocols/nogaim.h

    r43671b9 r0e7ab64  
    207207G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, u_int32_t flags, time_t sent_at );
    208208G_MODULE_EXPORT void imcb_chat_free( struct groupchat *c );
    209 struct groupchat *chat_by_channel( char *channel );
    210209
    211210/* Actions, or whatever. */
Note: See TracChangeset for help on using the changeset viewer.