mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
m_inviteexception Remove useless check
This commit is contained in:
parent
9f6ad08f77
commit
4041548262
@ -68,17 +68,14 @@ public:
|
||||
|
||||
ModResult OnCheckInvite(User* user, Channel* chan)
|
||||
{
|
||||
if(chan != NULL)
|
||||
modelist* list = ie.extItem.get(chan);
|
||||
if (list)
|
||||
{
|
||||
modelist* list = ie.extItem.get(chan);
|
||||
if (list)
|
||||
for (modelist::iterator it = list->begin(); it != list->end(); it++)
|
||||
{
|
||||
for (modelist::iterator it = list->begin(); it != list->end(); it++)
|
||||
if (chan->CheckBan(user, it->mask))
|
||||
{
|
||||
if (chan->CheckBan(user, it->mask))
|
||||
{
|
||||
return MOD_RES_ALLOW;
|
||||
}
|
||||
return MOD_RES_ALLOW;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user