summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 088aa5a67..b9564a2d5 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -642,12 +642,9 @@ ChanUserContainer *User::FindChannel(Channel *c) const
return NULL;
}
-bool User::IsProtected() const
+bool User::IsProtected()
{
- if (this->HasMode("PROTECTED") || this->HasMode("GOD"))
- return true;
-
- return false;
+ return this->HasMode("PROTECTED") || this->HasMode("GOD") || this->HasPriv("protected") || (this->server && this->server->IsULined());
}
void User::Kill(const MessageSource &source, const Anope::string &reason)