Changeset c5aefa4 for irc.c


Ignore:
Timestamp:
2010-06-07T15:39:53Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
70f69ecc
Parents:
0e8b3e8
Message:

Restore "ops" command completely, and set user op status *just* before
s/he joins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r0e8b3e8 rc5aefa4  
    107107        s = set_add( &b->set, "handle_unknown", "add_channel", NULL, irc );
    108108        s = set_add( &b->set, "lcnicks", "true", set_eval_bool, irc );
    109         s = set_add( &b->set, "ops", "both", NULL/*set_eval_ops*/, irc );
     109        s = set_add( &b->set, "ops", "both", set_eval_irc_channel_ops, irc );
    110110        s = set_add( &b->set, "paste_buffer", "false", set_eval_bool, irc );
    111111        s->old_key = g_strdup( "buddy_sendbuffer" );
     
    663663                        irc_channel_add_user( ic, irc->user );
    664664                       
    665                         if( strcmp( set_getstr( &irc->b->set, "ops" ), "both" ) == 0 ||
    666                             strcmp( set_getstr( &irc->b->set, "ops" ), "user" ) == 0 )
    667                                 irc_channel_user_set_mode( ic, irc->user, IRC_CHANNEL_USER_OP );
    668                        
    669665                        irc->last_root_cmd = g_strdup( ROOT_CHAN );
    670666                       
Note: See TracChangeset for help on using the changeset viewer.