git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5bbcbea
)
irc: fix random nick generation with hex string in case irc_nick is not set
author
Eagle[TM]
<eagletm@mpex.net>
Fri, 6 Dec 2013 11:30:25 +0000 (12:30 +0100)
committer
Eagle[TM]
<eagletm@mpex.net>
Fri, 6 Dec 2013 11:30:25 +0000 (12:30 +0100)
backends/irc/__init__.py
patch
|
blob
|
history
diff --git
a/backends/irc/__init__.py
b/backends/irc/__init__.py
index
cc3f363
..
80e4a1d
100644
(file)
--- a/
backends/irc/__init__.py
+++ b/
backends/irc/__init__.py
@@
-39,7
+39,7
@@
class IrcThread(threading.Thread):
if self.report_host:
self.host = self.report_host
if not self.nick:
- self.nick = Hash(self.report_host)[:10]
+ self.nick = Hash(self.host)[:5].encode("hex")
self.prepend = 'E_'
if config.get('server', 'coin') == 'litecoin':
self.prepend = 'EL_'