X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_allowinvite.cpp;h=4805e1ac6d6034f9ff0e24fa9ad035b183fe57f2;hb=fcafba14c5408360ec725ed1649ede75b7ae52c1;hp=cbab0bd2f1d94a81a1fd8392b84108bb6c26d006;hpb=bd12e3a4e6501496f6eeb7aeb5245162020d6e6c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index cbab0bd2f..4805e1ac6 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -3,7 +3,7 @@ * +------------------------------------+ * * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -44,7 +44,13 @@ class ModuleAllowInvite : public Module { if (IS_LOCAL(user)) { - if (channel->IsModeSet('A') && channel->GetExtBanStatus(user, 'A') < 0) + if (channel->GetExtBanStatus(user, 'A') == -1) + { + // Matching extban, explicitly deny /invite + user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You are banned from using INVITE", user->nick.c_str(), channel->name.c_str()); + return 1; + } + if (channel->IsModeSet('A') || channel->GetExtBanStatus(user, 'A') == 1) { // Explicitly allow /invite return -1;