Skip to content

Commit

Permalink
Fix to to too two times
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Aug 22, 2014
1 parent d7d8aa1 commit dec8c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/server.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit dec8c43

Please sign in to comment.