Changeset e277e80 for irc_commands.c


Ignore:
Timestamp:
2013-04-20T22:50:31Z (6 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c608891
Parents:
dd95ce4
Message:

Add irc_t* argument to all relevant nick_*() functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rdd95ce4 re277e80  
    8080                irc_send_num( irc, 433, "%s :This nick is already in use", cmd[1] );
    8181        }
    82         else if( !nick_ok( cmd[1] ) )
     82        else if( !nick_ok( NULL, cmd[1] ) )
    8383        {
    8484                /* [SH] Invalid characters. */
     
    291291        else
    292292        {
    293                 if( nick_cmp( cmd[1], irc->user->nick ) == 0 )
     293                if( nick_cmp( NULL, cmd[1], irc->user->nick ) == 0 )
    294294                {
    295295                        if( cmd[2] )
     
    392392        /* At least for now just echo. IIRC some IRC clients use self-notices
    393393           for lag checks, so try to support that. */
    394         if( nick_cmp( cmd[1], irc->user->nick ) == 0 )
     394        if( nick_cmp( NULL, cmd[1], irc->user->nick ) == 0 )
    395395                irc_send_msg( irc->user, "NOTICE", irc->user->nick, cmd[2], NULL );
    396396        else if( ( iu = irc_user_by_name( irc, cmd[1] ) ) )
     
    593593               
    594594                nick = g_strdup( cmd[i] + 1 );
    595                 nick_lc( nick );
     595                nick_lc( irc, nick );
    596596               
    597597                iu = irc_user_by_name( irc, nick );
Note: See TracChangeset for help on using the changeset viewer.