[NeoStats-Devel] [Commits] r2543 - in trunk: include src/protocol

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Tue Apr 19 04:57:18 2005
New Revision: 2543

Modified:
   trunk/include/ircd.h
   trunk/src/protocol/bahamut14.c
   trunk/src/protocol/bahamut18.c
   trunk/src/protocol/client.c
   trunk/src/protocol/hybrid7.c
   trunk/src/protocol/ircup10.c
   trunk/src/protocol/plexus.c
   trunk/src/protocol/protocol.txt
   trunk/src/protocol/ultimate2.c
   trunk/src/protocol/ultimate3.c
   trunk/src/protocol/unreal31.c
   trunk/src/protocol/unreal32.c
Log:
update protocol info structure

Modified: trunk/include/ircd.h
==============================================================================
--- trunk/include/ircd.h	(original)
+++ trunk/include/ircd.h	Tue Apr 19 04:57:18 2005
@@ -61,15 +61,30 @@
 } ircd_server;
 
 typedef struct ProtocolInfo {
-	/* Minimum protocols that are required for the selected protocol
-	 * e.g. NOQUIT */
+	/* Minimum protocols that are required * e.g. NOQUIT */
 	const unsigned int minprotocol;
 	/* Optional protocols that are negotiated during connection that the
 	 * protocol module supports but will work when not available e.g. SJOIN */
 	const unsigned int optprotocol;
-	/* Features provided by this protocol module e.g. SVSNICK support. */
+	/* Features provided by this protocol module e.g. USERSMODES support. */
 	const unsigned int features;
+	/* Max host length */
+	const unsigned int maxhost;
+	/* Max password length */
+	const unsigned int maxpass;
+	/* Max nick length */
+	const unsigned int maxnick;
+	/* Max user length */
+	const unsigned int maxuser;
+	/* Max real name length */
+	const unsigned int maxrealname;
+	/* Max channel name length */
+	const unsigned int chanlen;
+	/* Max topic length */
+	const unsigned int topiclen;
+	/* Default operator modes for NeoStats service bots */
 	char *services_umode;
+	/* Default channel mode for NeoStats service bots */
 	char *services_cmode;
 } ProtocolInfo;
 

Modified: trunk/src/protocol/bahamut14.c
==============================================================================
--- trunk/src/protocol/bahamut14.c	(original)
+++ trunk/src/protocol/bahamut14.c	Tue Apr 19 04:57:18 2005
@@ -148,15 +148,6 @@
 static void m_burst( char *origin, char **argv, int argc, int srv );
 static void m_sjoin( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 63 + 1 );
