From 3a8fecd8f9121134bf45c28bbde28cae44e5d2bd Mon Sep 17 00:00:00 2001 From: urlbot Date: Wed, 29 Oct 2014 13:50:01 +0100 Subject: [PATCH] fix crash on empty args --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index cd88afc..c30ee11 100644 --- a/plugins.py +++ b/plugins.py @@ -23,7 +23,7 @@ def get_reply_data(data, field=0): if 0 == field: return f[0].strip('<>') else: - if field > len(f): + if field >= len(f): return None return f[field]