Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
bug fixes for telnet
Browse files Browse the repository at this point in the history
  • Loading branch information
NiekNijland committed Mar 16, 2021
1 parent db613b6 commit e49546d
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file modified .vs/CsgoTranslator/v16/.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions CsgoTranslator/Controllers/LogsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static public void LoadLogs(int amount)
else if(Chats.Where(x => x.Message == messages[i] && x.Name == names[i]).Count() == 0)
{
Chat chat = new Chat(chatTypes[i], names[i], messages[i]);
Chats.Add(chat);
Chats.Insert(0, chat);
if(chat.ChatType == ChatType.All && chat.Translation != chat.Message && chat.Translation != "")
{
TelnetHelper.SendTranslationInTeamChat(chat);
Expand Down Expand Up @@ -109,7 +109,7 @@ private static (List<ChatType> chatTypes, List<string> names, List<string> messa
foreach (string l in lines)
{
//filter the lines on chat message syntax
if (l.Contains(" : ") && !l.Contains(" : ") && !l.Contains("!."))
if (l.Contains(" : ") && !l.Contains(" : ") && !l.Contains("!.") && !l.Trim().StartsWith("Duplicate : "))
{
string[] temp = l.Split(new string[] { " : " }, 2, StringSplitOptions.None);

Expand Down
Binary file modified CsgoTranslator/bin/Release/CsgoTranslator.exe
Binary file not shown.
Binary file modified CsgoTranslator/bin/Release/CsgoTranslator.pdb
Binary file not shown.
Binary file not shown.
Binary file modified CsgoTranslator/obj/Release/CsgoTranslator.exe
Binary file not shown.
Binary file modified CsgoTranslator/obj/Release/CsgoTranslator.pdb
Binary file not shown.

0 comments on commit e49546d

Please sign in to comment.