[NeoStats-Devel] [Commits] r14 - trunk

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Fri May  6 06:37:24 2005
New Revision: 14

Modified:
   trunk/misc.c
   trunk/play.c
Log:
fix strchr logic test and missing return values in event handlers

Modified: trunk/misc.c
==============================================================================
--- trunk/misc.c	(original)
+++ trunk/misc.c	Fri May  6 06:37:24 2005
@@ -210,12 +210,14 @@
 	if (GetUserModValue(cmdparams->source) > 0) {
 		removenickfromgame(cmdparams->channel, cmdparams->source);
 	}
+	return NS_SUCCESS;
 }
 
 int CheckPlayerKick (CmdParams *cmdparams) {
 	if (GetUserModValue(cmdparams->target) > 0) {
 		removenickfromgame(cmdparams->channel, cmdparams->target);
 	}
+	return NS_SUCCESS;
 }
 
 int CheckPlayerQuit (CmdParams *cmdparams) {
@@ -234,6 +236,7 @@
 			ln = list_next(gamelist, ln);
 		}
 	}
+	return NS_SUCCESS;
 }
 
 int CheckPlayerKill (CmdParams *cmdparams) {
@@ -252,4 +255,5 @@
 			ln = list_next(gamelist, ln);
 		}
 	}
+	return NS_SUCCESS;
 }

Modified: trunk/play.c
==============================================================================
--- trunk/play.c	(original)
+++ trunk/play.c	Fri May  6 06:37:24 2005
@@ -618,7 +618,7 @@
 	buf= joinbuf(cmdparams->av, cmdparams->ac, 0);
 	strip_mirc_codes(buf);
 	for (i = 0; i < 5; i++) {
-		if ((!strchr(buf, (i + 49)) == NULL && rolltype) || (strchr(buf, (i + 49)) == NULL && !rolltype)) {
+		if ((strchr(buf, (i + 49)) != NULL && rolltype) || (strchr(buf, (i + 49)) == NULL && !rolltype)) {
 			gd->dice[i]= rand() % 6;
 			dc = 4;
 		} else {
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.