From 24b8bbb2616d685006a279e46a4bd2e8e7cf6694 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 12 Apr 2010 02:06:49 +0200 Subject: Start handling CTCPs, in a saner way than before. --- irc_user.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'irc_user.c') diff --git a/irc_user.c b/irc_user.c index b7629490..cf1d1e3e 100644 --- a/irc_user.c +++ b/irc_user.c @@ -146,8 +146,18 @@ static gboolean root_privmsg( irc_user_t *iu, const char *msg ) return TRUE; } +static gboolean root_ctcp( irc_user_t *iu, char * const *ctcp ) +{ + if( g_strcasecmp( ctcp[0], "VERSION" ) == 0 ) + { + } + + return TRUE; +} + const struct irc_user_funcs irc_user_root_funcs = { root_privmsg, + root_ctcp, }; /* Echo to yourself: */ -- cgit v1.2.3