1
0
Fork 0

Update soutenance module to v3.3

This commit is contained in:
Némunaire 2012-11-04 16:04:39 +01:00
parent b251b3d852
commit 6b6f5b7e0b
1 changed files with 4 additions and 5 deletions

View File

@ -7,9 +7,8 @@ from datetime import date
from datetime import datetime
from . import SiteSoutenances
from .Delayed import Delayed
nemubotversion = 3.2
nemubotversion = 3.3
def help_tiny():
"""Line inserted in the response to the command !help"""
@ -24,11 +23,11 @@ def load(context):
def ask_soutenance(msg):
req = ModuleState("request")
if len(msg.cmd) > 1:
req.setAttribute("user", msg.cmd[1])
if len(msg.cmds) > 1:
req.setAttribute("user", msg.cmds[1])
else:
req.setAttribute("user", "next")
req.setAttribute("server", msg.srv.id)
req.setAttribute("server", msg.server)
req.setAttribute("channel", msg.channel)
req.setAttribute("sender", msg.sender)