} 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) {
extern "C" {
#endif
-#define LIBW3_VERSION "2.18B" \
+#define LIBW3_VERSION "2.19" \
SUFFIX
ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `')