mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-29 16:43:30 -04:00
Merge pull request #115 from MCSoup-classic/master
Fix "^detail.user=" exploit
This commit is contained in:
commit
786d197b12
@ -1149,6 +1149,12 @@ try { SendBlockchange(pos1.x, pos1.y, pos1.z, Block.waterstill); } catch { }
|
||||
return;
|
||||
}
|
||||
|
||||
if (text.ToLower().Contains("^detail.user="))
|
||||
{
|
||||
SendMessage("&cYou cannot use WoM detail strings in a chat message.");
|
||||
text = text.Replace("^detail.user=", "");
|
||||
}
|
||||
|
||||
if ( storedMessage != "" ) {
|
||||
if ( !text.EndsWith(">") && !text.EndsWith("<") ) {
|
||||
text = storedMessage.Replace("|>|", " ").Replace("|<|", "") + text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user