Commit Graph
9 Commits
Author SHA1 Message Date
Peter Keresztes Schmidt 1c246cc980 Core/ChatCommands: Parse SpellInfo also from enchant, glyph, talent and trade links (PR #25270)
(cherry picked from commit 9df61fd111a39983d751ac0bed767137b330c547)
2022-02-02 21:08:29 +01:00
Treeston 673521bc87 Core/ChatCommands: Move Trinity::ChatCommands::Variant from boost::variant to std::variant (for real this time)
(cherry picked from commit ffc3e355fe2adfe48d37759091a537b699b12753)
2022-02-02 20:49:42 +01:00
Shauren ff9816ef38 Core/Misc: Fixed outdated cherry-picked file headers 2021-12-26 22:05:54 +01:00
Treeston fdcef115e0 Core/Chat: Add SpellInfo const* handler for command args. Use it to update .cast <spellId/link> <triggered>.
(cherry picked from commit 7ac6ccb36ba6ffba542f3e9a60bca4d9e6a6b84d)
2021-12-24 00:34:08 +01:00
Shauren 8423382fb0 Core/Chat: Implement hyperlink validation for new link types 2021-10-31 23:07:56 +01:00
Treeston e506c80a64 Core/Chat: Unify chat hyperlink parsing (PR #22417)
- Validate most link properties all the time
- If enabled, also validate link text (needs locale)
- Instead of blocking the entire message, sanitize it
- Apply filtering to DND/AFK messages. Closes #22399

(cherry picked from commit f27284594b18000a1c098262728fb19fdc63fc6c)
2021-10-31 01:39:04 +02:00
Treeston f91faa161c Core/ChatCommands: Implement achievement link parsing
(cherry picked from commit a4c666dc3d75d0c77fdeb52a6d2cd21100ba4588)
2021-10-25 15:06:41 +02:00
Treeston 6dc35e7beb Core/ChatCommands: Properly handle single-argument handlers (argument string discarded). Add special handling for on/off booleans.
(cherry picked from commit 37489eda93b6fac53a6596979dfab08e04b04523)
2021-10-25 00:05:36 +02:00
Treeston 0c681b6509 Scripts/Commands: New argument parsing methodology (PR #22363)
- Detect the arguments accepted by the command handler
- Tokenize out those arguments automatically and feed them to the handler
- Unmatched rest of the string can be accepted by trailing char const* or CommandArgs*

(cherry picked from commit 66a87c4642d25f27ca24254cfeb0a0c4b21036b1)
2021-10-25 00:03:23 +02:00