mirror of
https://github.com/SWG-Source/src.git
synced 2026-10-05 22:12:52 -04:00
and fix a ton more minor performance issues
This commit is contained in:
@@ -167,9 +167,9 @@ void GameServerConnection::onReceive(const Archive::ByteStream & message)
|
||||
//printf("GameServerConnection -- ChatInviteAvatarToRoom\n");
|
||||
ChatInviteAvatarToRoom chat(ri);
|
||||
ChatAvatarId characterName = chat.getAvatarId();
|
||||
if(characterName.gameCode == "")
|
||||
if(characterName.gameCode.empty())
|
||||
characterName.gameCode = "SWG";
|
||||
if(characterName.cluster == "")
|
||||
if(characterName.cluster.empty())
|
||||
characterName.cluster = ConfigChatServer::getClusterName();
|
||||
ChatServer::invite(NetworkId::cms_invalid, characterName, chat.getRoomName());
|
||||
}
|
||||
@@ -186,9 +186,9 @@ void GameServerConnection::onReceive(const Archive::ByteStream & message)
|
||||
//printf("GameServerConnection -- ChatUninviteAvatarFromRoom\n");
|
||||
ChatUninviteFromRoom chat(ri);
|
||||
ChatAvatarId characterName = chat.getAvatar();
|
||||
if(characterName.gameCode == "")
|
||||
if(characterName.gameCode.empty())
|
||||
characterName.gameCode = "SWG";
|
||||
if(characterName.cluster == "")
|
||||
if(characterName.cluster.empty())
|
||||
characterName.cluster = ConfigChatServer::getClusterName();
|
||||
ChatServer::uninvite(ChatServer::getNetworkIdByAvatarId(characterName), chat.getSequence(), characterName, chat.getRoomName());
|
||||
}
|
||||
|
||||
@@ -690,7 +690,7 @@ void VChatInterface::OnGetChannelInfo(unsigned track, unsigned result, const std
|
||||
{
|
||||
VChatSystem::Channel data;
|
||||
data.m_channelName = channelName;
|
||||
data.m_channelPassword = ""; // none of the channels have passwords at this point so this is a safe assumption
|
||||
data.m_channelPassword.clear(); // none of the channels have passwords at this point so this is a safe assumption
|
||||
data.m_channelURI = channelURI;
|
||||
data.m_channelID = channelID;
|
||||
setChannelData(data);
|
||||
|
||||
Reference in New Issue
Block a user