Changeset 16834a5


Ignore:
Timestamp:
2010-06-06T01:30:45Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
92cb8c4
Parents:
88eaf4b
Message:

Set handle_unknown to add_channel by default.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/user-guide/commands.xml

    r88eaf4b r16834a5  
    593593
    594594        <bitlbee-setting name="handle_unknown" type="string" scope="global">
    595                 <default>root</default>
     595                <default>add_channel</default>
    596596                <possible-values>root, add, add_private, add_channel, ignore</possible-values>
    597597
  • irc.c

    r88eaf4b r16834a5  
    100100        s = set_add( &b->set, "away_devoice", "true", NULL/*set_eval_away_devoice*/, irc );
    101101        s = set_add( &b->set, "charset", "utf-8", set_eval_charset, irc );
    102         //s = set_add( &b->set, "control_channel", irc->channel, NULL/*set_eval_control_channel*/, irc );
    103102        s = set_add( &b->set, "default_target", "root", NULL, irc );
    104103        s = set_add( &b->set, "display_namechanges", "false", set_eval_bool, irc );
    105104        s = set_add( &b->set, "display_timestamps", "true", set_eval_bool, irc );
    106         s = set_add( &b->set, "handle_unknown", "root", NULL, irc );
     105        s = set_add( &b->set, "handle_unknown", "add_channel", NULL, irc );
    107106        s = set_add( &b->set, "lcnicks", "true", set_eval_bool, irc );
    108107        s = set_add( &b->set, "ops", "both", NULL/*set_eval_ops*/, irc );
  • root_commands.c

    r88eaf4b r16834a5  
    680680       
    681681        return strcmp( irc->mynick, new_nick ) == 0 ? new_nick : SET_INVALID;
    682 }
    683 
    684 char *set_eval_control_channel( set_t *set, char *new_name )
    685 {
    686         irc_t *irc = set->data;
    687        
    688         if( strcmp( irc->channel, new_name ) != 0 )
    689         {
    690                 char *cmd[] = { "set_rename", irc->channel, new_name, NULL };
    691                
    692                 cmd_rename( irc, cmd );
    693         }
    694        
    695         return strcmp( irc->channel, new_name ) == 0 ? new_name : SET_INVALID;
    696682}
    697683#endif
Note: See TracChangeset for help on using the changeset viewer.