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

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Sat Apr 16 05:01:26 2005
New Revision: 2515

Modified:
   trunk/ChangeLog
   trunk/include/ircd.h
   trunk/src/ircd.c
   trunk/src/protocol/ultimate2.c
   trunk/src/protocol/unreal31.c
   trunk/src/protocol/unreal32.c
Log:
Add support for SVSJOIN and SVSPART

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Apr 16 05:01:26 2005
@@ -4,6 +4,7 @@
 Fish (F), Mark (M), DeadNotBuried (D)
 ===============================================================================
 * NeoStats * Version 3.0.a3-dev
+ - Add support for SVSJOIN and SVSPART. (M)
  - LEVEL command now resets user level so that users can cause NeoStats to
    recheck their access rights after any settings changes. (M).
  - Prevent ability to disable debug mode if DEBUG enabled to avoid all the 

Modified: trunk/include/ircd.h
==============================================================================
--- trunk/include/ircd.h	(original)
+++ trunk/include/ircd.h	Sat Apr 16 05:01:26 2005
@@ -117,6 +117,11 @@
 EXPORTFUNC void _m_kill( char *origin, char **argv, int argc, int srv );
 EXPORTFUNC void _m_squit( char *origin, char **argv, int argc, int srv );
 EXPORTFUNC void _m_mode( char *origin, char **argv, int argc, int srv );
+EXPORTFUNC void _m_setname (char *origin, char **argv, int argc, int srv);
+EXPORTFUNC void _m_sethost (char *origin, char **argv, int argc, int srv);
+EXPORTFUNC void _m_setident (char *origin, char **argv, int argc, int srv);
+EXPORTFUNC void _m_svsjoin( char *origin, char **argv, int argc, int srv );
+EXPORTFUNC void _m_svspart( char *origin, char **argv, int argc, int srv );
 EXPORTFUNC void _m_globops( char *origin, char **argv, int argc, int srv );
 EXPORTFUNC void _m_wallops( char *origin, char **argv, int argc, int srv );
 EXPORTFUNC void _m_chatops( char *origin, char **argv, int argc, int srv );

Modified: trunk/src/ircd.c
==============================================================================
--- trunk/src/ircd.c	(original)
+++ trunk/src/ircd.c	Sat Apr 16 05:01:26 2005
@@ -793,6 +793,99 @@
 	}
 }
 
