MCQ module: fix end mcq message in qcmchan mode
This commit is contained in:
parent
7f181864b7
commit
9b8e1351c5
@ -206,18 +206,18 @@ class Session:
|
|||||||
nextQ = self.next_question()
|
nextQ = self.next_question()
|
||||||
if nextQ is not None:
|
if nextQ is not None:
|
||||||
if self.sender != self.channel:
|
if self.sender != self.channel:
|
||||||
self.server.send_msg(self.channel, "%s: %s%s" % (self.sender, bfr, nextQ.question))
|
self.server.send_msg_final(self.channel, "%s: %s%s" % (self.sender, bfr, nextQ.question))
|
||||||
else:
|
else:
|
||||||
self.server.send_msg(self.channel, "%s%s" % (bfr, nextQ.question))
|
self.server.send_msg_final(self.channel, "%s%s" % (bfr, nextQ.question))
|
||||||
else:
|
else:
|
||||||
if self.good > 1:
|
if self.good > 1:
|
||||||
goodS = "s"
|
goodS = "s"
|
||||||
else:
|
else:
|
||||||
goodS = ""
|
goodS = ""
|
||||||
if self.sender != self.channel:
|
if self.sender != self.channel:
|
||||||
self.server.send_msg(self.channel, "%s: %sFini, tu as donné %d bonne%s réponse%s sur %d questions." % (self.sender, bfr, self.good, goodS, goodS, len(self.questions)))
|
self.server.send_msg_final(self.channel, "%s: %sFini, tu as donné %d bonne%s réponse%s sur %d questions." % (self.sender, bfr, self.good, goodS, goodS, len(self.questions)))
|
||||||
else:
|
else:
|
||||||
self.server.send_msg(self.channel, "%sFini, vous avez donné %d bonne%s réponse%s sur %d questions." % (bfr, self.good, goodS, goodS, len(self.questions)))
|
self.server.send_msg_final(self.channel, "%sFini, vous avez donné %d bonne%s réponse%s sur %d questions." % (bfr, self.good, goodS, goodS, len(self.questions)))
|
||||||
del SESSIONS[self.sender]
|
del SESSIONS[self.sender]
|
||||||
|
|
||||||
def prepareNext(self, lag = 3):
|
def prepareNext(self, lag = 3):
|
||||||
|
Loading…
Reference in New Issue
Block a user