summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 037a7a3af..c1a53b908 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -130,6 +130,7 @@ void Write(int sock,char *text, ...)
log(DEFAULT,"*** BUG *** Write was given an invalid parameter");
return;
}
+ log(DEBUG,"Write: Normal");
va_list argsPtr;
char textbuffer[MAXBUF],tb[MAXBUF];
va_start (argsPtr, text);
@@ -141,6 +142,7 @@ void Write(int sock,char *text, ...)
{
if (Config->GetIOHook(fd_ref_table[sock]->port))
{
+ log(DEBUG,"Write: IO Hooked");
Config->GetIOHook(fd_ref_table[sock]->port)->OnRawSocketWrite(sock,tb,bytes);
}
else
@@ -163,6 +165,7 @@ void WriteServ(int sock, char* text, ...)
log(DEFAULT,"*** BUG *** WriteServ was given an invalid parameter");
return;
}
+ log(DEBUG,"WriteServ: normal");
va_list argsPtr;
va_start (argsPtr, text);
char textbuffer[MAXBUF],tb[MAXBUF];
@@ -174,6 +177,7 @@ void WriteServ(int sock, char* text, ...)
{
if (Config->GetIOHook(fd_ref_table[sock]->port))
{
+ log(DEBUG,"WriteServ: IO Hooked");
Config->GetIOHook(fd_ref_table[sock]->port)->OnRawSocketWrite(sock,tb,bytes);
}
else
@@ -196,6 +200,7 @@ void WriteFrom(int sock, userrec *user,char* text, ...)
log(DEFAULT,"*** BUG *** WriteFrom was given an invalid parameter");
return;
}
+ log(DEBUG,"WriteFrom: normal");
va_list argsPtr;
va_start (argsPtr, text);
char textbuffer[MAXBUF],tb[MAXBUF];
@@ -207,6 +212,7 @@ void WriteFrom(int sock, userrec *user,char* text, ...)
{
if (Config->GetIOHook(fd_ref_table[sock]->port))
{
+ log(DEBUG,"WriteFrom: IO hooked");
Config->GetIOHook(fd_ref_table[sock]->port)->OnRawSocketWrite(sock,tb,bytes);
}
else