plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit ef707724ad6c6365e3d8f9498dace681a762efec
parent 2a15dc1fcceec987ee183c3cae0cc8d517b2ebec
Author: Antoine Amarilli <a3_nm@ulminfo.fr>
Date:   Thu,  4 Oct 2012 15:57:35 +0200

Fix off-by-one.

Diffstat:
plint_irc.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plint_irc.py b/plint_irc.py @@ -38,7 +38,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' and len(l) >= 2 and l[2] == 'plint': + if first == '/me' and len(l) >= 3 and l[2] == 'plint': # always accept actions if len(lbuf) > 0: lbuf.append(l)