aboutsummaryrefslogtreecommitdiffstats
path: root/irc_user.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-12 02:06:49 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-12 02:06:49 +0200
commit24b8bbb2616d685006a279e46a4bd2e8e7cf6694 (patch)
treec585d428a08bdd8c7f22b1fdef8e65d758f60d6e /irc_user.c
parente21c0f8b276cc3ca177bcf6217eba9c634d410f7 (diff)
Start handling CTCPs, in a saner way than before.
Diffstat (limited to 'irc_user.c')
-rw-r--r--irc_user.c10
1 files changed, 10 insertions, 0 deletions
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: */