I'm writing a script that's trying to cause a message that would cause a hilight to not hilight.
I registered code in 'print text' that will strip the MSGLEVEL_HILIGHT bit, and set MSGLEVEL_NOHILIGHT in the $dest->{level}. Then issue a signal_continue().
This seems to do nothing. If I make changes to the text, in the same signal_continue() call, those changes DO take effect.
Sample code:
Irssi::signal_add('print text', 'sig_incoming');
sub sigincoming {
my ($dest, $text, $stripped) = @;
I'm writing a script that's trying to cause a message that would cause a hilight to not hilight.
I registered code in 'print text' that will strip the MSGLEVEL_HILIGHT bit, and set MSGLEVEL_NOHILIGHT in the $dest->{level}. Then issue a signal_continue().
This seems to do nothing. If I make changes to the text, in the same signal_continue() call, those changes DO take effect.
Sample code:
Irssi::signal_add('print text', 'sig_incoming');
sub sigincoming { my ($dest, $text, $stripped) = @;
}