Skip to content

Commit

Permalink
disable template application on login if the module is disabled by co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
sogladev committed Nov 13, 2024
1 parent 5687db4 commit 47d66af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ptr_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,11 @@ class announce : public PlayerScript {
{
static createTemplate templatevar;

if (!sConfigMgr->GetOption<bool>("TemplateEnable", true))
{
return;
}

if (sConfigMgr->GetOption<bool>("AnnounceEnable", true))
{
ChatHandler(player->GetSession()).PSendModuleSysMessage(module_string, templatevar.ALERT_MODULE_PRESENCE);
Expand Down

0 comments on commit 47d66af

Please sign in to comment.