fix crash due to a missing env variable in irc.py and a typo fix (#112)

Thank you!
This commit is contained in:
John L. Jegutanis 2017-01-30 16:52:56 +02:00 committed by Neil
parent cd078be882
commit fd19bddeb1
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class DB(util.LoggedClass):
self.hist_db = self.db_class('hist', for_sync)
if self.utxo_db.is_new:
self.logger.info('created new database')
self.logger.info('creating metadata diretcory')
self.logger.info('creating metadata directory')
os.mkdir('meta')
with util.open_file('COIN', create=True) as f:
f.write('ElectrumX databases and metadata for {} {}'

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.report_host.encode())
double_sha256(env.identity.host.encode())
[:5].hex())
self.peer_regexp = re.compile('({}[^!]*)!'.format(self.prefix))