Merge pull request #1101 from KinglyKrab/custom

Custom changes.
This commit is contained in:
Alex
2020-08-03 23:17:37 -04:00
committed by GitHub
14 changed files with 190 additions and 20 deletions
+15 -1
View File
@@ -1035,7 +1035,21 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
return;
}
}
uint8 admin_level = Admin();
char *custom_rank = (
admin_level ?
(
admin_level == 1 ?
"[Donator] " :
(
admin_level == 255 ?
"[Admin] " :
""
)
) :
""
);
strn0cpy(message, strcat(custom_rank, message), 4096);
if (!worldserver.SendChannelMessage(this, 0, chan_num, 0, language, lang_skill, message))
{
Message(0, "Error: World server disconnected");