X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_deaf.cpp;h=88919e91b072540184fe3637360109fd95537bf1;hb=f471083cd0519d47c7c7a09029813ede41994f7b;hp=5c4f7b2b60cb8601cfd7c90542a48d4710e8522e;hpb=173bc63cb59bbf19e73d1b823e3e9423c9f79860;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 5c4f7b2b6..88919e91b 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.cpp @@ -73,11 +73,11 @@ class ModuleDeaf : public Module * If we have no bypasschars_uline in config, and this is a bypasschar (regular) * Than it is obviously going to get through +d, no build required */ - if (!deaf_bypasschars_uline.empty() && is_bypasschar) + if (deaf_bypasschars_uline.empty() && is_bypasschar) return MOD_RES_PASSTHRU; - const UserMembList& ulist = chan->GetUsers(); - for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i) + const Channel::MemberMap& ulist = chan->GetUsers(); + for (Channel::MemberMap::const_iterator i = ulist.begin(); i != ulist.end(); ++i) { /* not +d ? */ if (!i->first->IsModeSet(m1)) @@ -94,9 +94,6 @@ class ModuleDeaf : public Module if (is_bypasschar && !is_a_uline) continue; /* deliver message */ - if (status && !strchr(i->second->GetAllPrefixChars(), status)) - continue; - /* don't deliver message! */ exempt_list.insert(i->first); }