Skip to content

Commit dec8c43

Browse files
sapiersapier
sapier
authored and
sapier
committedAug 22, 2014
Fix to to too two times
1 parent d7d8aa1 commit dec8c43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ int main(int argc, char *argv[])
18451845
}
18461846

18471847
if (current_playername.length() > PLAYERNAME_SIZE-1) {
1848-
error_message = wgettext("Player name to long.");
1848+
error_message = wgettext("Player name too long.");
18491849
playername = current_playername.substr(0,PLAYERNAME_SIZE-1);
18501850
g_settings->set("name", playername);
18511851
continue;

‎src/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
14591459
if (playername_length == PLAYERNAME_SIZE) {
14601460
actionstream<<"Server: Player with name exceeding max length "
14611461
<<"tried to connect from "<<addr_s<<std::endl;
1462-
DenyAccess(peer_id, L"Name to long");
1462+
DenyAccess(peer_id, L"Name too long");
14631463
return;
14641464
}
14651465

0 commit comments

Comments
 (0)
Please sign in to comment.