@@ -166,16 +166,8 @@ function bareIrcCreateTuiApp(ctx, client) {
|
||||
} else if (cmd === 'disconnect') this.client.quit('Disconnect')
|
||||
else if (cmd === 'reconnect') {
|
||||
try {
|
||||
if (typeof ctx.bareOsTlsConnect === 'function' && this.client.opts) {
|
||||
var spec = this.client.opts
|
||||
var sock =
|
||||
spec.tls === false
|
||||
? ctx.bareOsTelnetConnect(spec.host, spec.port, {})
|
||||
: ctx.bareOsTlsConnect(spec.host, spec.port, {
|
||||
servername: spec.host,
|
||||
rejectUnauthorized: true
|
||||
})
|
||||
this.client.attach(sock)
|
||||
if (this.client.opts) {
|
||||
this.client.attach(bareIrcDial(ctx, this.client.opts))
|
||||
this.status = 'reconnecting\u2026'
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user