You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
482 B
Python
7 lines
482 B
Python
2 years ago
|
def deliverRelayCommands(num, relayCommands, user=None, stage2=None):
|
||
|
keyFN = main.certPath + main.config["Key"]
|
||
|
certFN = main.certPath + main.config["Certificate"]
|
||
|
contextFactory = DefaultOpenSSLContextFactory(keyFN.encode("utf-8", "replace"), certFN.encode("utf-8", "replace"))
|
||
|
bot = IRCBotFactory(net=None, num=num, relayCommands=relayCommands, user=user, stage2=stage2)
|
||
|
host, port = getRelay(num)
|
||
|
rct = reactor.connectSSL(host, port, bot, contextFactory)
|