mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Chat formats : Catch Argument out of range
Whas happening for chat messages starting with '<' but never ending with '>'. Bug report by Aderpace.
This commit is contained in:
parent
d36647af3e
commit
67939774ba
1 changed files with 4 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ namespace MinecraftClient
|
|||
else return false;
|
||||
}
|
||||
catch (IndexOutOfRangeException) { /* Not an expected chat format */ }
|
||||
catch (ArgumentOutOfRangeException) { /* Same here */ }
|
||||
}
|
||||
|
||||
//User-defined regex for private chat messages
|
||||
|
|
@ -308,6 +309,7 @@ namespace MinecraftClient
|
|||
return IsValidName(sender);
|
||||
}
|
||||
catch (IndexOutOfRangeException) { /* Not a vanilla/faction message */ }
|
||||
catch (ArgumentOutOfRangeException) { /* Same here */ }
|
||||
}
|
||||
|
||||
//Detect HeroChat Messages
|
||||
|
|
@ -324,6 +326,7 @@ namespace MinecraftClient
|
|||
return IsValidName(sender);
|
||||
}
|
||||
catch (IndexOutOfRangeException) { /* Not a herochat message */ }
|
||||
catch (ArgumentOutOfRangeException) { /* Same here */ }
|
||||
}
|
||||
|
||||
//Detect (Unknown Plugin) Messages
|
||||
|
|
@ -351,6 +354,7 @@ namespace MinecraftClient
|
|||
}
|
||||
}
|
||||
catch (IndexOutOfRangeException) { /* Not a <unknown plugin> message */ }
|
||||
catch (ArgumentOutOfRangeException) { /* Same here */ }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue