From e827892a1353e2954b7ac6595bb40d7c89950350 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 8 Feb 2010 19:38:46 +0000 Subject: Also allow git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12400 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_rules.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/cmd_rules.cpp b/src/commands/cmd_rules.cpp index e1e44d51f..cd3253721 100644 --- a/src/commands/cmd_rules.cpp +++ b/src/commands/cmd_rules.cpp @@ -44,7 +44,11 @@ CmdResult CommandRules::Handle (const std::vector& parameters, User if (parameters.size() > 0 && parameters[0] != ServerInstance->Config->ServerName) return CMD_SUCCESS; - ConfigFileCache::iterator rules = ServerInstance->Config->Files.find("rules"); + ConfigTag* tag = NULL; + if (IS_LOCAL(user)) + tag = user->GetClass()->config; + std::string rules_name = tag->getString("rules", "rules"); + ConfigFileCache::iterator rules = ServerInstance->Config->Files.find(rules_name); if (rules == ServerInstance->Config->Files.end()) { user->SendText(":%s %03d %s :RULES file is missing.", -- cgit v1.2.3