()
| 464 | |
| 465 | |
| 466 | def 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 | |
| 489 | def leaveChan(): |
| 490 | global usrPrompt |
no test coverage detected