1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

don't crash with /set completion_keep_privates 0

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3090 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-31 16:06:47 +00:00 committed by cras
parent 3ddf3ce6b4
commit 4c506b4352

View File

@ -81,6 +81,9 @@ static void last_msg_add(GSList **list, const char *nick, int own, int max)
{
LAST_MSG_REC *rec;
if (max <= 0)
return;
rec = last_msg_find(*list, nick);
if (rec != NULL) {
/* msg already exists, update it */