From 4897253c0c195c755a715a2b68ce04044047e6d6 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 7 Feb 2006 01:37:03 +0000 Subject: 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 --- src/command_parse.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.2.3