Changeset ebaebfe for irc_commands.c


Ignore:
Timestamp:
2010-03-27T01:57:00Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4be8239
Parents:
3ddb7477
Message:

PING and QUIT work now, and adding some files that weren't checked in so
far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r3ddb7477 rebaebfe  
    9494}
    9595
    96 #if 0
    9796static void irc_cmd_quit( irc_t *irc, char **cmd )
    9897{
     
    105104static void irc_cmd_ping( irc_t *irc, char **cmd )
    106105{
    107         irc_write( irc, ":%s PONG %s :%s", irc->myhost, irc->myhost, cmd[1]?cmd[1]:irc->myhost );
    108 }
    109 
     106        irc_write( irc, ":%s PONG %s :%s", irc->root->host,
     107                   irc->root->host, cmd[1]?cmd[1]:irc->root->host );
     108}
     109
     110#if 0
    110111static void irc_cmd_oper( irc_t *irc, char **cmd )
    111112{
     
    580581        { "user",        4, irc_cmd_user,        IRC_CMD_PRE_LOGIN },
    581582        { "nick",        1, irc_cmd_nick,        0 },
    582 #if 0
    583583        { "quit",        0, irc_cmd_quit,        0 },
    584584        { "ping",        0, irc_cmd_ping,        0 },
     585#if 0
    585586        { "oper",        2, irc_cmd_oper,        IRC_CMD_LOGGED_IN },
    586587        { "mode",        1, irc_cmd_mode,        IRC_CMD_LOGGED_IN },
Note: See TracChangeset for help on using the changeset viewer.