From f505e1821bf0b6e3c36df4bab8e3a4f3d1710dfd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 1 Apr 2007 18:34:19 +0000 Subject: Add -config parameter to bin/inspircd which allows a user to specify the config file on the commandline Note: This should really be a full pathname, and not a configuration file in the current directory. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6726 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_rehash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_rehash.cpp') diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index 815e241f0..4d4b97c8e 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -25,7 +25,7 @@ extern "C" command_t* init_command(InspIRCd* Instance) CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user) { - user->WriteServ("382 %s %s :Rehashing",user->nick,ServerConfig::CleanFilename(CONFIG_FILE)); + user->WriteServ("382 %s %s :Rehashing",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName)); std::string parameter = ""; std::string old_disabled = ServerInstance->Config->DisabledCommands; if (pcnt) @@ -34,7 +34,7 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user) } else { - ServerInstance->WriteOpers("*** %s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(CONFIG_FILE)); + ServerInstance->WriteOpers("*** %s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName)); ServerInstance->CloseLog(); ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc); ServerInstance->RehashUsersAndChans(); -- cgit v1.2.3