summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-03 21:19:03 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-03 21:19:03 +0000
commita245aa22076e17e72c84e5a0f5699209cdf62727 (patch)
tree1c7fd749a42404a3678e5fc8a642c63fddc5817c /src
parentd8ee5433eab5c67e9094d9114e3696728f1cab2a (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
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());