MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / joinChan

Function joinChan

src/bitmessagecli.py:466–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464
465
466def joinChan():
467 global usrPrompt
468 while True:
469 address = userInput("Enter channel address")
470
471 if (address == "c"):
472 usrPrompt = 1
473 print ' '
474 main()
475 elif (validAddress(address)== False):
476 print '\n Invalid. "c" to cancel. Please try again.\n'
477 else:
478 break
479
480 password = userInput("Enter channel name")
481 password = password.encode('base64')
482 try:
483 print api.joinChan(password,address)
484 except:
485 print '\n Connection Error\n'
486 usrPrompt = 0
487 main()
488
489def leaveChan():
490 global usrPrompt

Callers 1

UIFunction · 0.85

Calls 4

userInputFunction · 0.85
validAddressFunction · 0.85
mainFunction · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected