Commit 1ae7d0a6 authored by Mindiell's avatar Mindiell

Fixing description of admin commands; plus moving the resolution of 'admin...

Fixing description of admin commands; plus moving the resolution of 'admin timer' command in the appropriate way
parent 93042653
......@@ -198,13 +198,13 @@ class Wantzel(object):
Show some statistics about the RP
- kill (*)
Kill an article by giving it a score of -100
- moderate list (*)
- admin list (*)
List rights in private
- moderate add (*)
- admin add (*)
Add a new moderator to list
- moderate remove (*)
- admin remove (*)
Remove a moderator from list
- moderate timer
- admin timer
Relaunch a timer
"""
# Cleaning user name
......@@ -244,8 +244,6 @@ class Wantzel(object):
elif command=="admin":
Utils.debug("Calling self.admin")
self.admin(user, channel, msg)
elif command=="timer":
self.admin_timer(user, channel, msg)
# No more giving the title of an url
#if title and website:
# self.send_message(channel, messages["title"] % (title, website))
......@@ -385,7 +383,7 @@ class Wantzel(object):
"""
Utils.debug("admin command")
# Searching for a command after admin keyword
command = re.search("!admin (list|add|del)", msg)
command = re.search("!admin (list|add|del|timer)", msg)
if command:
command = command.group(1)
if command=="list":
......@@ -394,6 +392,8 @@ class Wantzel(object):
self.admin_add(user, channel, msg)
elif command=="del":
self.admin_del(user, channel, msg)
elif command=="del":
self.admin_timer(user, channel, msg)
def admin_list(self, user, channel, msg):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment