aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/MessageCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 11:33:53 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 11:35:23 +0100
commitabc16b919ddb5f1d7d76774691b7d664ca5ef3ea (patch)
tree1867b4500b0433fe66337360a025a277f081de96 /src/command/MessageCommands.cxx
parent2de7cd32eaec778f9630b682edbca3d1430cd27b (diff)
downloadmpd-abc16b919ddb5f1d7d76774691b7d664ca5ef3ea.tar.gz
mpd-abc16b919ddb5f1d7d76774691b7d664ca5ef3ea.tar.xz
mpd-abc16b919ddb5f1d7d76774691b7d664ca5ef3ea.zip
{Message,Neighbor}Commands: use Client::partition instead of Main.hxx
Diffstat (limited to 'src/command/MessageCommands.cxx')
-rw-r--r--src/command/MessageCommands.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/MessageCommands.cxx b/src/command/MessageCommands.cxx
index b04e72c07..fe7500aaf 100644
--- a/src/command/MessageCommands.cxx
+++ b/src/command/MessageCommands.cxx
@@ -22,7 +22,7 @@
#include "client/Client.hxx"
#include "client/ClientList.hxx"
#include "Instance.hxx"
-#include "Main.hxx"
+#include "Partition.hxx"
#include "protocol/Result.hxx"
#include <set>
@@ -81,7 +81,7 @@ handle_channels(Client &client,
assert(argc == 1);
std::set<std::string> channels;
- for (const auto &c : *instance->client_list)
+ for (const auto &c : *client.partition.instance.client_list)
channels.insert(c->subscriptions.begin(),
c->subscriptions.end());
@@ -122,7 +122,7 @@ handle_send_message(Client &client,
bool sent = false;
const ClientMessage msg(argv[1], argv[2]);
- for (const auto &c : *instance->client_list)
+ for (const auto &c : *client.partition.instance.client_list)
if (c->PushMessage(msg))
sent = true;