summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-03-03 20:59:35 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:57:25 +0200
commitcbba544fdca2c30dcd63c46ef6a28fb3c256afa8 (patch)
tree7fdbb9ec69add210fb4be31eb6d737bc3f7cb71c
parent4af6ba94c8310fd058d23e781d04c9b6056bda53 (diff)
Refactor: Remove CAPITALIZE_USER_NAME compile-time flag
-rw-r--r--src/config.h8
-rw-r--r--src/util.c5
2 files changed, 0 insertions, 13 deletions
diff --git a/src/config.h b/src/config.h
index af99b03b..c7d36334 100644
--- a/src/config.h
+++ b/src/config.h
@@ -258,14 +258,6 @@
/*
- * OPTION: Capitalize the "user_name" (for "default" player name)
- * This option is only relevant on SET_UID machines.
- */
-#define CAPITALIZE_USER_NAME
-
-
-
-/*
* OPTION: Person to bother if something goes wrong.
*/
#define MAINTAINER "darkgod@t-o-m-e.net"
diff --git a/src/util.c b/src/util.c
index 546d11d8..e7e1af2e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -122,11 +122,6 @@ void user_name(char *buf, int id)
(void)strcpy(buf, pw->pw_name);
buf[16] = '\0';
-#ifdef CAPITALIZE_USER_NAME
- /* Hack -- capitalize the user name */
- if (islower(buf[0])) buf[0] = toupper(buf[0]);
-#endif /* CAPITALIZE_USER_NAME */
-
return;
}
#endif /* SET_UID */