mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 04:08:27 +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:
@@ -1041,11 +1041,11 @@ XS(XS__surname);
|
||||
XS(XS__surname) {
|
||||
dXSARGS;
|
||||
if (items != 1)
|
||||
Perl_croak(aTHX_ "Usage: quest::surname(string name)");
|
||||
Perl_croak(aTHX_ "Usage: quest::surname(string last_name)");
|
||||
|
||||
char *name = (char *) SvPV_nolen(ST(0));
|
||||
std::string last_name = (std::string) SvPV_nolen(ST(0));
|
||||
|
||||
quest_manager.surname(name);
|
||||
quest_manager.surname(last_name);
|
||||
|
||||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user