summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 01:37:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 01:37:03 +0000
commit4897253c0c195c755a715a2b68ce04044047e6d6 (patch)
treeb76254c6334aea3c6e8c6e4069fccaaf8429e48c
parent26109f0de89efba80dc49bcbf216a453cd40320c (diff)
Now errors when sent SERVER on a non-server port
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3119 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/command_parse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index e6c0f46ce..9835c6961 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -506,6 +506,11 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd)
}
std::string xcommand = command;
+ if ((user->registered != 7) && (xcommand == "SERVER"))
+ {
+ kill_link(user,"Server connection to non-server port");
+ return;
+ }
/* Tweak by brain - why was this INSIDE the mainloop? */
if (parameters)