summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/utils.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-07-19 13:32:41 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-22 13:42:20 +0200
commit67de413cad88194972d55a8ff88464370890c5a9 (patch)
tree6b8693cda26ee984b609b48eeea4ab19211fa31f /src/modules/m_spanningtree/utils.h
parent15f4e6b865de11299e7688f28415957737999e02 (diff)
m_spanningtree Remove duplicate code for sending channel messages from RouteCommand()
Diffstat (limited to 'src/modules/m_spanningtree/utils.h')
-rw-r--r--src/modules/m_spanningtree/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/utils.h b/src/modules/m_spanningtree/utils.h
index 491c4126f..345b62b09 100644
--- a/src/modules/m_spanningtree/utils.h
+++ b/src/modules/m_spanningtree/utils.h
@@ -40,8 +40,6 @@ extern SpanningTreeUtilities* Utils;
*/
typedef TR1NS::unordered_map<std::string, TreeServer*, irc::insensitive, irc::StrHashComp> server_hash;
-typedef std::set<TreeServer*> TreeServerList;
-
/** Contains helper functions and variables for this module,
* and keeps them out of the global namespace
*/
@@ -54,6 +52,8 @@ class SpanningTreeUtilities : public classbase
CacheRefreshTimer RefreshTimer;
public:
+ typedef std::set<TreeSocket*> TreeSocketSet;
+
/** Creator module
*/
ModuleSpanningTree* Creator;
@@ -150,7 +150,7 @@ class SpanningTreeUtilities : public classbase
/** Compile a list of servers which contain members of channel c
*/
- void GetListOfServersForChannel(Channel* c, TreeServerList &list, char status, const CUList &exempt_list);
+ void GetListOfServersForChannel(Channel* c, TreeSocketSet& list, char status, const CUList& exempt_list);
/** Find a server by name
*/
@@ -178,7 +178,7 @@ class SpanningTreeUtilities : public classbase
/** Sends a PRIVMSG or a NOTICE to a channel obeying an exempt list and an optional prefix
*/
- void SendChannelMessage(const std::string& prefix, Channel* target, const std::string &text, char status, const CUList& exempt_list, const char* message_type);
+ void SendChannelMessage(const std::string& prefix, Channel* target, const std::string& text, char status, const CUList& exempt_list, const char* message_type, TreeSocket* omit = NULL);
};
inline void SpanningTreeUtilities::DoOneToMany(const std::string& prefix, const std::string& command, const parameterlist& params)