X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Ftranslate.cpp;h=d5788d18cd840862ac48e9453a9ff09141fd1ed5;hb=6c2b6fa23d3a65ecdcebbf9154b8daa2e55727e9;hp=48c0632e557d98d865b77b4f29fc381a326a1250;hpb=b9e11915a976daaf790ebc763aff56e19fd49e0f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/translate.cpp b/src/modules/m_spanningtree/translate.cpp index 48c0632e5..d5788d18c 100644 --- a/src/modules/m_spanningtree/translate.cpp +++ b/src/modules/m_spanningtree/translate.cpp @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2014 Attila Molnar + * Copyright (C) 2014, 2016 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -27,7 +27,7 @@ std::string Translate::ModeChangeListToParams(const Modes::ChangeList::List& mod { const Modes::Change& item = *i; ModeHandler* mh = item.mh; - if (!mh->GetNumParams(item.adding)) + if (!mh->NeedsParam(item.adding)) continue; ret.push_back(' ');