diff options
author | B. Watson <urchlay@slackware.uk> | 2025-01-12 12:20:45 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-01-12 12:20:45 -0500 |
commit | 400ff3c07bcd156b28870b0635c5f2b73c49e9c8 (patch) | |
tree | 18a77bae85eb0daaba625f7ec8c7bbe27f4a828f /complete_text.pl | |
parent | e6924def82c4035f9ee520602654c5912184585f (diff) | |
download | stupid-irssi-tricks-400ff3c07bcd156b28870b0635c5f2b73c49e9c8.tar.gz |
mollyguard.pl: added (ignore Enter key right after single-quote).
Diffstat (limited to 'complete_text.pl')
-rw-r--r-- | complete_text.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/complete_text.pl b/complete_text.pl index bac2fa0..8917d60 100644 --- a/complete_text.pl +++ b/complete_text.pl @@ -127,10 +127,19 @@ sub setup_changed { load_static_seen(); } +sub typo { + my $text = shift; + for(split(/\s+/, $text)) { + delete $seen{$_}; + } + @dict = keys %seen; +} + load_static_seen(); signal_add_last('setup changed', \&setup_changed); signal_add_last('complete word', \&complete_word); command_bind('dumpdict', \&dumpdict); +command_bind('typo', \&typo); for( "message public", "message private", |