diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-03 21:44:07 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-03 21:44:07 +0000 |
commit | f956a4cc6c4d0789d0bab6304707967edf5dddf5 (patch) | |
tree | 050e913533df32c66c7c1f24d08bbbb48f7eac78 | |
parent | a245aa22076e17e72c84e5a0f5699209cdf62727 (diff) |
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
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |