[Freeciv-Dev] (PR#10114) count usernames with different cases as the sam
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#10114) count usernames with different cases as the same user |
From: |
"Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx> |
Date: |
Tue, 14 Sep 2004 16:39:51 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10114 >
JOE and joe are the same username.
-mike
? remove_all.diff
Index: server/connecthand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/connecthand.c,v
retrieving revision 1.27
diff -u -r1.27 connecthand.c
--- server/connecthand.c 14 Sep 2004 23:31:26 -0000 1.27
+++ server/connecthand.c 14 Sep 2004 23:38:44 -0000
@@ -264,7 +264,7 @@
/* don't allow duplicate logins */
conn_list_iterate(game.all_connections, aconn) {
- if (strcmp(req->username, aconn->username) == 0) {
+ if (strcasecmp(req->username, aconn->username) == 0) {
my_snprintf(msg, sizeof(msg), _("'%s' already connected."),
req->username);
reject_new_connection(msg, pconn);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#10114) count usernames with different cases as the same user,
Mike Kaufman <=
|
|