we should be using strcmp instead of strcasecmp in the parse funtion, as case does matter!

This commit is contained in:
fishwaldo 2003-07-22 11:50:51 +00:00
parent 955faff601
commit 2b5e5c0a4b
4 changed files with 20 additions and 6 deletions

View file

@ -1,4 +1,7 @@
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
- Fixed a problem with statserv and the HTML settings
- Fixed a problem with statserv and channel member counts (didn't decrease for kicks)

9
configure vendored
View file

@ -1285,9 +1285,9 @@ cat >>confdefs.h <<\_ACEOF
#define REV 4
_ACEOF
VERSION=2.5.4
VERSION=2.5.4-Pre2
CFLAGS="$CFLAGS -O2"
CFLAGS="$CFLAGS -O2 -g"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@ -3022,9 +3022,14 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_BACKTRACE 1
_ACEOF
LIBS="-g $LIBS"
fi
echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then

View file

@ -23,7 +23,13 @@ AC_CHECK_LIB(dl, dlopen)
ADNS_C_GETFUNC(socket,socket)
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.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT

6
ircd.c
View file

@ -22,7 +22,7 @@
** USA
**
** 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 "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 */
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;
while (fn_list->cmd_name != NULL) {
/* This goes through each Command */
if (!strcasecmp(fn_list->cmd_name, cmd)) {
if (!strcmp(fn_list->cmd_name, cmd)) {
if (fn_list->srvmsg == cmdptr) {
nlog(LOG_DEBUG1, LOG_CORE,
"Running Module %s for Function %s",