date change messages are chat_day_change color, multiple messages generated for diff of 1-5 days

This commit is contained in:
Patrick Melanson 2015-11-20 17:52:39 -05:00
commit 0a1726e359
2 changed files with 21 additions and 5 deletions

View file

@ -290,7 +290,7 @@
var ret = {};
var optionCode = parseInt(m[1]);
if (optionCode > 43) {
if (optionCode >= WeeChatProtocol._colorsOptionsNames.length) {
// should never happen
return {
fgColor: null,