[NeoStats-Devel] [Commits] r2716 - in trunk: modules/hostserv src

[email protected] Sat, 13 Aug 2005 22:11:49 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Fish
Date: Sat Aug 13 20:11:41 2005
New Revision: 2716

Modified:
   trunk/modules/hostserv/hostserv.c
   trunk/src/modes.c
Log:
temporary fix for UmodeMaskToChar

Modified: trunk/modules/hostserv/hostserv.c
==============================================================================
--- trunk/modules/hostserv/hostserv.c	(original)
+++ trunk/modules/hostserv/hostserv.c	Sat Aug 13 20:11:41 2005
@@ -372,11 +372,13 @@
 	char vhost[MAXHOST];
 
 	SET_SEGV_LOCATION();
+printf("i'm here \n");
 	if( IsOper( cmdparams->source ) && hs_cfg.operhosts == 0 ) 
 		return NS_SUCCESS;
 	/* first, find if its a regnick mode */
 	modes = cmdparams->param;
 	while( *modes ) {
+printf("%c %c\n", *modes, UmodeChRegNick);
 		switch( *modes ) {
 		case '+':
 			add = 1;

Modified: trunk/src/modes.c
==============================================================================
--- trunk/src/modes.c	(original)
+++ trunk/src/modes.c	Sat Aug 13 20:11:41 2005
@@ -183,10 +183,13 @@
 		dlog(DEBUG4, "Build user smode table...");
 		ircd_supported_smodes = BuildModeTable( ircd_smodes, user_smodes, 0 );
 	}
+#if 0
+/* XXX Currently broken */
 	/* Check for registered nick support */
 	if(ircd_supported_umodes & UMODE_REGNICK) {
 		UmodeChRegNick = UmodeMaskToChar(UMODE_REGNICK);
 	}
+#endif
 	/* preset our umode mask so we do not have to calculate in real time */
 	me.servicesumodemask = UmodeStringToMask(me.servicesumode);
 	return NS_SUCCESS;