Commit 2868f4d0 authored by Mindiell's avatar Mindiell

Added debug and fix a bug

parent c3bd4bd8
......@@ -282,7 +282,10 @@ class Wantzel(object):
Utils.debug("op_verification method")
# Testing based on fibonacci sequence
self.op_counter += 1
if self.op_counter>self.op_sequence[sel.op_offset]:
Utils.debug("op_counter : %s" % op_counter)
Utils.debug("op_offset : %s" % self.op_offset)
Utils.debug("op_sequence : %s" % self.op_sequence[self.op_offset])
if self.op_counter>self.op_sequence[self.op_offset]:
# Bot tries to list channel users, if it can't, then it is no more an op
self.irc.client.sendLine("NAMES #lqdn-rp")
......@@ -420,9 +423,9 @@ class Wantzel(object):
Adding the article in rp database.
"""
Utils.debug("rp command : %s" % command)
Utils.debug("rp user : %s" % user)
Utils.debug("rp user : %s" % user)
Utils.debug("rp channel : %s" % channel)
Utils.debug("rp msg : %s" % msg)
Utils.debug("rp msg : %s" % msg)
cite = 0
note = 1
answer = False
......@@ -508,6 +511,10 @@ class Wantzel(object):
if channel=="#lqdn-rp":
know_rp = True
Utils.debug("know_rp : %s" % know_rp)
Utils.debug("known_user : %s" % known_user)
Utils.debug("score : %s" % score)
Utils.debug("master_user : %s" % master_user)
# Ok, we got all information we need, let's answer now !
if master_user:
# user is a rp master
......
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