summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c6a607a9f..adf32b752 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -702,7 +702,7 @@ void User::Oper(const std::string &opertype, const std::string &opername)
char* savept2;
if (this->IsModeSet('o'))
- this->Deoper();
+ this->UnOper();
this->modes[UM_OPERATOR] = 1;
this->WriteServ("MODE %s :+o", this->nick.c_str());