summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-08-27 19:28:35 +0000
committerGravatar w00t2008-08-27 19:28:35 +0000
commit97889f57c170ef2d3fe86c72f518948a9a7cb7a1 (patch)
tree5a47692546449339f2e37178a1344f5649176da5 /src/users.cpp
parentClean up opering a tiny bit.. pave the way for SVSOPER (diff)
Fix..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10325 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-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());