]> Nishi Git Mirror - libw3.git/commitdiff
new event
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 25 Feb 2024 18:40:37 +0000 (18:40 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 25 Feb 2024 18:40:37 +0000 (18:40 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@253 d27a3e52-49c5-7645-884c-6793ebffc270

Library/IRC.c
W3Version.h.m4

index 9970d5b8ec248d696c95bbe9b9bca2cb63702feb..142092e6b32b179d9ad07b2817398cabcea174e9 100644 (file)
@@ -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) {
index 98aacb839fbb5ef1b82ba2487e5adb7c53480fb5..eeaa1e161089d184a4032b6e33521b2f051cdaf8 100644 (file)
@@ -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', `')