-const int proto_maxnick		=( 30 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 32 + 1 );
-const int proto_topiclen	=( 307 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -165,7 +156,23 @@
 	PROTOCOL_NICKIP,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	63,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
+	/* Default operator modes for NeoStats service bots */
 	"+oS",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/bahamut18.c
==============================================================================
--- trunk/src/protocol/bahamut18.c	(original)
+++ trunk/src/protocol/bahamut18.c	Tue Apr 19 04:57:18 2005
@@ -154,15 +154,6 @@
 static void m_burst( char *origin, char **argv, int argc, int srv );
 static void m_sjoin( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 63 + 1 );
-const int proto_maxnick		=( 30 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 32 + 1 );
-const int proto_topiclen	=( 307 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -171,7 +162,23 @@
 	0,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	63,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
+	/* Default operator modes for NeoStats service bots */
 	"+oS",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/client.c
==============================================================================
--- trunk/src/protocol/client.c	(original)
+++ trunk/src/protocol/client.c	Tue Apr 19 04:57:18 2005
@@ -181,15 +181,6 @@
 static void m_part( char *origin, char **argv, int argc, int srv );
 static void m_emotd( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 30 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 32 + 1 );
-const int proto_topiclen	=( 307 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -198,7 +189,23 @@
 	0,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
+	/* Default operator modes for NeoStats service bots */
 	"+oSq",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/hybrid7.c
==============================================================================
--- trunk/src/protocol/hybrid7.c	(original)
+++ trunk/src/protocol/hybrid7.c	Tue Apr 19 04:57:18 2005
@@ -84,15 +84,6 @@
 static void m_burst( char *origin, char **argv, int argc, int srv );
 static void m_sjoin( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 32 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 200 + 1 );
-const int proto_topiclen	=( 512 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -101,7 +92,23 @@
 	PROTOCOL_UNKLN,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	32,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	20,
+	/* Max topic length */
+	512,
+	/* Default operator modes for NeoStats service bots */
 	"+o",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/ircup10.c
==============================================================================
--- trunk/src/protocol/ircup10.c	(original)
+++ trunk/src/protocol/ircup10.c	Tue Apr 19 04:57:18 2005
@@ -298,15 +298,6 @@
 void send_end_of_burst(void);
 void send_end_of_burst_ack(void);
 
-/* buffer sizes */
-const int proto_maxhost		= (63 + 1);
-const int proto_maxpass		= (32 + 1);
-const int proto_maxnick		= (32 + 1);
-const int proto_maxuser		= (10 + 1);
-const int proto_maxrealname	= (50 + 1);
-const int proto_chanlen		= (200 + 1);
-const int proto_topiclen	= (250 + 1);
-
 ProtocolInfo protocol_info = {
 	/* Protocol options required by this IRCd */
 	PROTOCOL_TOKEN|PROTOCOL_NOQUIT|PROTOCOL_B64SERVER|PROTOCOL_B64NICK|PROTOCOL_NICKIP|PROTOCOL_KICKPART,
@@ -320,8 +311,23 @@
 # endif /* NEFARIOUS_CLOAKHOST */
 #endif /* NEFARIOUS */
 	FEATURE_SVSTIME,
-	"+iok",
+	/* Max host length */
+	63 ,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	32,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	20,
+	/* Max topic length */
+	250,
+	/* Default operator modes for NeoStats service bots */
 	"+o",
+	/* Default channel mode for NeoStats service bots */
 };
 
 /* this is the command list and associated functions to run */

Modified: trunk/src/protocol/plexus.c
==============================================================================
--- trunk/src/protocol/plexus.c	(original)
+++ trunk/src/protocol/plexus.c	Tue Apr 19 04:57:18 2005
@@ -198,15 +198,6 @@
 static void m_burst( char *origin, char **argv, int argc, int srv );
 static void m_sjoin( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 32 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 200 + 1 );
-const int proto_topiclen	=( 512 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -215,7 +206,23 @@
 	PROTOCOL_UNKLN,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	32,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	20,
+	/* Max topic length */
+	512,
+	/* Default operator modes for NeoStats service bots */
 	"+o",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/protocol.txt
==============================================================================
--- trunk/src/protocol/protocol.txt	(original)
+++ trunk/src/protocol/protocol.txt	Tue Apr 19 04:57:18 2005
@@ -81,6 +81,20 @@
 	PROTOCOL_TOKEN,
 	/* Features supported */
 	FEATURE_UMODECLOAK,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
 	/* Default operator modes for NeoStats service bots */
 	"+oSq",
 	/* Default channel mode for NeoStats service bots */

Modified: trunk/src/protocol/ultimate2.c
==============================================================================
--- trunk/src/protocol/ultimate2.c	(original)
+++ trunk/src/protocol/ultimate2.c	Tue Apr 19 04:57:18 2005
@@ -339,15 +339,6 @@
 static void m_snetinfo( char *origin, char **argv, int argc, int srv );
 static void m_vctrl( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 32 + 1 );
-const int proto_maxuser		=( 15 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 50 + 1 );
-const int proto_topiclen	=( 512 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -356,7 +347,23 @@
 	PROTOCOL_TOKEN,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	32,
+	/* Max user length */
+	15,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	50,
+	/* Max topic length */
+	512,
+	/* Default operator modes for NeoStats service bots */
 	"+oS",
+	/* Default channel mode for NeoStats service bots */
 	"+a",
 };
 

Modified: trunk/src/protocol/ultimate3.c
==============================================================================
--- trunk/src/protocol/ultimate3.c	(original)
+++ trunk/src/protocol/ultimate3.c	Tue Apr 19 04:57:18 2005
@@ -191,15 +191,6 @@
 static void m_smode( char *origin, char **argv, int argc, int srv );
 static void m_vctrl( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 32 + 1 );
-const int proto_maxuser		=( 15 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 50 + 1 );
-const int proto_topiclen	=( 512 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -208,7 +199,23 @@
 	PROTOCOL_CLIENT,
 	/* Features supported by this IRCd */
 	0,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	32,
+	/* Max user length */
+	15,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	50,
+	/* Max topic length */
+	512,
+	/* Default operator modes for NeoStats service bots */
 	"+oS",
+	/* Default channel mode for NeoStats service bots */
 	"+a",
 };
 

Modified: trunk/src/protocol/unreal31.c
==============================================================================
--- trunk/src/protocol/unreal31.c	(original)
+++ trunk/src/protocol/unreal31.c	Tue Apr 19 04:57:18 2005
@@ -332,15 +332,6 @@
 
 #define NICKV2	
 
-/* buffer sizes */
-const int proto_maxhost		=( 128 + 1 );
-const int proto_maxpass		=( 32 + 1 );
-const int proto_maxnick		=( 30 + 1 );
-const int proto_maxuser		=( 10 + 1 );
-const int proto_maxrealname	=( 50 + 1 );
-const int proto_chanlen		=( 32 + 1 );
-const int proto_topiclen	=( 307 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -349,7 +340,23 @@
 	PROTOCOL_TOKEN,
 	/* Features supported by this IRCd */
 	FEATURE_UMODECLOAK,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
+	/* Default operator modes for NeoStats service bots */
 	"+oSq",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
 

Modified: trunk/src/protocol/unreal32.c
==============================================================================
--- trunk/src/protocol/unreal32.c	(original)
+++ trunk/src/protocol/unreal32.c	Tue Apr 19 04:57:18 2005
@@ -336,15 +336,6 @@
 static void m_swhois( char *origin, char **argv, int argc, int srv );
 static void m_tkl( char *origin, char **argv, int argc, int srv );
 
-/* buffer sizes */
-const int proto_maxhost		= ( 128 + 1 );
-const int proto_maxpass		= ( 32 + 1 );
-const int proto_maxnick		= ( 30 + 1 );
-const int proto_maxuser		= ( 10 + 1 );
-const int proto_maxrealname	= ( 50 + 1 );
-const int proto_chanlen		= ( 32 + 1 );
-const int proto_topiclen	= ( 307 + 1 );
-
 ProtocolInfo protocol_info = 
 {
 	/* Protocol options required by this IRCd */
@@ -353,7 +344,23 @@
 	PROTOCOL_TOKEN | PROTOCOL_NICKIP | PROTOCOL_NICKv2 | PROTOCOL_SJ3,
 	/* Features supported by this IRCd */
 	FEATURE_UMODECLOAK,
+	/* Max host length */
+	128,
+	/* Max password length */
+	32,
+	/* Max nick length */
+	30,
+	/* Max user length */
+	10,
+	/* Max real name length */
+	50,
+	/* Max channel name length */
+	32,
+	/* Max topic length */
+	307,
+	/* Default operator modes for NeoStats service bots */
 	"+OwoSq",
+	/* Default channel mode for NeoStats service bots */
 	"+o",
 };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.