diff options
| author | 2010-03-07 19:06:32 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:39 -0400 | |
| commit | 907722538cf76f8937bf82f1680cdba32bdb282b (patch) | |
| tree | e26537c82f7b2dd41d096b0e42149d9b03295b60 /src/commands/cmd_oper.cpp | |
| parent | Move "topic" permisison back to "exempt/topiclock" like 2.0 (diff) | |
Change OperInfo to store oper/type/class together.
This allows privelages to be granted using <oper:commands> or
<type:commands> instead of requiring <class> blocks.
Diffstat (limited to 'src/commands/cmd_oper.cpp')
| -rw-r--r-- | src/commands/cmd_oper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index bc356f2fb..ed69ceb25 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -65,7 +65,7 @@ CmdResult CommandOper::HandleLocal(const std::vector<std::string>& parameters, L if (i != ServerInstance->Config->oper_blocks.end()) { OperInfo* ifo = i->second; - ConfigTag* tag = ifo->oper_block; + ConfigTag* tag = ifo->config_blocks[0]; match_login = true; match_pass = !ServerInstance->PassCompare(user, tag->getString("password"), parameters[1], tag->getString("hash")); match_hosts = OneOfMatches(TheHost,TheIP,tag->getString("host")); |
