Commit Graph

12 Commits

Author SHA1 Message Date
EricksOliveira
72debb6e83 Fix Crash q [ link item ]
This PR adds a null pointer check to the ChatHelper::FormatQuest function to avoid a crash that occurred when trying to format a null quest. The crash occurred when the quest pointer was nullptr and the code tried to access the GetQuestId(), GetQuestLevel() and GetTitle() methods.

Changes:
Added a nullptr check to the beginning of the ChatHelper::FormatQuest function.
Return of a standard error message ("Invalid quest") if the quest is null.

Impact:
Prevents crashes when formatting null quests.
Improves bot system stability when dealing with invalid quests.
2024-10-19 09:55:27 -03:00
antony
79fa75e150 Optimised ExtractAllQuestIds ExtractAllItemIds 2024-09-05 10:35:20 +02:00
Atidot3
25b010dd1e Merge code line 2024-08-04 12:04:06 +02:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Atidot3
79d0f3fd28 Refactoring bot chat and sayaction caused by group crash <NOT FINISHED> 2024-07-31 22:39:59 +02:00
antony
f96f909b6e Rework in progress crash chat botgroup 2024-07-31 17:25:07 +02:00
Atidot3
00844985eb Fix chain link broken (random) unknown + dbc local enus force in some case (spell / chathelper etc) 2024-07-27 14:39:30 +02:00
Yunfan Li
966c8e652b [Crash fix] Fix format item crash 2024-07-26 12:45:24 +08:00
Yunfan Li
ed80744891 [Command] Language locale check 2024-07-24 20:46:20 +08:00
yang
3fb3610ad3 [optimization] Fixed several compilation warnings 2024-05-29 20:23:08 +08:00
郑佩茹
b2821d7f3a Rewrite bot texts 2022-09-26 17:20:59 -06:00
UltraNix
b952636f0d Big update. 2022-03-12 22:27:09 +01:00