Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-webhook-irc-notify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dario
gitlab-webhook-irc-notify
Commits
ebc48d7a
Commit
ebc48d7a
authored
8 years ago
by
dario
Browse files
Options
Downloads
Patches
Plain Diff
notify.py: attempt to wait through server welcome message
parent
dde4d085
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
notify.py
+7
-0
7 additions, 0 deletions
notify.py
with
7 additions
and
0 deletions
notify.py
+
7
−
0
View file @
ebc48d7a
...
...
@@ -62,6 +62,13 @@ class IINotification(BaseNotification):
while
not
os
.
path
.
exists
(
cmd_in
):
time
.
sleep
(
0.01
)
## the server wants to send us stuff, and usually says "end of MOTD" at the end
cmd_out
=
os
.
path
.
join
(
self
.
dir
,
self
.
ircsrv
,
"
out
"
)
with
open
(
cmd_out
,
"
r
"
)
as
f
:
for
line
in
f
.
readlines
():
if
line
.
find
(
"
MOTD
"
)
!=
-
1
:
break
with
open
(
cmd_in
,
"
a
"
)
as
c
:
c
.
write
(
"
/j
"
+
self
.
chan
+
"
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment