Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r9a9b520 r324c378  
    141141               
    142142                if( ( ic = irc_channel_by_name( irc, s ) ) == NULL )
     143                {
    143144                        ic = irc_channel_new( irc, s );
     145                       
     146                        if( strcmp( set_getstr( &ic->set, "type" ), "control" ) != 0 )
     147                        {
     148                                /* Autoconfiguration is for control channels only ATM. */
     149                        }
     150                        else if( bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) )
     151                        {
     152                                set_setstr( &ic->set, "group", ic->name + 1 );
     153                                set_setstr( &ic->set, "fill_by", "group" );
     154                        }
     155                        else if( set_setstr( &ic->set, "protocol", ic->name + 1 ) )
     156                        {
     157                                set_setstr( &ic->set, "fill_by", "protocol" );
     158                        }
     159                        else if( set_setstr( &ic->set, "account", ic->name + 1 ) )
     160                        {
     161                                set_setstr( &ic->set, "fill_by", "account" );
     162                        }
     163                        else
     164                        {
     165                                bee_irc_channel_update( ic->irc, ic, NULL );
     166                        }
     167                }
    144168               
    145169                if( ic == NULL )
     
    202226                irc_send_num( irc, 403, "%s :No such channel", cmd[1] );
    203227        }
    204         else if( irc_channel_del_user( ic, irc->user, FALSE, cmd[2] ) )
     228        else if( irc_channel_del_user( ic, irc->user, IRC_CDU_PART, cmd[2] ) )
    205229        {
    206230                if( ic->f->part )
Note: See TracChangeset for help on using the changeset viewer.