Fix if thing

This commit is contained in:
Arinerron 2018-04-18 21:23:31 -07:00
parent 6883133cfb
commit 981b7ca4a6
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
3 changed files with 3 additions and 4 deletions

0
onionr/.onionr-lock Normal file
View File

BIN
onionr/data-encrypted.dat Normal file

Binary file not shown.

View File

@ -71,12 +71,13 @@ class Onionr:
logger.set_file(config.get('log', {'file': {'path': 'data/output.log'}})['file']['path']) logger.set_file(config.get('log', {'file': {'path': 'data/output.log'}})['file']['path'])
logger.set_settings(settings) logger.set_settings(settings)
if config.get('devmode', True): if config.get('devmode', True).lower() == 'true':
self._developmentMode = True self._developmentMode = True
logger.set_level(logger.LEVEL_DEBUG) logger.set_level(logger.LEVEL_DEBUG)
else: else:
self._developmentMode = False self._developmentMode = False
logger.set_level(logger.LEVEL_INFO) logger.set_level(logger.LEVEL_INFO)
print('enabled? ' + str(self._developmentMode))
self.onionrCore = core.Core() self.onionrCore = core.Core()
self.onionrUtils = OnionrUtils(self.onionrCore) self.onionrUtils = OnionrUtils(self.onionrCore)
@ -149,7 +150,6 @@ class Onionr:
'add-msg': self.addMessage, 'add-msg': self.addMessage,
'add-message': self.addMessage, 'add-message': self.addMessage,
'pm': self.sendEncrypt, 'pm': self.sendEncrypt,
'introduce': self.onionrCore.introduceNode,
'getpms': self.getPMs, 'getpms': self.getPMs,
'get-pms': self.getPMs, 'get-pms': self.getPMs,
@ -169,7 +169,6 @@ class Onionr:
self.cmdhelp = { self.cmdhelp = {
'help': 'Displays this Onionr help menu', 'help': 'Displays this Onionr help menu',
'version': 'Displays the Onionr version', 'version': 'Displays the Onionr version',
'introduce': 'Introduce your node to the public Onionr network. (DAEMON MUST BE RUNNING)',
'config': 'Configures something and adds it to the file', 'config': 'Configures something and adds it to the file',
'start': 'Starts the Onionr daemon', 'start': 'Starts the Onionr daemon',
'stop': 'Stops the Onionr daemon', 'stop': 'Stops the Onionr daemon',
@ -180,7 +179,7 @@ class Onionr:
'add-peer': 'Adds a peer (?)', 'add-peer': 'Adds a peer (?)',
'list-peers': 'Displays a list of peers', 'list-peers': 'Displays a list of peers',
'add-msg': 'Broadcasts a message to the Onionr network', 'add-msg': 'Broadcasts a message to the Onionr network',
'pm': 'Sends a private message to a user as an Onionr block', 'pm': 'Adds a private message to block',
'get-pms': 'Shows private messages sent to you', 'get-pms': 'Shows private messages sent to you',
'gui': 'Opens a graphical interface for Onionr' 'gui': 'Opens a graphical interface for Onionr'
} }