aboutsummaryrefslogtreecommitdiffstats
path: root/src/MessageCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/MessageCommands.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/MessageCommands.cxx b/src/MessageCommands.cxx
index 5be179027..6ac5912e7 100644
--- a/src/MessageCommands.cxx
+++ b/src/MessageCommands.cxx
@@ -83,12 +83,8 @@ collect_channels(gpointer data, gpointer user_data)
(struct channels_context *)user_data;
const Client *client = (const Client *)data;
- for (GSList *i = client->subscriptions; i != NULL;
- i = g_slist_next(i)) {
- const char *channel = (const char *)i->data;
-
- context->channels.insert(channel);
- }
+ context->channels.insert(client->subscriptions.begin(),
+ client->subscriptions.end());
}
enum command_return