diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 15:44:38 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-07-07 15:13:09 +0200 |
commit | 404154826252d8a031d83ef5c098a8727d3fb6e2 (patch) | |
tree | ebf6fdc86440b188540774801bec670584fd2736 /src/modules/m_inviteexception.cpp | |
parent | 9f6ad08f77912bcce3c22c31744586d811631d92 (diff) |
m_inviteexception Remove useless check
Diffstat (limited to 'src/modules/m_inviteexception.cpp')
-rw-r--r-- | src/modules/m_inviteexception.cpp | 13 |
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; } } } |