work on sockets
This commit is contained in:
parent
70e2ccbc0a
commit
ad3d7940f5
5 changed files with 52 additions and 27 deletions
|
@ -271,8 +271,12 @@ class Onionr:
|
|||
'''
|
||||
|
||||
def startChat(self):
|
||||
data = json.dumps({'peer': sys.argv[2], 'reason': 'chat'})
|
||||
self.onionrCore.daemonQueueAdd('startSocket', data)
|
||||
try:
|
||||
data = json.dumps({'peer': sys.argv[2], 'reason': 'chat'})
|
||||
except IndexError:
|
||||
logger.error('Must specify peer to chat with.')
|
||||
else:
|
||||
self.onionrCore.daemonQueueAdd('startSocket', data)
|
||||
|
||||
def getCommands(self):
|
||||
return self.cmds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue