From: Eagle[TM] Date: Fri, 6 Dec 2013 11:30:25 +0000 (+0100) Subject: irc: fix random nick generation with hex string in case irc_nick is not set X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=fc59efd91121cc8dc2e38d3dd0f6ae56b42f5749 irc: fix random nick generation with hex string in case irc_nick is not set --- diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index cc3f363..80e4a1d 100644 --- 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_'