diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-08 19:38:46 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-08 19:38:46 +0000 |
commit | e827892a1353e2954b7ac6595bb40d7c89950350 (patch) | |
tree | 4c21964013bf71da26be874cc457da8e6ce72eb8 /src | |
parent | f0a928a2f7de2ebde53dfb6cf25ead86a5e480d8 (diff) |
Also allow <connect rules>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12400 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/cmd_rules.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::string>& 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.", |