]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/uid.cpp
m_spanningtree Refuse topic changes that would result in desync
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / uid.cpp
index eff5371199110a59d14f4ebd398506b38c5b14b1..a41fe408d990a3525cd6d97863a878f2720a4c64 100644 (file)
@@ -98,7 +98,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, std::vector<std::st
                if (!mh)
                        throw ProtocolException("Unrecognised mode '" + std::string(1, *v) + "'");
 
-               if (mh->GetNumParams(true))
+               if (mh->NeedsParam(true))
                {
                        if (paramptr >= params.size() - 1)
                                throw ProtocolException("Out of parameters while processing modes");