=== modified file 'irc_commands.c'
|
|
|
540 | 540 | |
541 | 541 | irc_reply( irc, 382, "%s :Rehashing", CONF_FILE ); |
542 | 542 | } |
| 543 | static void irc_cmd_version ( irc_t *irc, char **cmd ) { |
| 544 | irc_reply( irc, 351, ":BitlBee " BITLBEE_VERSION " " ARCH "/" CPU ); |
| 545 | } |
543 | 546 | |
544 | 547 | static const command_t irc_commands[] = { |
545 | 548 | { "pass", 1, irc_cmd_pass, IRC_CMD_PRE_LOGIN }, |
… |
… |
|
547 | 550 | { "nick", 1, irc_cmd_nick, 0 }, |
548 | 551 | { "quit", 0, irc_cmd_quit, 0 }, |
549 | 552 | { "ping", 0, irc_cmd_ping, 0 }, |
| 553 | { "version", 0, irc_cmd_version, 0 }, |
550 | 554 | { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN }, |
551 | 555 | { "mode", 1, irc_cmd_mode, IRC_CMD_LOGGED_IN }, |
552 | 556 | { "names", 0, irc_cmd_names, IRC_CMD_LOGGED_IN }, |