View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006493 | unreal | ircd | public | 2025-01-03 16:32 | 2025-01-03 16:32 |
Reporter | syzop | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Product Version | 6.1.10 | ||||
Summary | 0006493: Allow message tag to access target information (eg channel) | ||||
Description | This because some message tags may or should behave differently depending the channel. For example, a message tag to edit the message (and yes, i hate those, but this aside). Without knowing the channel it cannot know if +S/+c/+G are in effect and thus if some filtering would be needed. Regarding the current API limitations: * The mtag->is_ok() happens too soon, before running the command, and a PRIVMSG or NOTICE can be directed to multiple targets anyway (with or without filtering) * In HOOKTYPE_NEW_MESSAGE we don't pass any information about the target (eg channel) either I think, if anything, we could add some HOOKTYPE_NEW_MESSAGE_EX or something with the target or... some other hook. This popped up with the irccloud-tags module but was encountered before by Valware with draft/reply and... i think a third person too... just never made it to bugs.unrealircd.org (unless I am blind) | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2025-01-03 16:32 | syzop | New Issue |