aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-24 16:16:38 +0100
committerJelmer Vernooij <jelmer@samba.org>2006-03-24 16:16:38 +0100
commit728a981e422539df38d27d87e33829082d376ac6 (patch)
tree86458693b4f0f38f3695ce7fe3bcc7b1ee67c818 /irc_commands.c
parent96ace1b808f4df3f2106fa90c19fdc23408f924d (diff)
parent9b8a38bfa9a89e9741521ac522927c80b68976cf (diff)
[merge] Wilmer
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/irc_commands.c b/irc_commands.c
index f2c7a645..01b01dfb 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -510,6 +510,11 @@ static void irc_cmd_pong( irc_t *irc, char **cmd )
irc->pinging = 0;
}
+static void irc_cmd_version( irc_t *irc, char **cmd )
+{
+ irc_reply( irc, 351, "bitlbee-%s. %s :%s/%s ", BITLBEE_VERSION, irc->myhost, ARCH, CPU );
+}
+
static void irc_cmd_completions( irc_t *irc, char **cmd )
{
user_t *u = user_find( irc, irc->mynick );
@@ -567,6 +572,7 @@ static const command_t irc_commands[] = {
{ "ns", 1, irc_cmd_nickserv, IRC_CMD_LOGGED_IN },
{ "motd", 0, irc_cmd_motd, IRC_CMD_LOGGED_IN },
{ "pong", 0, irc_cmd_pong, IRC_CMD_LOGGED_IN },
+ { "version", 0, irc_cmd_version, IRC_CMD_LOGGED_IN },
{ "completions", 0, irc_cmd_completions, IRC_CMD_LOGGED_IN },
{ "die", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
{ "wallops", 1, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },