diff options
-rw-r--r-- | src/fe-common/core/fe-queries.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index c7e83bfe..40df4ec9 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -327,7 +327,8 @@ static void sig_message_private(SERVER_REC *server, const char *msg, query = privmsg_get_query(server, nick, FALSE, MSGLEVEL_MSGS); /* reset the query's last_unread_msg timestamp */ - query->last_unread_msg = time(NULL); + if (query != NULL) + query->last_unread_msg = time(NULL); } static void read_settings(void) |