summaryrefslogtreecommitdiff
path: root/src/modules/m_inviteexception.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-04 15:44:38 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-07 15:13:09 +0200
commit404154826252d8a031d83ef5c098a8727d3fb6e2 (patch)
treeebf6fdc86440b188540774801bec670584fd2736 /src/modules/m_inviteexception.cpp
parent9f6ad08f77912bcce3c22c31744586d811631d92 (diff)
m_inviteexception Remove useless check
Diffstat (limited to 'src/modules/m_inviteexception.cpp')
-rw-r--r--src/modules/m_inviteexception.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp
index 33c82fa0a..5e6628e6d 100644
--- a/src/modules/m_inviteexception.cpp
+++ b/src/modules/m_inviteexception.cpp
@@ -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;
}
}
}