[NeoStats-Devel] [Commits] r2495 - in trunk: . include src

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Sun Apr 10 03:02:46 2005
New Revision: 2495

Modified:
   trunk/ChangeLog
   trunk/include/numerics.h
   trunk/src/confuse.c
   trunk/src/numerics.c
Log:
Add support for IRCd protocol modules to call core numeric reply handlers

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sun Apr 10 03:02:46 2005
@@ -4,6 +4,8 @@
 Fish (F), Mark (M), DeadNotBuried (D)
 ===============================================================================
 * NeoStats * Version 3.0.a3-dev
+ - Add support for IRCd protocol modules to call core numeric reply 
+   handlers. (M)
  - Add support for IRCd protocol modules to control server uptime requests. (M)
  - Merge ADNS lib into core. (M)
  - add random channel member funtion (D)

Modified: trunk/include/numerics.h
==============================================================================
--- trunk/include/numerics.h	(original)
+++ trunk/include/numerics.h	Sun Apr 10 03:02:46 2005
@@ -26,4 +26,7 @@
 
 extern ircd_cmd numeric_cmd_list[];
 
+void m_numeric242( char *origin, char **argv, int argc, int srv );
+void m_numeric351( char *origin, char **argv, int argc, int srv );
+
 #endif /* _NUMERICS_H_ */

Modified: trunk/src/confuse.c
==============================================================================
--- trunk/src/confuse.c	(original)
+++ trunk/src/confuse.c	Sun Apr 10 03:02:46 2005
@@ -82,21 +82,6 @@
 # endif
 #endif
 
-#ifndef HAVE_STRNDUP
-static char *strndup(const char *s, size_t n)
-{
-    char *r;
-
-    if(s == 0)
-        return 0;
-
-    r = (char *)malloc(n + 1);
-    strncpy(r, s, n);
-    r[n] = 0;
-    return r;
-}
-#endif
-
 cfg_opt_t *cfg_getopt(cfg_t *cfg, const char *name)
 {
     unsigned int i;

Modified: trunk/src/numerics.c
==============================================================================
--- trunk/src/numerics.c	(original)
+++ trunk/src/numerics.c	Sun Apr 10 03:02:46 2005
@@ -25,9 +25,6 @@
 #include "ircd.h"
 #include "numerics.h"
 
-static void m_numeric242( char *origin, char **argv, int argc, int srv );
-static void m_numeric351( char *origin, char **argv, int argc, int srv );
-
 ircd_cmd numeric_cmd_list[] = {
 	/*Message	Token	handler	usage */
 	{"351", "351", m_numeric351, 0},
@@ -52,7 +49,7 @@
  *  @return none
  */
 
-static void m_numeric351( char *origin, char **argv, int argc, int srv )
+void m_numeric351( char *origin, char **argv, int argc, int srv )
 {
 	Client *s;
 
@@ -75,7 +72,7 @@
  *  @return none
  */
 
-static void m_numeric242( char *origin, char **argv, int argc, int srv )
+void m_numeric242( char *origin, char **argv, int argc, int srv )
 {
 	Client *s;
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.