Skip to content

Instantly share code, notes, and snippets.

@endreszabo
Last active May 12, 2026 10:49
Show Gist options
  • Select an option

  • Save endreszabo/53512b22693f253f84b4c1d1a5fcd747 to your computer and use it in GitHub Desktop.

Select an option

Save endreszabo/53512b22693f253f84b4c1d1a5fcd747 to your computer and use it in GitHub Desktop.
Script ami segit latszatni az automatikus targyeset
weechat::register("targyeset", "Automatikus targyeset", "1.0", "GPL3", "Script ami segit latszatni az automatikus targyeset", "", "");
sub sendtext_data {
my ($data, $modifier, $modifier_data, $text) = @_;
return $text if weechat::string_is_command_char($text) == 1;
$text =~ s/(t[aoeui]t([ \.,]|$))/sprintf("%s%s%s", weechat::color('100'), $1, weechat::color('reset'))/ge;
return "$text";
}
weechat::hook_modifier('input_text_display', 'sendtext_data', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment