diff --git a/src/game/client/components/chillerbot/warlist_commands_advanced.cpp b/src/game/client/components/chillerbot/warlist_commands_advanced.cpp index a45f61d2046..2f7aacb251d 100644 --- a/src/game/client/components/chillerbot/warlist_commands_advanced.cpp +++ b/src/game/client/components/chillerbot/warlist_commands_advanced.cpp @@ -35,7 +35,7 @@ bool CWarList::OnChatCmdAdvanced(char Prefix, int ClientId, int Team, const char m_pClient->m_Chat.AddLine(-2, 0, "!peace "); m_pClient->m_Chat.AddLine(-2, 0, "!war "); m_pClient->m_Chat.AddLine(-2, 0, "!team "); - m_pClient->m_Chat.AddLine(-2, 0, "!unfriend "); + m_pClient->m_Chat.AddLine(-2, 0, "!unfriend "); // aliases delteam, unteam m_pClient->m_Chat.AddLine(-2, 0, "!addreason [--force] "); m_pClient->m_Chat.AddLine(-2, 0, "!search "); m_pClient->m_Chat.AddLine(-2, 0, "!create [name]"); @@ -219,7 +219,7 @@ bool CWarList::OnChatCmdAdvanced(char Prefix, int ClientId, int Team, const char ReloadList(); m_pClient->m_Chat.AddLine(-2, 0, aBuf); } - else if(!str_comp(pCmd, "unfriend")) // "unfriend " + else if(!str_comp(pCmd, "unfriend") || !str_comp(pCmd, "unteam") || !str_comp(pCmd, "delteam")) // "unfriend " { if(NumArgs < 1) { diff --git a/src/game/client/components/chillerbot/warlist_commands_simple.cpp b/src/game/client/components/chillerbot/warlist_commands_simple.cpp index a329327873e..2081e3620be 100644 --- a/src/game/client/components/chillerbot/warlist_commands_simple.cpp +++ b/src/game/client/components/chillerbot/warlist_commands_simple.cpp @@ -111,46 +111,26 @@ bool CWarList::OnChatCmdSimple(char Prefix, int ClientId, int Team, const char * m_pClient->m_Chat.AddLine(-2, 0, "Error: create only works in advanced warlist mode"); return true; } - else if(!str_comp(pCmd, "addwar")) // "addwar " + else if(!str_comp(pCmd, "addwar") || !str_comp(pCmd, "war")) // "addwar " { AddSimpleWar(pRawArgLine); return true; } - else if(!str_comp(pCmd, "addteam")) // "addteam " + else if(!str_comp(pCmd, "team") || !str_comp(pCmd, "addteam")) // "team " { AddSimpleTeam(pRawArgLine); return true; } - else if(!str_comp(pCmd, "peace")) // "peace " + else if(!str_comp(pCmd, "delwar") ||!str_comp(pCmd, "peace") ) // "delwar " { RemoveSimpleWar(pRawArgLine); return true; } - else if(!str_comp(pCmd, "delwar")) // "delwar " - { - RemoveSimpleWar(pRawArgLine); - return true; - } - else if(!str_comp(pCmd, "team")) // "team " - { - AddSimpleTeam(pRawArgLine); - return true; - } - else if(!str_comp(pCmd, "delteam")) // "delteam " + else if(!str_comp(pCmd, "delteam") || !str_comp(pCmd, "unfriend")|| !str_comp(pCmd, "unteam")) // "unfriend " { RemoveSimpleTeam(pRawArgLine); return true; } - else if(!str_comp(pCmd, "unfriend")) // "unfriend " - { - RemoveSimpleTeam(pRawArgLine); - return true; - } - else if(!str_comp(pCmd, "war")) // "war " - { - AddSimpleWar(pRawArgLine); - return true; - } else if(!str_comp(pCmd, "addreason")) // "addreason " { m_pClient->m_Chat.AddLine(-2, 0, "Error: addreason only works in advanced warlist mode");