From 65681bcc61fd9630a48f258a266b36a38bebb483 Mon Sep 17 00:00:00 2001 From: urlbot Date: Wed, 29 Oct 2014 13:47:26 +0100 Subject: [PATCH] get_reply_data: split on anything, remove strip(\n) --- plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins.py b/plugins.py index e97a084..cd88afc 100644 --- a/plugins.py +++ b/plugins.py @@ -18,14 +18,14 @@ plugins['command'] = [] def get_reply_data(data, field=0): # FIXME: we can't determine if a user named 'foo> ' just wrote ' > bar' # or a user 'foo' just wrote '> > bar' - f = data.split(' ') + f = data.split() if 0 == field: return f[0].strip('<>') else: if field > len(f): return None - return f[field].strip('\n') + return f[field] def register_event(t, callback, args): joblist.append((t, callback, args))