Open shabble opened 13 years ago
In some channels it's commonplace to correct your mistakes with a pseudo-regex, for example:
<Foo> I love badgers! <Bar> Badgers, really?! <Foo> s/badgers/horses/
Instead of mentally parsing it, get irssi to do it!
It needs some security and sanity checking for the replacement string, and should have a couple of thresholds / restrictions. Something like:
s/a/b/g
*
https://github.com/shabble/irssi-scripts/blob/master/feature-tests/linehax.pl
http://anti.teamidiot.de/static/nei/*/Code/Irssi/typofix.pl
Idea
In some channels it's commonplace to correct your mistakes with a pseudo-regex, for example:
Instead of mentally parsing it, get irssi to do it!
It needs some security and sanity checking for the replacement string, and should have a couple of thresholds / restrictions. Something like:
s/a/b/g
isn't allowed (but difficult to generalise - how little is too little. Maybe run the match and count the number of matches?Other notes:
*
at the start/end of the line, maybe)See Also
https://github.com/shabble/irssi-scripts/blob/master/feature-tests/linehax.pl