]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Merge pull request #1136 from Adam-/insp20+dccallow
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index a9a92e67a9b382a65f113e30a1879b36a97d39b4..20d4c8e8faeeed905350aac88dfc2eb79c90b511 100644 (file)
@@ -182,6 +182,11 @@ ModResult ModuleDelayJoin::OnRawMode(User* user, Channel* channel, const char mo
        if (!user || !channel || param.empty())
                return MOD_RES_PASSTHRU;
 
+       ModeHandler* mh = ServerInstance->Modes->FindMode(mode, MODETYPE_CHANNEL);
+       // If not a prefix mode then we got nothing to do here
+       if (!mh || !mh->GetPrefixRank())
+               return MOD_RES_PASSTHRU;
+
        User* dest;
        if (IS_LOCAL(user))
                dest = ServerInstance->FindNickOnly(param);