From 72da54c1c2a4f4b59d852e79adaee3348c4874ad Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 23 Dec 2006 23:18:34 +0000 Subject: Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this is BAD BAD BAD.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5cfb55ab1..c8be0d019 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -266,6 +266,10 @@ InspIRCd::InspIRCd(int argc, char** argv) this->chanlist = new chan_hash(); this->Config = new ServerConfig(this); + + this->Config->argv = argv; + this->Config->argc = argc; + this->Config->opertypes.clear(); this->Config->operclass.clear(); this->SNO = new SnomaskManager(this); -- cgit v1.3.1-10-gc9f91