From c6e46a9268c2584be99e75e2242a1ea27a72b6c6 Mon Sep 17 00:00:00 2001 From: urlbot Date: Sun, 31 May 2015 22:02:06 +0200 Subject: [PATCH] fix off-by-one in command_decode() --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index fecd05d..3fd9da4 100644 --- a/plugins.py +++ b/plugins.py @@ -369,7 +369,7 @@ def command_decode(argv, **args): if 'decode' != argv[0]: return - if len(argv) < 1: + if len(argv) <= 1: return { 'msg': args['reply_user'] + ': usage: decode {single character}' }