plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 2a2060b6786d82a4eec316f0c358fbfba4d59891
parent d6231590b0c6e017a7fcc867c27350eb84db5702
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 10 Jul 2012 22:34:12 +0200

require /me plint

Diffstat:
plint_irc.py | 2+-
poem2html/make_poem.pl | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plint_irc.py b/plint_irc.py @@ -37,7 +37,7 @@ def manage(line, silent=False): if normalize(text.strip()) == '': return True # no text first = [a for a in l[1:] if a != ''][0] - if first == '/me': + if first == '/me' and len(l) >= 2 and l[2] == 'plint': # always accept actions if len(lbuf) > 0: lbuf.append(l) diff --git a/poem2html/make_poem.pl b/poem2html/make_poem.pl @@ -9,7 +9,7 @@ my %actions; while (<STDIN>) { chop; - if (/^<([^>]*)> \/me (.*)$/) { + if (/^<([^>]*)> \/me plint (.*)$/) { if ($1 ne $actor) { $actions{$1} = $2; } else {