[NeoStats-Devel] [Commits] r369 - branches/3.0

[email protected] Tue, 23 Aug 2005 06:40:15 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Tue Aug 23 04:40:12 2005
New Revision: 369

Modified:
   branches/3.0/SecureServ.c
Log:
API fixes

Modified: branches/3.0/SecureServ.c
==============================================================================
--- branches/3.0/SecureServ.c	(original)
+++ branches/3.0/SecureServ.c	Tue Aug 23 04:40:12 2005
@@ -430,7 +430,7 @@
 
 int ScanChannel (Channel *c, void *v)
 {
-	GetChannelMembers (c, ScanMember, NULL);
+	ProcessChannelMembers( c, ScanMember, NULL );
 	return NS_FALSE;
 }
 
@@ -452,7 +452,7 @@
 	InitHelpers();
 	if( SecureServ.verbose )
 		irc_chanalert( ss_bot, "%d definitions loaded", SecureServ.defcount );
-	srand( hash_count( GetChannelHash() ) );
+	srand( NSGetChannelCount() );
 	/* kick of the autojoin timer */
 	if( SecureServ.DoOnJoin )
 		AddTimer( TIMER_TYPE_INTERVAL, JoinNewChan, "JoinNewChan", SecureServ.stayinchantime, NULL );
@@ -460,13 +460,13 @@
 		AddTimer( TIMER_TYPE_INTERVAL, MonBotCycle, "MonBotCycle", SecureServ.monchancycletime, NULL );
 
 	if ((SecureServ.updateuname[0] != 0) && (SecureServ.updatepw[0] != 0)) {
-         	AutoUpdate( NULL );
+		AutoUpdate( NULL );
 		AddTimer( TIMER_TYPE_INTERVAL, AutoUpdate, "AutoUpdate", SecureServ.autoupgradetime, NULL );
 	} else if (SecureServ.autoupgrade == 1) {
 		irc_chanalert (ss_bot, "No valid Username/Password configured for SecureServ Dat File Update");
 	}
 	LoadMonChans();
-	GetChannelList( ScanChannel, NULL );
+	ProcessChannelList( ScanChannel, NULL );
 	return NS_SUCCESS;
 }