From c5bbaae6df48315887d93a6453f1ddeef690939f Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 24 Feb 2024 09:13:28 +0000 Subject: [PATCH] fixing ctcp version git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@252 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/IRC.c | 6 +++--- W3Version.h.m4 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/IRC.c b/Library/IRC.c index 2d75982..9970d5b 100644 --- a/Library/IRC.c +++ b/Library/IRC.c @@ -146,7 +146,7 @@ void __W3_IRC_Request(struct W3* w3) { "VERSION" "\x01") == 0) { __W3_Auto_Write(w3, "NOTICE ", 7); - __W3_Auto_Write(w3, prefix, strlen(prefix)); + __W3_Auto_Write(w3, sentfrom, strlen(sentfrom)); __W3_Auto_Write(w3, " :", 2); __W3_Auto_Write(w3, __W3_Get_Prop(w3, "IRC_VERSION"), strlen(__W3_Get_Prop(w3, "IRC_VERSION"))); __W3_Auto_Write(w3, "\r\n", 2); @@ -157,7 +157,7 @@ void __W3_IRC_Request(struct W3* w3) { } void* funcptr = __W3_Get_Event(w3, "message"); if(funcptr != NULL) { - void (*func)(struct W3 * w3, char* on, char* message) = (void (*)(struct W3 * w3, char* from, char* message)) funcptr; + 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); } } @@ -168,7 +168,7 @@ void __W3_IRC_Request(struct W3* w3) { } else { void* funcptr = __W3_Get_Event(w3, "unknown"); 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; + 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); } } diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 6b9b042..98aacb8 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.18A" \ +#define LIBW3_VERSION "2.18B" \ SUFFIX ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `') -- 2.43.0