remember: fix 'can't remember new things' bug
This commit is contained in:
parent
61da8580d0
commit
75ddc44e11
|
@ -39,7 +39,10 @@ def remember(inp, nick='', chan='', db=None):
|
||||||
return remember.__doc__
|
return remember.__doc__
|
||||||
|
|
||||||
data = get_memory(db, chan, head)
|
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] == '+':
|
if tail[0] == '+':
|
||||||
append = True
|
append = True
|
||||||
|
|
Loading…
Reference in New Issue