Created
April 22, 2022 07:55
-
-
Save endreszabo/5cc5972a1820786557af95b870feb36b to your computer and use it in GitHub Desktop.
Automatikus targyeset mutato script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weechat::register( | |
"targyeset", | |
"Automatikus targyeset", | |
"1.0", | |
"GPL2", | |
"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