summaryrefslogtreecommitdiff
path: root/src/modules/m_conn_waitpong.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-25 00:11:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-25 00:11:46 +0000
commitad8705d3f051e98b24ba404fcdd888acd30e13db (patch)
treeaa603a7981c9e6f78ec4443dd8cbbb3fc1bf9823 /src/modules/m_conn_waitpong.cpp
parent37976713821bf13dfe67c7b5d0d43c59affd12c7 (diff)
Add max line length value to modestacker, so that it can clamp the max length of a composed line to a given size. Defaults to 350 which should be safe with fmode and mode with a server name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6609 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_conn_waitpong.cpp')
-rw-r--r--src/modules/m_conn_waitpong.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp
index e6e6456ff..d7a4b833a 100644
--- a/src/modules/m_conn_waitpong.cpp
+++ b/src/modules/m_conn_waitpong.cpp
@@ -81,19 +81,23 @@ class ModuleWaitPong : public Module
{
if(command == "PONG")
{
+ ServerInstance->Log(DEBUG,"PONG command");
char* pingrpl;
user->GetExt(extenstr, pingrpl);
if(pingrpl)
{
+ ServerInstance->Log(DEBUG,"PONG command - has extend");
if(strcmp(pingrpl, parameters[0]) == 0)
{
+ ServerInstance->Log(DEBUG,"PONG command - pong matches ping ");
DELETE(pingrpl);
user->Shrink(extenstr);
return 1;
}
else
{
+ ServerInstance->Log(DEBUG,"PONG command - pong doesnt match ping");
if(killonbadreply)
userrec::QuitUser(ServerInstance, user, "Incorrect ping reply for registration");
return 1;
@@ -101,11 +105,13 @@ class ModuleWaitPong : public Module
}
}
+ ServerInstance->Log(DEBUG,"PONG command - fall through");
return 0;
}
virtual bool OnCheckReady(userrec* user)
{
+ ServerInstance->Log(DEBUG,"PONG command - oncheckready");
char* pingrpl;
return (!user->GetExt(extenstr, pingrpl));
}