Update plugins/todo.py

This commit is contained in:
lukeroge 2012-03-12 11:47:22 +13:00
parent 54d84dcd09
commit 36fd6af7ec

View file

@ -90,7 +90,7 @@ def db_search(db, nick, query):
@hook.command @hook.command
def todo(inp, nick='', chan='', db=None, notice=None, bot=None): def todo(inp, nick='', chan='', db=None, notice=None, bot=None):
".todo (add|del|list|search) [@user] args -- Manipulates your list of todos." ".todo (add|del|list|search) args -- Manipulates your list of todos."
db_init(db) db_init(db)
@ -99,9 +99,11 @@ def todo(inp, nick='', chan='', db=None, notice=None, bot=None):
args = parts[1:] args = parts[1:]
if len(args) and args[0].startswith("@"): # code to allow users to access each others factoids and a copy of help
nick = args[0][1:] # ".todo (add|del|list|search) [@user] args -- Manipulates your list of todos."
args = args[1:] #if len(args) and args[0].startswith("@"):
# nick = args[0][1:]
# args = args[1:]
if cmd == 'add': if cmd == 'add':
if not len(args): if not len(args):