]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/utils.cpp
Document <alias:stripcolor>
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / utils.cpp
index a18ec854ddbcc79cfcfa96641dfc9f92ccefec39..41cce0541c9ad93d6137605e694eb5c9e7d6cab2 100644 (file)
@@ -28,7 +28,6 @@
 #include "treesocket.h"
 #include "resolvers.h"
 #include "commandbuilder.h"
-#include "modules/server.h"
 
 SpanningTreeUtilities* Utils = NULL;
 
@@ -171,7 +170,7 @@ void SpanningTreeUtilities::GetListOfServersForChannel(Channel* c, TreeSocketSet
        for (TreeServer::ChildServers::const_iterator i = children.begin(); i != children.end(); ++i)
        {
                ModResult result;
-               FIRST_MOD_RESULT_CUSTOM(Creator->GetEventProvider(), ServerEventListener, OnBroadcastMessage, result, (c, *i));
+               FIRST_MOD_RESULT_CUSTOM(Creator->GetBroadcastEventProvider(), ServerProtocol::BroadcastEventListener, OnBroadcastMessage, result, (c, *i));
                if (result == MOD_RES_ALLOW)
                        list.insert((*i)->GetSocket());
        }
@@ -351,9 +350,9 @@ Link* SpanningTreeUtilities::FindLink(const std::string& name)
        return NULL;
 }
 
-void SpanningTreeUtilities::SendChannelMessage(const std::string& prefix, Channel* target, const std::string& text, char status, const ClientProtocol::TagMap& tags, const CUList& exempt_list, const char* message_type, TreeSocket* omit)
+void SpanningTreeUtilities::SendChannelMessage(User* source, Channel* target, const std::string& text, char status, const ClientProtocol::TagMap& tags, const CUList& exempt_list, const char* message_type, TreeSocket* omit)
 {
-       CmdBuilder msg(prefix, message_type);
+       CmdBuilder msg(source, message_type);
        msg.push_tags(tags);
        msg.push_raw(' ');
        if (status != 0)