summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2021-02-12 15:33:29 -0500
committerChristopher Michael <devilhorns@comcast.net>2021-02-12 15:33:29 -0500
commita7c02223db34b747b24a782da26ffdcff1748a3d (patch)
treebc3abae95bf6ca3ea259c4b6427ff20b321890be
parentad0e68948574bc634a52ae7bdb8f97157425eef3 (diff)
express: Ignore ctcp version requests for now
-rw-r--r--src/lib/network.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/network.c b/src/lib/network.c
index 39d2f20..1450b37 100644
--- a/src/lib/network.c
+++ b/src/lib/network.c
@@ -375,10 +375,18 @@ _process_buffer(Express_Network *net, char *data, int length)
375 else if (!strncasecmp(params[0], 375 else if (!strncasecmp(params[0],
376 net->nick, strlen(net->nick))) 376 net->nick, strlen(net->nick)))
377 { 377 {
378 if (net->callbacks.priv_msg) 378 if (!strncasecmp(params[1], "VERSION", len))
379 (*net->callbacks.priv_msg)(net, "PRIVMSG", prefix, 379 {
380 params, index, 380 /* TODO: Implement version support */
381 net->callbacks.data); 381 }
382 else
383 {
384 if (net->callbacks.priv_msg)
385 (*net->callbacks.priv_msg)(net, "PRIVMSG",
386 prefix, params,
387 index,
388 net->callbacks.data);
389 }
382 } 390 }
383 else 391 else
384 { 392 {