From 75ddc44e119343a8d6f77e3085c6353e0454782d Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Mon, 17 Feb 2014 17:12:06 -0800 Subject: [PATCH] remember: fix 'can't remember new things' bug --- plugins/remember.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/remember.py b/plugins/remember.py index 4a0403e..f975503 100644 --- a/plugins/remember.py +++ b/plugins/remember.py @@ -39,7 +39,10 @@ def remember(inp, nick='', chan='', db=None): return remember.__doc__ data = get_memory(db, chan, head) - _head, _tail = data.split(None, 1) + if data is not None: + _head, _tail = data.split(None, 1) + else: + _head, _tail = head, '' if tail[0] == '+': append = True