X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Ftranslate.cpp;h=d5788d18cd840862ac48e9453a9ff09141fd1ed5;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=48c0632e557d98d865b77b4f29fc381a326a1250;hpb=6fe1f4e1136f2ab95a88e68af1894bf6002d03f4;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(' ');