diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-01 00:34:14 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-01 00:34:14 +0000 |
commit | c0e3f556e44dd1c1a1c087ca14c5a1057ee9216b (patch) | |
tree | 3a0fb27cb16367841ae508e5ca4fc548822ad197 | |
parent | 68994bd738b616f5c7d279ec775fd5cc959ff92f (diff) | |
download | irssi-c0e3f556e44dd1c1a1c087ca14c5a1057ee9216b.zip |
Fixed crash.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@404 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/irc/irc-window-activity.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/irc-window-activity.c b/src/fe-common/irc/irc-window-activity.c index 6fd433a9..16a24256 100644 --- a/src/fe-common/irc/irc-window-activity.c +++ b/src/fe-common/irc/irc-window-activity.c @@ -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; |