From ddbb88336b5cfab012d0e18475487f98880cdbbf Mon Sep 17 00:00:00 2001 From: nishi Date: Mon, 26 Feb 2024 05:06:37 +0000 Subject: [PATCH] new irc event git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@256 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/IRC.c | 5 +++++ W3Version.h.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/IRC.c b/Library/IRC.c index 95aef91..7066415 100644 --- a/Library/IRC.c +++ b/Library/IRC.c @@ -165,6 +165,11 @@ void __W3_IRC_Request(struct W3* w3) { void (*func)(struct W3 * w3, char* on, char* message) = (void (*)(struct W3 * w3, char* from, char* message)) funcptr; func(w3, username[0] == '#' ? username : prefix, content); } + funcptr = __W3_Get_Event(w3, "message2"); + if(funcptr != NULL) { + void (*func)(struct W3 * w3, char* username, char* prefix, char* message) = (void (*)(struct W3 * w3, char* username, char* prefix, char* message)) funcptr; + func(w3, username, prefix, content); + } } } else if(strcasecmp(command, "PING") == 0) { __W3_Auto_Write(w3, "PONG ", 5); diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 3d47850..573ef63 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.19A" \ +#define LIBW3_VERSION "2.20" \ SUFFIX ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `') -- 2.43.0