From: nishi Date: Sun, 25 Feb 2024 18:40:37 +0000 (+0000) Subject: new event X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=53148be6ae5b15e1f41979261341e6d0283c5c49;p=libw3.git new event git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@253 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/IRC.c b/Library/IRC.c index 9970d5b..142092e 100644 --- a/Library/IRC.c +++ b/Library/IRC.c @@ -116,6 +116,11 @@ void __W3_IRC_Request(struct W3* w3) { } else if(phase == 3) { if(buf[i] == '\n') { phase = 0; + void* funcptr = __W3_Get_Event(w3, "all"); + if(funcptr != NULL) { + void (*func)(struct W3* w3, char* prefix, char* command, char* data) = (void (*)(struct W3* w3, char* prefix, char* command, char* data))funcptr; + func(w3, prefix, command, params); + } /* Parse commands here */ if(strcasecmp(command, "PRIVMSG") == 0) { diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 98aacb8..eeaa1e1 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.18B" \ +#define LIBW3_VERSION "2.19" \ SUFFIX ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `')