1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 01:40:27 +00:00

Don't assert() when a pre-defined channel has no topic.

This commit is contained in:
Alexander Barton 2006-07-24 22:54:09 +00:00
parent 63626449f8
commit 47026e14ce

View File

@ -17,7 +17,7 @@
#include "portab.h"
static char UNUSED id[] = "$Id: channel.c,v 1.55 2006/04/23 10:33:37 fw Exp $";
static char UNUSED id[] = "$Id: channel.c,v 1.56 2006/07/24 22:54:09 alex Exp $";
#include "imp.h"
#include <assert.h>
@ -106,6 +106,7 @@ Channel_InitPredefined( void )
if (chan) {
Channel_ModeAdd(chan, 'P');
if (array_start(&Conf_Channel[i].topic) != NULL)
Channel_SetTopic(chan, NULL,
array_start(&Conf_Channel[i].topic));
array_free(&Conf_Channel[i].topic);