]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Fix MOTD and RULES to work remotely (remove the old hacks for MOTD)
[user/henk/code/inspircd.git] / src / configreader.cpp
index c62973c8993388058aafeefc0192c59a778117bc..6057420c84ead17b7e03f441f573bc231d116a16 100644 (file)
@@ -214,6 +214,7 @@ void ServerConfig::CrossCheckOperClassType()
 
                OperInfo* ifo = new OperInfo;
                oper_blocks[" " + name] = ifo;
+               ifo->name = name;
                ifo->type_block = tag;
 
                std::string classname;
@@ -872,7 +873,7 @@ void ConfigReaderThread::Finish()
                ServerInstance->Res->Rehash();
                ServerInstance->ResetMaxBans();
                Config->ApplyDisabledCommands(Config->DisabledCommands);
-               User* user = TheUserUID.empty() ? ServerInstance->FindNick(TheUserUID) : NULL;
+               User* user = ServerInstance->FindNick(TheUserUID);
                FOREACH_MOD(I_OnRehash, OnRehash(user));
                ServerInstance->BuildISupport();