[Rules] Add Rule to Enable Tells with #hideme (#2358)

With the recent changes to #hideme as of #2328, tells are disabled to hidden GMs, meaning a GM must show themselves in order to receive tells.
This commit is contained in:
Kinglykrab 2022-08-04 16:41:36 -04:00 committed by GitHub
parent 5ec18709a6
commit 8ee7759dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -809,6 +809,7 @@ RULE_CATEGORY_END()
RULE_CATEGORY(Command)
RULE_BOOL(Command, DyeCommandRequiresDyes, false, "Enable this to require a Prismatic Dye (32557) each time someone uses #dye.")
RULE_BOOL(Command, HideMeCommandDisablesTells, true, "Disable this to allow tells to be received when using #hideme.")
RULE_CATEGORY_END()
RULE_CATEGORY(Doors)

View File

@ -3388,9 +3388,10 @@ void Client::SetHideMe(bool gm_hide_me)
CreateDespawnPacket(&app, false);
entity_list.RemoveFromTargets(this);
trackable = false;
tellsoff = true;
}
else {
if (RuleB(Command, HideMeCommandDisablesTells)) {
tellsoff = true;
}
} else {
database.SetHideMe(AccountID(), false);
CreateSpawnPacket(&app);
trackable = true;