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
91edb3bb
Commit
91edb3bb
authored
12 years ago
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
Push some debugging down to the IRC object.
parent
8d785c3a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
irclib.py
+7
-4
7 additions, 4 deletions
irclib.py
irker.py
+0
-1
0 additions, 1 deletion
irker.py
with
7 additions
and
5 deletions
irclib.py
+
7
−
4
View file @
91edb3bb
...
...
@@ -173,8 +173,6 @@ class IRC(object):
self
.
add_global_handler
(
"
ping
"
,
_ping_ponger
,
-
42
)
self
.
debug
(
1
,
"
IRC object created
"
)
def
server
(
self
):
"""
Creates and returns a ServerConnection object.
"""
...
...
@@ -353,8 +351,8 @@ class IRC(object):
def
debug
(
self
,
level
,
errmsg
):
"""
Display debugging information.
"""
#
if self.debuglevel >= level:
sys
.
stderr
.
write
(
"
irclib[%d]: %s
\n
"
%
(
self
.
debuglevel
,
errmsg
))
if
self
.
debuglevel
>=
level
:
sys
.
stderr
.
write
(
"
irclib[%d]: %s
\n
"
%
(
self
.
debuglevel
,
errmsg
))
def
_remove_connection
(
self
,
connection
):
"""
[Internal]
"""
...
...
@@ -446,6 +444,7 @@ class ServerConnection(Connection):
def
__init__
(
self
,
irclibobj
):
super
(
ServerConnection
,
self
).
__init__
(
irclibobj
)
self
.
irclibobj
=
irclibobj
self
.
connected
=
0
# Not connected yet.
self
.
socket
=
None
self
.
ssl
=
None
...
...
@@ -495,6 +494,10 @@ class ServerConnection(Connection):
self
.
password
=
password
self
.
localaddress
=
localaddress
self
.
localport
=
localport
self
.
irclibobj
.
debug
(
1
,
"
connect(server=%s, port=%s, nick=%s)
"
\
%
(
self
.
server
,
self
.
port
,
self
.
nickname
))
self
.
localhost
=
socket
.
gethostname
()
if
ipv6
:
self
.
socket
=
socket
.
socket
(
socket
.
AF_INET6
,
socket
.
SOCK_STREAM
)
...
...
This diff is collapsed.
Click to expand it.
irker.py
+
0
−
1
View file @
91edb3bb
...
...
@@ -40,7 +40,6 @@ class Session():
self
.
channel
=
parsed
.
path
.
lstrip
(
'
/
'
)
self
.
port
=
int
(
port
)
self
.
server
=
self
.
irker
.
irc
.
server
()
self
.
irker
.
debug
(
1
,
"
connecting: server=%s port=%s name=%s
"
%
(
self
.
servername
,
self
.
port
,
self
.
name
()))
self
.
server
.
connect
(
self
.
servername
,
self
.
port
,
self
.
name
())
Session
.
count
+=
1
def
enqueue
(
self
,
message
):
...
...
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