+/** @brief _m_setname
+ *
+ *  process SETNAME command
+ *	argv[0] = name
+ *
+ *  @param origin source of message (user/server)
+ *  @param av list of message parameters
+ *  @param ac parameter count
+ *  @param cmdptr command flag
+ *
+ *  @return none
+ */
+
+void _m_setname( char *origin, char **argv, int argc, int srv )
+{
+	do_setname( origin, argv[0] );
+}
+
+/** @brief _m_sethost
+ *
+ *  process SETHOST command
+ *	argv[0] = host
+ *
+ *  @param origin source of message (user/server)
+ *  @param av list of message parameters
+ *  @param ac parameter count
+ *  @param cmdptr command flag
+ *
+ *  @return none
+ */
+
+void _m_sethost( char *origin, char **argv, int argc, int srv )
+{
+	do_sethost( origin, argv[0] );
+}
+
+/** @brief _m_setident
+ *
+ *  process SETIDENT command
+ *	argv[0] = ident
+ *
+ *  @param origin source of message (user/server)
+ *  @param av list of message parameters
+ *  @param ac parameter count
+ *  @param cmdptr command flag
+ *
+ *  @return none
+ */
+
+void _m_setident( char *origin, char **argv, int argc, int srv )
+{
+	do_setident( origin, argv[0] );
+}
+
+/** @brief _m_svsjoin
+ *
+ *  process SVSJOIN command
+ *	argv[0] = nick
+ *	argv[1] = channel
+ *	argv[2] = key
+ *
+ *  @param origin source of message (user/server)
+ *  @param av list of message parameters
+ *  @param ac parameter count
+ *  @param cmdptr command flag
+ *
+ *  @return none
+ */
+
+void _m_svsjoin( char *origin, char **argv, int argc, int srv )
+{
+	do_join( argv[0], argv[1], argv[2] );
+}
+
+/** @brief _m_svspart
+ *
+ *  process SVSPART command
+ *	argv[0] = nick
+ *	argv[1] = channel
+ *	argv[2] = reason
+ *
+ *  @param origin source of message (user/server)
+ *  @param av list of message parameters
+ *  @param ac parameter count
+ *  @param cmdptr command flag
+ *
+ *  @return none
+ */
+
+void _m_svspart( char *origin, char **argv, int argc, int srv )
+{
+	do_part( argv[0], argv[1], argv[2] );
+}
 
 /** @brief _m_notice
  *

Modified: trunk/src/protocol/ultimate2.c
==============================================================================
--- trunk/src/protocol/ultimate2.c	(original)
+++ trunk/src/protocol/ultimate2.c	Sat Apr 16 05:01:26 2005
@@ -84,6 +84,8 @@
 	{MSG_VCTRL,     0,     m_vctrl,     0},
 	{MSG_PASS,      0,      _m_pass,      0},
 	{MSG_SVSNICK,   0,   m_svsnick,   0},
+	{MSG_SVSJOIN,   0,   _m_svsjoin,   0},
+	{MSG_SVSPART,   0,   _m_svspart,   0},
 	{MSG_PROTOCTL,  0,  _m_protoctl,  0},
 	{MSG_GLOBOPS,	0, _m_globops, 0},
 	{MSG_WALLOPS,	0, _m_wallops, 0},

Modified: trunk/src/protocol/unreal31.c
==============================================================================
--- trunk/src/protocol/unreal31.c	(original)
+++ trunk/src/protocol/unreal31.c	Sat Apr 16 05:01:26 2005
@@ -79,6 +79,8 @@
 	{MSG_UMODE2, TOK_UMODE2, m_umode2, 0},
 	{MSG_SVSMODE, TOK_SVSMODE, m_svsmode, 0},
 	{MSG_SVS2MODE, TOK_SVS2MODE, m_svsmode, 0},
+	{MSG_SVSJOIN, TOK_SVSJOIN, _m_svsjoin, 0},
+	{MSG_SVSPART, TOK_SVSPART, _m_svspart, 0},
 	{MSG_KILL, TOK_KILL, _m_kill, 0},
 	{MSG_PONG, TOK_PONG, _m_pong, 0},
 	{MSG_AWAY, TOK_AWAY, _m_away, 0},

Modified: trunk/src/protocol/unreal32.c
==============================================================================
--- trunk/src/protocol/unreal32.c	(original)
+++ trunk/src/protocol/unreal32.c	Sat Apr 16 05:01:26 2005
@@ -81,6 +81,8 @@
 	{MSG_UMODE2, TOK_UMODE2, m_umode2, 0},
 	{MSG_SVSMODE, TOK_SVSMODE, m_svsmode, 0},
 	{MSG_SVS2MODE, TOK_SVS2MODE, m_svsmode, 0},
+	{MSG_SVSJOIN, TOK_SVSJOIN, _m_svsjoin, 0},
+	{MSG_SVSPART, TOK_SVSPART, _m_svspart, 0},
 	{MSG_KILL, TOK_KILL, _m_kill, 0},
 	{MSG_PONG, TOK_PONG, _m_pong, 0},
 	{MSG_AWAY, TOK_AWAY, _m_away, 0},
@@ -100,9 +102,9 @@
 	{MSG_SMO, TOK_SMO, m_smo, 0},
 	{MSG_EOS, TOK_EOS, m_eos, 0},
 	{MSG_TKL, TOK_TKL, m_tkl, 0},
-	{MSG_SETNAME, TOK_SETNAME, m_setname, 0},
-	{MSG_SETHOST, TOK_SETHOST, m_sethost, 0},
-	{MSG_SETIDENT, TOK_SETIDENT, m_setident, 0},
+	{MSG_SETNAME, TOK_SETNAME, _m_setname, 0},
+	{MSG_SETHOST, TOK_SETHOST, _m_sethost, 0},
+	{MSG_SETIDENT, TOK_SETIDENT, _m_setident, 0},
 	{MSG_GLOBOPS, TOK_GLOBOPS, _m_globops, 0},
 	{MSG_WALLOPS, TOK_WALLOPS, _m_wallops, 0},
 	{MSG_CHATOPS, TOK_CHATOPS, _m_chatops, 0},
@@ -783,17 +785,3 @@
 	do_tkl(argv[0], argv[1], argv[2], argv[3], argv[4], argv[5], argv[6], argv[7]);
 }
 
-static void m_setname (char *origin, char **argv, int argc, int srv)
-{
-	do_setname(origin, argv[0]);
-}
-
-static void m_sethost (char *origin, char **argv, int argc, int srv)
-{
-	do_sethost(origin, argv[0]);
-}
-
-static void m_setident (char *origin, char **argv, int argc, int srv)
-{
-	do_setident(origin, argv[0]);
-}
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.