From 5d18f26b6bfb7a575b50dc2e3ad909131b9f75da Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 13:02:38 +0000 Subject: Fix case sensitive commands issue due to new std::string based parser, improve the craq disabled commands check that was potentially O(n) where n is the number of disabled commands (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4404 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4333511bf..a6106a787 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -294,13 +294,14 @@ InspIRCd::InspIRCd(int argc, char** argv) OpenLog(argv, argc); this->stats = new serverstats(); + this->Parser = new CommandParser(); Config->ClearStack(); Config->Read(true,NULL); CheckRoot(); this->ModeGrok = new ModeParser(); - this->Parser = new CommandParser(); AddServerName(Config->ServerName); CheckDie(); + InitializeDisabledCommands(Config->DisabledCommands, this); stats->BoundPortCount = BindPorts(true); for(int t = 0; t < 255; t++) -- cgit v1.2.3