X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmode.cpp;h=637eb7ba5c805d30ef01c60d6e0afdc9c33bebc7;hb=c2a3ebea46f3527e0680f1258725f95ff13f0880;hp=7aeaae1dcd933022ffa73eff4717842d12f2d24c;hpb=9f050cf19594ce424ec50c8469d49157a6f2fe75;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/mode.cpp b/src/mode.cpp index 7aeaae1dc..637eb7ba5 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -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;