Skip to content
GitLab
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
03e19cbb
Commit
03e19cbb
authored
Jun 05, 2018
by
Mindiell
Browse files
Timer is now launched once IRC connection is made.
parent
995ad567
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
03e19cbb
...
...
@@ -39,8 +39,8 @@ class Wantzel(object):
reactor
.
connectTCP
(
config
.
server
,
config
.
port
,
self
.
irc
)
self
.
test_timer
=
""
# Loop call
self
.
loop_started
=
False
self
.
loop
=
task
.
LoopingCall
(
self
.
timer
)
self
.
loop
.
start
(
config
.
timer
)
def
timer
(
self
):
"""
...
...
@@ -92,6 +92,10 @@ class Wantzel(object):
"""
Log
.
debug
(
"UNKNOWN %s %s %s"
%
(
prefix
,
command
,
params
))
if
command
==
"RPL_NAMREPLY"
:
# Launch loop if necessary
if
not
self
.
loop_started
:
self
.
loop
.
start
(
config
.
timer
)
self
.
loop_started
=
True
# Beg for operator mode ?
self
.
send_message
(
params
[
2
],
self
.
op
.
need_op_mode
(
"@"
+
self
.
irc
.
client
.
nickname
,
params
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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