mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-05 02:29:22 +01:00
b05fe01d66
"Search not found in the last X *messages*" is a bit confusing because this is really counting the entire history, which includes all other lines of IRC communication (this means pings, /NAMES replies and so on). |
||
---|---|---|
.. | ||
local | ||
__init__.py | ||
config.py | ||
constants.py | ||
plugin.py | ||
README.md | ||
test.py |
History replacer using sed-style expressions.
Configuration
Enable SedRegex on the desired channels:
config channel #yourchannel plugins.sedregex.enable True
Usage
After enabling SedRegex, typing a regex in the form
s/text/replacement/
will make the bot announce
replacements.
20:24 <~GL> helli world
20:24 <~GL> s/i/o/
20:24 <@Lily> GL meant to say: hello world
You can also do othernick: s/text/replacement/
to only
replace messages from a certain user. Supybot ignores are respected by
the plugin, and messages from ignored users will only be considered if
their nick is explicitly given.
Regex flags
The following regex flags (i.e. the g
in
s/abc/def/g
, etc.) are supported:
i
: case insensitive replacementg
: replace all occurences of the original texts
: (custom flag specific to this plugin) replace only messages from the caller