we should be using strcmp instead of strcasecmp in the parse funtion, as case does matter!
This commit is contained in:
parent
955faff601
commit
2b5e5c0a4b
4 changed files with 20 additions and 6 deletions
|
@ -1,4 +1,7 @@
|
||||||
NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rants)
|
NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rants)
|
||||||
|
* NeoStats * Fish * Version 2.5.4
|
||||||
|
- Fixed a core with using strcasecmp instead of strcmp in the parse function.
|
||||||
|
|
||||||
* NeoStats * Fish * Version 2.5.4 Pre2
|
* NeoStats * Fish * Version 2.5.4 Pre2
|
||||||
- Fixed a problem with statserv and the HTML settings
|
- Fixed a problem with statserv and the HTML settings
|
||||||
- Fixed a problem with statserv and channel member counts (didn't decrease for kicks)
|
- Fixed a problem with statserv and channel member counts (didn't decrease for kicks)
|
||||||
|
|
9
configure
vendored
9
configure
vendored
|
@ -1285,9 +1285,9 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
#define REV 4
|
#define REV 4
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
VERSION=2.5.4
|
VERSION=2.5.4-Pre2
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -O2"
|
CFLAGS="$CFLAGS -O2 -g"
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
@ -3022,9 +3022,14 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
#define HAVE_BACKTRACE 1
|
#define HAVE_BACKTRACE 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
LIBS="-g $LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking for egrep" >&5
|
echo "$as_me:$LINENO: checking for egrep" >&5
|
||||||
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
||||||
if test "${ac_cv_prog_egrep+set}" = set; then
|
if test "${ac_cv_prog_egrep+set}" = set; then
|
||||||
|
|
|
@ -23,7 +23,13 @@ AC_CHECK_LIB(dl, dlopen)
|
||||||
ADNS_C_GETFUNC(socket,socket)
|
ADNS_C_GETFUNC(socket,socket)
|
||||||
ADNS_C_GETFUNC(inet_ntoa,nsl)
|
ADNS_C_GETFUNC(inet_ntoa,nsl)
|
||||||
|
|
||||||
AC_CHECK_FUNC(backtrace, AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available'))
|
AC_CHECK_FUNC(backtrace,
|
||||||
|
[AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available')
|
||||||
|
LIBS="-g $LIBS"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
|
|
6
ircd.c
6
ircd.c
|
@ -22,7 +22,7 @@
|
||||||
** USA
|
** USA
|
||||||
**
|
**
|
||||||
** NeoStats CVS Identification
|
** NeoStats CVS Identification
|
||||||
** $Id: ircd.c,v 1.133 2003/07/15 11:21:45 fishwaldo Exp $
|
** $Id: ircd.c,v 1.134 2003/07/22 11:50:51 fishwaldo Exp $
|
||||||
*/
|
*/
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
|
@ -289,7 +289,7 @@ void parse(char *line)
|
||||||
|
|
||||||
|
|
||||||
/* First, check if its a privmsg, and if so, handle it in the correct Function */
|
/* First, check if its a privmsg, and if so, handle it in the correct Function */
|
||||||
if (!strcasecmp("PRIVMSG", cmd) || (!strcasecmp("!", cmd))) {
|
if (!strcmp("PRIVMSG", cmd) || (!strcmp("!", cmd))) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ void parse(char *line)
|
||||||
fn_list = module_ptr->function_list;
|
fn_list = module_ptr->function_list;
|
||||||
while (fn_list->cmd_name != NULL) {
|
while (fn_list->cmd_name != NULL) {
|
||||||
/* This goes through each Command */
|
/* This goes through each Command */
|
||||||
if (!strcasecmp(fn_list->cmd_name, cmd)) {
|
if (!strcmp(fn_list->cmd_name, cmd)) {
|
||||||
if (fn_list->srvmsg == cmdptr) {
|
if (fn_list->srvmsg == cmdptr) {
|
||||||
nlog(LOG_DEBUG1, LOG_CORE,
|
nlog(LOG_DEBUG1, LOG_CORE,
|
||||||
"Running Module %s for Function %s",
|
"Running Module %s for Function %s",
|
||||||
|
|
Reference in a new issue