View Issue Details

IDProjectCategoryView StatusLast Update
0006493unrealircdpublic2025-01-03 16:32
Reportersyzop Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version6.1.10 
Summary0006493: Allow message tag to access target information (eg channel)
DescriptionThis 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)
TagsNo tags attached.
3rd party modules

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-01-03 16:32 syzop New Issue