diff options
| author | 2006-02-07 01:37:03 +0000 | |
|---|---|---|
| committer | 2006-02-07 01:37:03 +0000 | |
| commit | 4897253c0c195c755a715a2b68ce04044047e6d6 (patch) | |
| tree | b76254c6334aea3c6e8c6e4069fccaaf8429e48c /src/command_parse.cpp | |
| parent | Modified ./configure to symlink ssl modules instead of cp'ing them, this make... (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
Diffstat (limited to 'src/command_parse.cpp')
| -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) |
