git://git.novaco.in
/
electrum-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
irc: fix random nick generation with hex string in case irc_nick is not set
[electrum-server.git]
/
backends
/
irc
/
__init__.py
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_'