Ticket #94: version-irc_commands.patch

File version-irc_commands.patch, 794 bytes (added by timing, at 2006-02-04T20:39:58Z)
  • irc_commands.c

    === modified file 'irc_commands.c'
     
    540540       
    541541        irc_reply( irc, 382, "%s :Rehashing", CONF_FILE );
    542542}
     543static void irc_cmd_version ( irc_t *irc, char **cmd ) {
     544        irc_reply( irc, 351, ":BitlBee " BITLBEE_VERSION " " ARCH "/" CPU );
     545}
    543546
    544547static const command_t irc_commands[] = {
    545548        { "pass",        1, irc_cmd_pass,        IRC_CMD_PRE_LOGIN },
     
    547550        { "nick",        1, irc_cmd_nick,        0 },
    548551        { "quit",        0, irc_cmd_quit,        0 },
    549552        { "ping",        0, irc_cmd_ping,        0 },
     553        { "version",     0, irc_cmd_version,     0 },
    550554        { "oper",        2, irc_cmd_oper,        IRC_CMD_LOGGED_IN },
    551555        { "mode",        1, irc_cmd_mode,        IRC_CMD_LOGGED_IN },
    552556        { "names",       0, irc_cmd_names,       IRC_CMD_LOGGED_IN },