diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-09 18:28:11 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-09 18:28:11 +0200 |
commit | dafa2f3031c4abc7f5506385770c4fc743669b17 (patch) | |
tree | 16286565f98bee3a662b4b2b5e6f23352aaf4bed /src/commands/cmd_rules.cpp | |
parent | b4542af6b4c69dff7d2c28d9c435304b7d78dc38 (diff) |
Remove virtual User::GetClass() (but keep LocalUser::GetClass())
Diffstat (limited to 'src/commands/cmd_rules.cpp')
-rw-r--r-- | src/commands/cmd_rules.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/cmd_rules.cpp b/src/commands/cmd_rules.cpp index 5d41aa4b8..76ee0061b 100644 --- a/src/commands/cmd_rules.cpp +++ b/src/commands/cmd_rules.cpp @@ -52,8 +52,9 @@ CmdResult CommandRules::Handle (const std::vector<std::string>& parameters, User return CMD_SUCCESS; ConfigTag* tag = NULL; - if (IS_LOCAL(user)) - tag = user->GetClass()->config; + LocalUser* localuser = IS_LOCAL(user); + if (localuser) + tag = localuser->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()) |