Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wantzel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
03e19cbb
Commit
03e19cbb
authored
Jun 05, 2018
by
Mindiell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer is now launched once IRC connection is made.
parent
995ad567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
wantzel.py
wantzel.py
+5
-1
No files found.
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
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