diff options
author | sapier <Sapier at GMX dot net> | 2014-08-22 21:51:20 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-08-22 21:51:20 +0200 |
commit | dec8c43de3afdbd2e257a031f5e053e7f1e74aa0 (patch) | |
tree | 4752fbd9b77bf2cc980e1bfd34acd79ed5335ccf /src | |
parent | d7d8aa1039e898dd37fcd8fa01d7f13c5452b43d (diff) | |
download | minetest-dec8c43de3afdbd2e257a031f5e053e7f1e74aa0.tar.gz minetest-dec8c43de3afdbd2e257a031f5e053e7f1e74aa0.tar.bz2 minetest-dec8c43de3afdbd2e257a031f5e053e7f1e74aa0.zip |
Fix to to too two times
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/server.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index a44a2e611..1b91edd21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1845,7 +1845,7 @@ int main(int argc, char *argv[]) } if (current_playername.length() > PLAYERNAME_SIZE-1) { - error_message = wgettext("Player name to long."); + error_message = wgettext("Player name too long."); playername = current_playername.substr(0,PLAYERNAME_SIZE-1); g_settings->set("name", playername); continue; diff --git a/src/server.cpp b/src/server.cpp index 93d00f369..fd9e1ce7b 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1459,7 +1459,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) if (playername_length == PLAYERNAME_SIZE) { actionstream<<"Server: Player with name exceeding max length " <<"tried to connect from "<<addr_s<<std::endl; - DenyAccess(peer_id, L"Name to long"); + DenyAccess(peer_id, L"Name too long"); return; } |