mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-13 03:13:11 -04:00
and more performance tweaks
This commit is contained in:
@@ -1299,7 +1299,7 @@ void ChatServer::destroyRoom(const std::string & roomName)
|
||||
if (pos != roomName.npos)
|
||||
{
|
||||
std::string tmpRoomName = roomName.substr(0, pos);
|
||||
char lastChar = tmpRoomName[strlen(tmpRoomName.c_str()) - 1];
|
||||
char lastChar = tmpRoomName[tmpRoomName.length() - 1];
|
||||
if (lastChar >= '0' && lastChar <= '9')
|
||||
{
|
||||
ChatServer::destroyRoom(tmpRoomName);
|
||||
|
||||
Reference in New Issue
Block a user