]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Added documentation
authorJari Matilainen <redacted>
Wed, 25 Nov 2015 13:54:47 +0000 (14:54 +0100)
committerJari Matilainen <redacted>
Wed, 25 Nov 2015 13:54:47 +0000 (14:54 +0100)
scripts/intercept.pl

index b798950f12b99b92208e2de5f761b71caf849b6b..afb8b01ddf47b8ad071fc897533dfb2d17b7f3d7 100644 (file)
@@ -1,4 +1,15 @@
 # Some elements borrowed from ideas developed by shabble@freenode(https://github.com/shabble/irssi-docs/wiki )
+#
+# You can change what intercept.pl considers a linestart by setting
+# /set intercept_linestart to a regular expression that fits your needs.
+# For most, a simple whitespace or . pattern will stop most accidental
+# inputs.
+#
+# You can also tell which patterns should be ignored, for example
+# /set intercept_exceptions s/\w+/[\w\s\d]+/ wouldn't consider
+# s/word a mistyped command if it is followed by a slash, string of
+# valid characters and a final slash.
+# You can enter several patterns separated by a space.
 
 use strict;
 use warnings;
@@ -8,7 +19,7 @@ use Irssi;
 
 use vars qw($VERSION %IRSSI);
 
-$VERSION = "0.1";
+$VERSION = "0.2";
 %IRSSI = (
               authors     => "Jari Matilainen",
               contact     => 'vague!#irssi@freenode on irc',
git clone https://git.99rst.org/PROJECT