From a245aa22076e17e72c84e5a0f5699209cdf62727 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 3 Aug 2009 21:19:03 +0000 Subject: Find the right variable so it actually works, too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11474 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 2e4a49c3f..673607298 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -747,7 +747,7 @@ void User::Oper(const std::string &opertype, const std::string &opername) if (this->IsModeSet('o')) this->UnOper(); - opertype_t::iterator iter_opertype = ServerInstance->Config->opertypes.find(this->oper.c_str()); + opertype_t::iterator iter_opertype = ServerInstance->Config->opertypes.find(opertype.c_str()); if (iter_opertype == ServerInstance->Config->opertypes.end()) { ServerInstance->Logs->Log("OPER", DEBUG, "%s!%s@%s opered as type: %s which didn't exist, failing", this->nick.c_str(), this->ident.c_str(), this->host.c_str(), opertype.c_str()); -- cgit v1.2.3