-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Hi, I'd like to try adding support for message tags. They would have to be stored in SircMessage, and I can see four ways to do it:
- their own structure:
typedef struct { char *key; char *value } SircMessageTag(withvalueNULLable if it's a tag with no value or an empty value) andSircMessagestoring an array of those + a count - storing an array of key + value pair, either NULL-terminated or with a count
GHashTable- adding an attribute to
SircMessagefor each tag name, populated directly by the parser; and discard unknown tags
Option 3 would probably be the most convenient, but it will be an issue if you want to add support for extensions/plugins/... in the future; as they can't use tags the parser isn't aware of.
Ditto for SircCommandBuilder.
What do you think?
(related issue: GH-75)
Reactions are currently unavailable