summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-input.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-05 05:43:06 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-06 12:48:12 +0200
commita6492733fd263c064cb33e0b92f08537140eaed7 (patch)
treef80f85ac1854e763edd30d6654ca33c9b5d7a966 /crawl-ref/source/ng-input.cc
parent716d182b9b57daa27e17a0830746725a9d6fda1f (diff)
downloadcrawl-ref-a6492733fd263c064cb33e0b92f08537140eaed7.tar.gz
crawl-ref-a6492733fd263c064cb33e0b92f08537140eaed7.zip
Replace an outdated comment.
Diffstat (limited to 'crawl-ref/source/ng-input.cc')
-rw-r--r--crawl-ref/source/ng-input.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/ng-input.cc b/crawl-ref/source/ng-input.cc
index 6935a08124..16be2b4e7e 100644
--- a/crawl-ref/source/ng-input.cc
+++ b/crawl-ref/source/ng-input.cc
@@ -154,11 +154,8 @@ bool validate_player_name(const string &name, bool verbose)
ucs_t c;
for (const char *str = name.c_str(); int l = utf8towc(&c, str); str += l)
{
- // Note that this includes systems which may be using the
- // packaging system. The packaging system is very simple
- // and doesn't take the time to escape every character that
- // might be a problem for some random shell or OS... so we
- // play it very conservative here. -- bwr
+ // The technical reasons are gone, but enforcing some sanity doesn't
+ // hurt.
if (!iswalnum(c) && c != '-' && c != '.' && c != '_' && c != ' ')
{
if (verbose)