Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irker
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iDB
irker
Commits
333a36ec
Commit
333a36ec
authored
12 years ago
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
Canonicalize the channel name early. Avoids a very weird bug.
parent
90638662
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
irkerd
+2
-2
2 additions, 2 deletions
irkerd
with
2 additions
and
2 deletions
irkerd
+
2
−
2
View file @
333a36ec
...
...
@@ -204,8 +204,6 @@ class Connection:
(
channel
,
message
)
=
self
.
queue
.
get
()
if
channel
not
in
self
.
channels_joined
:
self
.
channels_joined
.
append
(
channel
)
if
channel
[
0
]
not
in
"
#&+
"
:
channel
=
"
#
"
+
channel
self
.
connection
.
join
(
channel
)
for
segment
in
message
.
split
(
"
\n
"
):
self
.
connection
.
privmsg
(
channel
,
segment
)
...
...
@@ -239,6 +237,8 @@ class Target():
ircport
=
6667
self
.
servername
=
irchost
self
.
channel
=
parsed
.
path
.
lstrip
(
'
/
'
)
if
self
.
channel
[
0
]
not
in
"
#&+
"
:
self
.
channel
=
"
#
"
+
self
.
channel
self
.
port
=
int
(
ircport
)
def
valid
(
self
):
"
Both components must be present for a valid target.
"
...
...
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