on $*:hotlink:/#[^,\s]+/:*:{
if ($hotlink(event) $hotlink(match).type == rclick channel) {
hotlink -dm @custom_channel_popups
}
}
menu @custom_channel_popups {
custom item: echo -a popup!
}
If you want to add a custom popups menu when right clicking channels
inside channels only, replace the event definition by
on $*:hotlink:/#[^,\s]+/:#:{