]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Make NoZeroConf option work with Howl
authorAlexander Barton <alex@barton.de>
Sun, 9 Jan 2011 13:31:18 +0000 (14:31 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 9 Jan 2011 13:31:18 +0000 (14:31 +0100)
src/ngircd/rendezvous.c

index 056cb1e5caf9e3e454b3d89ecd002e97a6529e72..67278935d7669b0345765017e52d1e984e9821f0 100644 (file)
@@ -107,6 +107,12 @@ GLOBAL void Rendezvous_Init( void )
 
        int i;
 
 
        int i;
 
+       for (i = 0; i < MAX_RENDEZVOUS; i++)
+               My_Rendezvous[i].Desc[0] = '\0';
+
+       if (!Conf_ZeroConf)
+               return;
+
 #ifdef HOWL
        if( sw_discovery_init( &My_Discovery_Session ) != SW_OKAY )
        {
 #ifdef HOWL
        if( sw_discovery_init( &My_Discovery_Session ) != SW_OKAY )
        {
@@ -122,8 +128,6 @@ GLOBAL void Rendezvous_Init( void )
                exit( 1 );
        }
 #endif
                exit( 1 );
        }
 #endif
-
-       for( i = 0; i < MAX_RENDEZVOUS; i++ ) My_Rendezvous[i].Desc[0] = '\0';
 } /* Rendezvous_Init */
 
 
 } /* Rendezvous_Init */
 
 
@@ -238,6 +242,9 @@ GLOBAL void Rendezvous_Handler( void )
        /* Handle all Rendezvous stuff; this function must be called
         * periodically from the run loop of the main program */
 
        /* Handle all Rendezvous stuff; this function must be called
         * periodically from the run loop of the main program */
 
+       if (!Conf_ZeroConf)
+               return;
+
 #ifdef APPLE
        int i;
        char buffer[MAX_MACH_MSG_SIZE];
 #ifdef APPLE
        int i;
        char buffer[MAX_MACH_MSG_SIZE];