added .r and .f aliases for remember and forget

This commit is contained in:
lahwran 2011-06-09 21:51:25 -06:00
parent 543ff44995
commit 982a745a1a
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ def get_memory(db, chan, word):
@hook.command @hook.command
@hook.command("r")
def remember(inp, nick='', chan='', db=None): def remember(inp, nick='', chan='', db=None):
".remember <word> [+]<data> -- maps word to data in the memory" ".remember <word> [+]<data> -- maps word to data in the memory"
db_init(db) db_init(db)
@ -56,6 +57,7 @@ def remember(inp, nick='', chan='', db=None):
@hook.command @hook.command
@hook.command("f")
def forget(inp, chan='', db=None): def forget(inp, chan='', db=None):
".forget <word> -- forgets the mapping that word had" ".forget <word> -- forgets the mapping that word had"