mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
[Quest API] Add CheckNameFilter to Perl/Lua. (#2175)
- Add quest::checknamefilter(name) to Perl. - Add eq.check_name_filter(name) to Lua. - Allows operators to check strings against the name filter for stuff like setting custom pet names, titles, suffixes, etc in scripts.
This commit is contained in:
@@ -6375,7 +6375,7 @@ void Client::Handle_OP_GMNameChange(const EQApplicationPacket *app)
|
||||
}
|
||||
Client* client = entity_list.GetClientByName(gmn->oldname);
|
||||
LogInfo("GM([{}]) changeing players name. Old:[{}] New:[{}]", GetName(), gmn->oldname, gmn->newname);
|
||||
bool usedname = database.CheckUsedName((const char*)gmn->newname);
|
||||
bool usedname = database.CheckUsedName(gmn->newname);
|
||||
if (client == 0) {
|
||||
Message(Chat::Red, "%s not found for name change. Operation failed!", gmn->oldname);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user