From: nishi Date: Mon, 26 Feb 2024 05:06:37 +0000 (+0000) Subject: new irc event X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ddbb88336b5cfab012d0e18475487f98880cdbbf;p=libw3.git new irc event git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@256 d27a3e52-49c5-7645-884c-6793ebffc270 --- 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', `')