Changeset 46d215d for irc_channel.c
- Timestamp:
- 2010-06-08T23:43:13Z (14 years ago)
- Branches:
- master
- Children:
- 6acc033
- Parents:
- d7db346
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
rd7db346 r46d215d 359 359 } 360 360 361 static 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 361 381 static char *set_eval_by_account( set_t *set, char *value ); 362 382 static char *set_eval_fill_by( set_t *set, char *value ); … … 456 476 NULL, 457 477 NULL, 458 NULL,478 control_channel_invite, 459 479 460 480 control_channel_init,
Note: See TracChangeset
for help on using the changeset viewer.