consistently use 'todo list' vs 'todo'
This commit is contained in:
parent
8217724f41
commit
9809dfa522
1 changed files with 4 additions and 4 deletions
|
@ -16,12 +16,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
if len(todo) >= index:
|
if len(todo) >= index:
|
||||||
event["stdout"].write("Todo %d: %s" % (index, todo[index-1]))
|
event["stdout"].write("Todo %d: %s" % (index, todo[index-1]))
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("You do not have that many things in your todo")
|
event["stderr"].write("You do not have that many things in your todo list")
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("Please provide a number")
|
event["stderr"].write("Please provide a number")
|
||||||
else:
|
else:
|
||||||
todo_count = len(todo)
|
todo_count = len(todo)
|
||||||
event["stdout"].write("There are %d items in your todo" % todo_count)
|
event["stdout"].write("There are %d items in your todo list" % todo_count)
|
||||||
|
|
||||||
@utils.hook("received.command.todoadd", min_args=1)
|
@utils.hook("received.command.todoadd", min_args=1)
|
||||||
def todo_add(self, event):
|
def todo_add(self, event):
|
||||||
|
@ -33,7 +33,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
todo = event["user"].get_setting("todo", [])
|
todo = event["user"].get_setting("todo", [])
|
||||||
for item in todo:
|
for item in todo:
|
||||||
if item.lower() == arg_lower:
|
if item.lower() == arg_lower:
|
||||||
raise utils.EventError("That is already in your todo")
|
raise utils.EventError("That is already in your todo list")
|
||||||
todo.append(event["args"])
|
todo.append(event["args"])
|
||||||
event["user"].set_setting("todo", todo)
|
event["user"].set_setting("todo", todo)
|
||||||
event["stdout"].write("Saved")
|
event["stdout"].write("Saved")
|
||||||
|
@ -53,7 +53,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
event["stdout"].write("Todo item removed")
|
event["stdout"].write("Todo item removed")
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("You do not have that many things in "
|
event["stderr"].write("You do not have that many things in "
|
||||||
"your todo")
|
"your todo list")
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("Please provided a todo item number to remove")
|
event["stderr"].write("Please provided a todo item number to remove")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue