Changeset 46d215d for irc_channel.c


Ignore:
Timestamp:
2010-06-08T23:43:13Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6acc033
Parents:
d7db346
Message:

Allow moving contacts around between groups. Works with at least Jabber,
will check the others now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rd7db346 r46d215d  
    359359}
    360360
     361static gboolean control_channel_invite( irc_channel_t *ic, irc_user_t *iu )
     362{
     363        struct irc_control_channel *icc = ic->data;
     364        bee_user_t *bu = iu->bu;
     365       
     366        if( bu == NULL )
     367                return FALSE;
     368       
     369        if( icc->type != IRC_CC_TYPE_GROUP )
     370        {
     371                irc_send_num( ic->irc, 482, "%s :Invitations are only possible to fill_by=group channels", ic->name );
     372                return FALSE;
     373        }
     374       
     375        bu->ic->acc->prpl->add_buddy( bu->ic, bu->handle,
     376                                      icc->group ? icc->group->name : NULL );
     377       
     378        return TRUE;
     379}
     380
    361381static char *set_eval_by_account( set_t *set, char *value );
    362382static char *set_eval_fill_by( set_t *set, char *value );
     
    456476        NULL,
    457477        NULL,
    458         NULL,
     478        control_channel_invite,
    459479       
    460480        control_channel_init,
Note: See TracChangeset for help on using the changeset viewer.