remember: fix 'can't remember new things' bug

This commit is contained in:
Ryan Hitchman 2014-02-17 17:12:06 -08:00
parent 61da8580d0
commit 75ddc44e11
1 changed files with 4 additions and 1 deletions

View File

@ -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