From 907722538cf76f8937bf82f1680cdba32bdb282b Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 7 Mar 2010 19:06:32 -0600 Subject: Change OperInfo to store oper/type/class together. This allows privelages to be granted using or instead of requiring blocks. --- src/commands/cmd_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_oper.cpp') 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& 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")); -- cgit v1.3.1-10-gc9f91