summaryrefslogtreecommitdiff
path: root/src/irc/irc-nick.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc-nick.c')
-rw-r--r--src/irc/irc-nick.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/irc-nick.c b/src/irc/irc-nick.c
index 9d20d4ca8..615606e6e 100644
--- a/src/irc/irc-nick.c
+++ b/src/irc/irc-nick.c
@@ -30,6 +30,7 @@
#include "../common/weechat.h"
#include "irc.h"
+#include "../common/weeconfig.h"
/*
@@ -46,7 +47,7 @@ nick_find_color (t_irc_nick *nick)
{
color += (int)(nick->nick[i]);
}
- color = (color % COLOR_WIN_NICK_NUMBER);
+ color = (color % cfg_look_color_nicks_number);
return COLOR_WIN_NICK_FIRST + color;
}