summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-08 01:01:23 -0500
committerAdam <Adam@anope.org>2013-04-08 01:01:27 -0500
commit2eae82da5c3fc53ce9d32a20b0cf5650bb60f540 (patch)
treef9567671e3f600b9f9bf4bfe9ed73a99416f1754 /src/users.cpp
parent72493b73056662330592cf5c2f8c77bacd8903b5 (diff)
Check the channel secure option isn't set in ChannelInfo::AccessFor too
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 1355911bf..691653055 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -456,24 +456,20 @@ NickCore *User::Account() const
return this->nc;
}
-bool User::IsIdentified(bool CheckNick) const
+bool User::IsIdentified(bool check_nick) const
{
- if (CheckNick && this->nc)
+ if (check_nick && this->nc)
{
NickAlias *na = NickAlias::Find(this->nc->display);
-
- if (na && *na->nc == *this->nc)
- return true;
-
- return false;
+ return na && *na->nc == *this->nc;
}
return this->nc ? true : false;
}
-bool User::IsRecognized(bool CheckSecure) const
+bool User::IsRecognized(bool check_secure) const
{
- if (CheckSecure && on_access)
+ if (check_secure && on_access)
{
const NickAlias *na = NickAlias::Find(this->nick);