Skip to content
Permalink
Browse files
Fixed chat color bug in Channel System (#2140)
`@channel setcolor` command failed to change the font color, resulting in black font color.
  • Loading branch information
nanakiwurtz authored and cydh committed May 16, 2017
1 parent 79ad0a1 commit c0476f6bfef2dab29f09bbd1f63d08ce91223117
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/map/channel.c
@@ -857,7 +857,7 @@ int channel_pccolor(struct map_session_data *sd, char *chname, char *color){
clif_displaymessage(sd->fd, output);
return -1;
}
channel->color = k;
channel->color = channel_config.colors[k];
sprintf(output, msg_txt(sd,1413),chname,channel_config.colors_name[k]);// '%s' channel color updated to '%s'.
clif_displaymessage(sd->fd, output);
return 0;
@@ -1290,7 +1290,7 @@ unsigned long channel_getColor(const char *color_str) {
if (strcmpi(channel_config.colors_name[i], color_str) == 0)
return channel_config.colors[i];
}
return 1;
return channel_config.colors[0];
}

/**

0 comments on commit c0476f6

Please sign in to comment.