From f956a4cc6c4d0789d0bab6304707967edf5dddf5 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 3 Aug 2009 21:44:07 +0000 Subject: Revert "Find the right variable so it actually works, too." This reverts commit a245aa22076e17e72c84e5a0f5699209cdf62727. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11475 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/users.cpp b/src/users.cpp index 673607298..2e4a49c3f 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(opertype.c_str()); + opertype_t::iterator iter_opertype = ServerInstance->Config->opertypes.find(this->oper.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