Fix to to too two times
authorsapier <Sapier at GMX dot net>
Fri, 22 Aug 2014 19:51:20 +0000 (21:51 +0200)
committersapier <Sapier at GMX dot net>
Fri, 22 Aug 2014 19:51:20 +0000 (21:51 +0200)
src/main.cpp
src/server.cpp

index a44a2e6112d333213bca4d45e14d002731f9d96d..1b91edd2168121f55bf2b6874bc578df27137c05 100644 (file)
@@ -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;
index 93d00f3698a7af0998307f6ea9bd489597a0678a..fd9e1ce7b5a82ae7ceb779d5e08243ec794f09b8 100644 (file)
@@ -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;
                }