mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
[Feature] Add Strings::BeginsWith() and Strings::EndsWith() (#3471)
* [Strings] Add Strings::BeginsWith() and Strings::EndsWith() # Notes - These are useful so that we don't have to manually calculate size or perform a substring. * Update questmgr.cpp * Update client.cpp
This commit is contained in:
+2
-2
@@ -1018,8 +1018,8 @@ bool QuestManager::isdisctome(uint32 item_id) {
|
||||
const std::string item_name = item->Name;
|
||||
|
||||
if (
|
||||
strcmp(item_name.substr(0, 5).c_str(), "Tome ") &&
|
||||
strcmp(item_name.substr(0, 7).c_str(), "Skill: ")
|
||||
!Strings::BeginsWith(item_name, "Tome of ") &&
|
||||
!Strings::BeginsWith(item_name, "Skill: ")
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user