summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 7523c1ff8..c6a607a9f 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -701,8 +701,8 @@ void User::Oper(const std::string &opertype, const std::string &opername)
char* savept;
char* savept2;
- if (user->IsModeSet('o'))
- user->Deoper();
+ if (this->IsModeSet('o'))
+ this->Deoper();
this->modes[UM_OPERATOR] = 1;
this->WriteServ("MODE %s :+o", this->nick.c_str());