]> Nishi Git Mirror - libw3.git/commitdiff
new irc event
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 26 Feb 2024 05:06:37 +0000 (05:06 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 26 Feb 2024 05:06:37 +0000 (05:06 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@256 d27a3e52-49c5-7645-884c-6793ebffc270

Library/IRC.c
W3Version.h.m4

index 95aef91f424bada6f0d39e84e8b81dd12a0c157a..7066415d90d1dc86aaddc4f7acef2ca8e3b3cbfa 100644 (file)
@@ -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);
index 3d478506b2e1c787e8b4fab2707b5e1b60c42d33..573ef63499919ddb56a3f4de9e78c83d6334e2c0 100644 (file)
@@ -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', `')