mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -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:
parent
3ddf3ce6b4
commit
4c506b4352
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user