]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/mode.cpp
rename channel modes +it to distinguish them from commands
[user/henk/code/inspircd.git] / src / mode.cpp
index 7aeaae1dcd933022ffa73eff4717842d12f2d24c..637eb7ba5c805d30ef01c60d6e0afdc9c33bebc7 100644 (file)
@@ -644,6 +644,9 @@ bool ModeParser::AddMode(ModeHandler* mh)
        if ((mh->GetPrefix() == ',') || (mh->GetPrefix() == ':') || (mh->GetPrefix() == '#'))
                return false;
 
+       if (mh->GetPrefix() && FindPrefix(mh->GetPrefix()))
+               return false;
+
        mh->GetModeType() == MODETYPE_USER ? mask = MASK_USER : mask = MASK_CHANNEL;
        pos = (mh->GetModeChar()-65) | mask;