mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-14 17:45:41 +00:00
- Neue Funktion Channel_InitPredefined().
This commit is contained in:
parent
5cac54044b
commit
04162c3944
@ -9,7 +9,7 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: channel.c,v 1.26 2002/06/01 15:55:17 alex Exp $
|
||||
* $Id: channel.c,v 1.27 2002/06/02 17:13:07 alex Exp $
|
||||
*
|
||||
* channel.c: Management der Channels
|
||||
*/
|
||||
@ -63,14 +63,20 @@ LOCAL BOOLEAN Delete_Channel PARAMS(( CHANNEL *Chan ));
|
||||
GLOBAL VOID
|
||||
Channel_Init( VOID )
|
||||
{
|
||||
My_Channels = NULL;
|
||||
My_Cl2Chan = NULL;
|
||||
} /* Channel_Init */
|
||||
|
||||
|
||||
GLOBAL VOID
|
||||
Channel_InitPredefined( VOID )
|
||||
{
|
||||
/* Vordefinierte persistente Channels erzeugen */
|
||||
|
||||
CHANNEL *chan;
|
||||
CHAR *c;
|
||||
INT i;
|
||||
|
||||
My_Channels = NULL;
|
||||
My_Cl2Chan = NULL;
|
||||
|
||||
/* Vordefinierte persistente Channels erzeugen */
|
||||
for( i = 0; i < Conf_Channel_Count; i++ )
|
||||
{
|
||||
/* Ist ein Name konfiguriert? */
|
||||
@ -98,7 +104,7 @@ Channel_Init( VOID )
|
||||
}
|
||||
else Log( LOG_ERR, "Can't create pre-defined channel \"%s\"!", Conf_Channel[i].name );
|
||||
}
|
||||
} /* Channel_Init */
|
||||
} /* Channel_InitPredefined */
|
||||
|
||||
|
||||
GLOBAL VOID
|
||||
|
@ -9,7 +9,7 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: channel.h,v 1.19 2002/06/01 14:36:05 alex Exp $
|
||||
* $Id: channel.h,v 1.20 2002/06/02 17:13:07 alex Exp $
|
||||
*
|
||||
* channel.h: Management der Channels (Header)
|
||||
*/
|
||||
@ -49,6 +49,7 @@ typedef POINTER CL2CHAN;
|
||||
|
||||
|
||||
GLOBAL VOID Channel_Init PARAMS((VOID ));
|
||||
GLOBAL VOID Channel_InitPredefined PARAMS(( VOID ));
|
||||
GLOBAL VOID Channel_Exit PARAMS((VOID ));
|
||||
|
||||
GLOBAL BOOLEAN Channel_Join PARAMS((CLIENT *Client, CHAR *Name ));
|
||||
|
Loading…
Reference in New Issue
Block a user