[mw-devel] MW3 r954 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Thu Apr 26 14:39:31 BST 2007


Author: psycodom
Date: 2007-04-26 14:39:31 +0100 (Thu, 26 Apr 2007)
New Revision: 954

Modified:
   trunk/src/ipc.c
Log:
Makes ipc_send_to_username use strcasecmp so incorrect capitalisations don't break things that send messages to users.

Modified: trunk/src/ipc.c
===================================================================
--- trunk/src/ipc.c	2007-04-23 07:29:16 UTC (rev 953)
+++ trunk/src/ipc.c	2007-04-26 13:39:31 UTC (rev 954)
@@ -89,7 +89,7 @@
 		if (dest) {
 			lseek(users_fd, who.posn, SEEK_SET);
 			if (read(users_fd, &user, sizeof(user)) <= 0) continue;
-			if (strcmp(user.name, dest)) continue;
+			if (strcasecmp(user.name, dest)) continue;
 		}
 		if (! ipc_send_to_pid(who.pid, msgtype, data)) count++;
 	}





More information about the mw-devel mailing list