Changeset 82898af


Ignore:
Timestamp:
2006-03-18T09:10:57Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bc736cfa
Parents:
42d9571
Message:

Added the IRC VERSION command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r42d9571 r82898af  
    509509        irc->last_pong = gettime();
    510510        irc->pinging = 0;
     511}
     512
     513static void irc_cmd_version( irc_t *irc, char **cmd )
     514{
     515        irc_reply( irc, 351, "bitlbee-%s. %s :%s/%s ", BITLBEE_VERSION, irc->myhost, ARCH, CPU );
    511516}
    512517
     
    568573        { "motd",        0, irc_cmd_motd,        IRC_CMD_LOGGED_IN },
    569574        { "pong",        0, irc_cmd_pong,        IRC_CMD_LOGGED_IN },
     575        { "version",     0, irc_cmd_version,     IRC_CMD_LOGGED_IN },
    570576        { "completions", 0, irc_cmd_completions, IRC_CMD_LOGGED_IN },
    571577        { "die",         0, NULL,                IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
Note: See TracChangeset for help on using the changeset viewer.