diff options
-rw-r--r-- | src/command_parse.cpp | 5 |
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) |