summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-19 13:07:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-19 13:07:46 +0000
commit2f3ac3d80192a9c4faec3345fffdf07c488b0e8e (patch)
treea91ed660a06a3dbaf61a614066824a067c7dde26 /src/helperfuncs.cpp
parentca0889d458ab768f32f399c0afe5f4e36dcd07d9 (diff)
SSL is a fucking mess.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2565 e03df62e-2008-0410-955e-edbf42e46eb7
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