Commit 1ae7d0a6 authored by Mindiell's avatar Mindiell
Browse files

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): ...@@ -198,13 +198,13 @@ class Wantzel(object):
Show some statistics about the RP Show some statistics about the RP
- kill (*) - kill (*)
Kill an article by giving it a score of -100 Kill an article by giving it a score of -100
- moderate list (*) - admin list (*)
List rights in private List rights in private
- moderate add (*) - admin add (*)
Add a new moderator to list Add a new moderator to list
- moderate remove (*) - admin remove (*)
Remove a moderator from list Remove a moderator from list
- moderate timer - admin timer
Relaunch a timer Relaunch a timer
""" """
# Cleaning user name # Cleaning user name
...@@ -244,8 +244,6 @@ class Wantzel(object): ...@@ -244,8 +244,6 @@ class Wantzel(object):
elif command=="admin": elif command=="admin":
Utils.debug("Calling self.admin") Utils.debug("Calling self.admin")
self.admin(user, channel, msg) self.admin(user, channel, msg)
elif command=="timer":
self.admin_timer(user, channel, msg)
# No more giving the title of an url # No more giving the title of an url
#if title and website: #if title and website:
# self.send_message(channel, messages["title"] % (title, website)) # self.send_message(channel, messages["title"] % (title, website))
...@@ -385,7 +383,7 @@ class Wantzel(object): ...@@ -385,7 +383,7 @@ class Wantzel(object):
""" """
Utils.debug("admin command") Utils.debug("admin command")
# Searching for a command after admin keyword # 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: if command:
command = command.group(1) command = command.group(1)
if command=="list": if command=="list":
...@@ -394,6 +392,8 @@ class Wantzel(object): ...@@ -394,6 +392,8 @@ class Wantzel(object):
self.admin_add(user, channel, msg) self.admin_add(user, channel, msg)
elif command=="del": elif command=="del":
self.admin_del(user, channel, msg) self.admin_del(user, channel, msg)
elif command=="del":
self.admin_timer(user, channel, msg)
def admin_list(self, 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