fix crash in IRC initialization (#141)

This commit is contained in:
John L. Jegutanis 2017-02-27 00:24:20 +02:00 committed by Neil
parent b3005fbb3e
commit 472c738479

View File

@ -35,7 +35,7 @@ class IRC(LoggedClass):
self.prefix = env.coin.IRC_PREFIX
self.nick = '{}{}'.format(self.prefix,
env.irc_nick if env.irc_nick else
double_sha256(env.identity.host.encode())
double_sha256(env.host.encode())
[:5].hex())
self.peer_regexp = re.compile('({}[^!]*)!'.format(self.prefix))