Merge pull request #7 from milestorme/master
Added new config option disable/enable per level up announcer this closes https://github.com/azerothcore/mod-congrats-on-level/issues/4
This commit is contained in:
commit
de8685a119
2 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
Congrats.Enable = 1
|
Congrats.Enable = 1
|
||||||
|
|
||||||
|
# Enable the Per level congratulations announcement (1: true | 0: false)
|
||||||
|
CongratsPerLevel.Enable = 1
|
||||||
|
|
||||||
# Announce the module when the player logs in?
|
# Announce the module when the player logs in?
|
||||||
|
|
||||||
Congrats.Announce = 1
|
Congrats.Announce = 1
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
// If enabled...
|
||||||
|
if (sConfigMgr->GetBoolDefault("CongratsPerLevel.Enable", true))
|
||||||
{
|
{
|
||||||
// Issue a server notification for the player on level up.
|
// Issue a server notification for the player on level up.
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue