summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-nick.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-nick.c')
-rw-r--r--src/plugins/irc/irc-nick.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c
index 5419935f0..2dadbc9ae 100644
--- a/src/plugins/irc/irc-nick.c
+++ b/src/plugins/irc/irc-nick.c
@@ -517,6 +517,35 @@ irc_nick_nicklist_set (struct t_irc_channel *channel,
}
/*
+ * irc_nick_nicklist_set_color_all: set nick colors in nicklist for all
+ * servers/channels
+ */
+
+void
+irc_nick_nicklist_set_color_all ()
+{
+ struct t_irc_server *ptr_server;
+ struct t_irc_channel *ptr_channel;
+ struct t_irc_nick *ptr_nick;
+
+ for (ptr_server = irc_servers; ptr_server;
+ ptr_server = ptr_server->next_server)
+ {
+ for (ptr_channel = ptr_server->channels; ptr_channel;
+ ptr_channel = ptr_channel->next_channel)
+ {
+ for (ptr_nick = ptr_channel->nicks; ptr_nick;
+ ptr_nick = ptr_nick->next_nick)
+ {
+ irc_nick_nicklist_set (ptr_channel, ptr_nick, "color",
+ irc_nick_get_color_for_nicklist (ptr_server,
+ ptr_nick));
+ }
+ }
+ }
+}
+
+/*
* irc_nick_new: allocate a new nick for a channel and add it to the nick list
*/