]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/translate.cpp
Add a subclass of IOHookProvider for SSL modules.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / translate.cpp
index 48c0632e557d98d865b77b4f29fc381a326a1250..d5788d18cd840862ac48e9453a9ff09141fd1ed5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com>
  *
  * 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(' ');