Reformat and fix circular import
parent
3229d9b806
commit
6c7d0d5c45
@ -0,0 +1,7 @@
|
|||||||
|
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)
|
Loading…
Reference in New Issue