git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
3779808
)
Log KICK messages from IRC
author
wozz
<wozz@users.noreply.github.com>
Wed, 9 Apr 2014 16:46:27 +0000 (12:46 -0400)
committer
wozz
<wozz@users.noreply.github.com>
Wed, 9 Apr 2014 16:46:27 +0000 (12:46 -0400)
Log KICK messages from IRC
backends/irc/__init__.py
patch
|
blob
|
history
diff --git
a/backends/irc/__init__.py
b/backends/irc/__init__.py
index
b401462
..
1f58f77
100644
(file)
--- a/
backends/irc/__init__.py
+++ b/
backends/irc/__init__.py
@@
-137,6
+137,11
@@
class IrcThread(threading.Thread):
host = line[k+9]
ports = line[k+10:]
self.peers[name] = (ip, host, ports)
+ elif 'KICK' in line:
+ try:
+ print_log("KICK", line[3] + line[4])
+ except:
+ print_log("KICK", "error")
if time.time() - t > 5*60:
#self.processor.push_response({'method': 'server.peers', 'params': [self.get_peers()]})