Changeset b23c5c7 for irc_commands.c


Ignore:
Timestamp:
2006-01-14T19:12:48Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
de3e100
Parents:
edf9657
Message:

Added correct responses for OPER command, stripped some unnecessary periods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    redf9657 rb23c5c7  
    3636        else
    3737        {
    38                 irc_reply( irc, 464, ":Incorrect password." );
     38                irc_reply( irc, 464, ":Incorrect password" );
    3939        }
    4040       
     
    9696{
    9797        if( global.conf->oper_pass && strcmp( cmd[2], global.conf->oper_pass ) == 0 )
     98        {
    9899                irc_umode_set( irc, "+o", 1 );
    99         // else
    100                 /* FIXME/TODO: Find out which reply to send now. */
     100                irc_reply( irc, 381, ":Password accepted" );
     101        }
     102        else
     103        {
     104                irc_reply( irc, 432, ":Incorrect password" );
     105        }
    101106       
    102107        return( 1 );
     
    311316                irc_reply( irc, 352, "%s %s %s %s %s %c :0 %s", channel, u->user, u->host, irc->myhost, u->nick, u->online ? ( u->away ? 'G' : 'H' ) : 'G', u->realname );
    312317       
    313         irc_reply( irc, 315, "%s :End of /WHO list.", channel?channel:"**" );
     318        irc_reply( irc, 315, "%s :End of /WHO list", channel?channel:"**" );
    314319       
    315320        return( 1 );
Note: See TracChangeset for help on using the changeset viewer.