Changeset f7ca587 for root_commands.c


Ignore:
Timestamp:
2010-07-29T18:18:54Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1521a85
Parents:
2fe5eb9
Message:

Restore default_target setting, kill last_root_cmd variable and just use
the last_channel variable, like for any other user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r2fe5eb9 rf7ca587  
    560560                /* If this doesn't match any channel, maybe this is the short
    561561                   syntax (only works when used inside a channel). */
    562                 if( ( len = strlen( cmd[1] ) ) &&
    563                     g_strncasecmp( cmd[1], "set", len ) == 0 &&
    564                     ( ic = irc_channel_by_name( irc, irc->last_root_cmd ) ) )
     562                if( ( ic = irc->root->last_channel ) &&
     563                    ( len = strlen( cmd[1] ) ) &&
     564                    g_strncasecmp( cmd[1], "set", len ) == 0 )
    565565                        cmd_set_real( irc, cmd + 1, &ic->set, NULL );
    566566                else
     
    642642                char *s, *group = NULL;;
    643643               
    644                 if( ( ic = irc_channel_by_name( irc, irc->last_root_cmd ) ) &&
     644                if( ( ic = irc->root->last_channel ) &&
    645645                    ( s = set_getstr( &ic->set, "fill_by" ) ) &&
    646646                    strcmp( s, "group" ) == 0 &&
Note: See TracChangeset for help on using the changeset viewer.