1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Fixed crash.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@404 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-01 00:34:14 +00:00 committed by cras
parent 68994bd738
commit c0e3f556e4

View File

@ -54,9 +54,9 @@ static void event_privmsg(const char *data, IRC_SERVER_REC *server, const char *
that it didn't get ignored */
if (window != active_win && !ignore_check(server, nick, addr, target, msg, level)) {
/* hilight */
item->last_color = irc_hilight_last_color();
level = item->last_color > 0 || !ischannel(*target) ||
irc_nick_match(server->nick, msg) ?
if (item != NULL) item->last_color = irc_hilight_last_color();
level = (item != NULL && item->last_color > 0) ||
!ischannel(*target) || irc_nick_match(server->nick, msg) ?
NEWDATA_HILIGHT : NEWDATA_MSG;
if (item != NULL && item->new_data < level) {
item->new_data = level;