mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 15:08:22 +00:00
[Titles] Cleanup titles, title suffix, and last name methods. (#2174)
* [Titles] Cleanup titles, title suffix, and last name methods. - Use strings instead of const chars*. - Add optional parameter to SetAATitle in Lua so you can save to the database similar to Perl. - Cleanup #lastname command. - Cleanup #title command. - Cleanup #titlesuffix command. * Update npc.cpp
This commit is contained in:
@@ -12875,7 +12875,7 @@ void Client::Handle_OP_SetTitle(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
SetTitle_Struct *sts = (SetTitle_Struct *)app->pBuffer;
|
||||
auto sts = (SetTitle_Struct *) app->pBuffer;
|
||||
|
||||
if (sts->title_id && !title_manager.HasTitle(this, sts->title_id)) {
|
||||
return;
|
||||
@@ -12892,9 +12892,9 @@ void Client::Handle_OP_SetTitle(const EQApplicationPacket *app)
|
||||
);
|
||||
|
||||
if (!sts->is_suffix) {
|
||||
SetAATitle(title.c_str());
|
||||
SetAATitle(title);
|
||||
} else {
|
||||
SetTitleSuffix(title.c_str());
|
||||
SetTitleSuffix(title);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user