mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 05:37:17 +00:00
Custom changes.
This commit is contained in:
1 parent
98340751b0
commit
ff7c3aff92
14 files changed
+190
-20
No files matched your search
+15
-1
@@ -1034,7 +1034,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");
|
||||
|
||||
Reference in new issue
Block a user