1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 04:43:13 +02:00

Check the channel secure option isn't set in ChannelInfo::AccessFor too

This commit is contained in:
Adam
2013-04-08 01:01:23 -05:00
parent 72493b7305
commit 2eae82da5c
3 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ AccessGroup ChannelInfo::AccessFor(const User *u)
return group;
const NickCore *nc = u->Account();
if (nc == NULL && u->IsRecognized())
if (nc == NULL && !this->HasExt("SECURE") && u->IsRecognized())
{
const NickAlias *na = NickAlias::Find(u->nick);
if (na != NULL)
+5 -9
View File
@@ -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);