Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
2868f4d0
Commit
2868f4d0
authored
Oct 30, 2016
by
Mindiell
Browse files
Added debug and fix a bug
parent
c3bd4bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
2868f4d0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment