tls by default on ircrc

This commit is contained in:
xfnw 2022-06-30 12:36:51 -04:00
parent c97daf119d
commit f6b884259b

View file

@ -2,14 +2,14 @@
rfork ne
server=irc.oftc.net
port=6667
server=irc.libera.chat
port=6697
realname='<nil>'
target=''
netdir=()
nick=$user
pass=()
tls=0
tls=1
serverpass=()
fn sighup {
@ -212,7 +212,7 @@ while (~ $1 -*) {
target=$2
shift
case -T
tls=1
tls=0
case -*
echo 'usage: ircrc [-p port] [-P server password] [-r realname] [-t target] [-n nick] [-T] [server]' >[1=2]
exit 'usage'
@ -222,22 +222,23 @@ while (~ $1 -*) {
if (~ $#* 1) {
switch ($1) {
case bitlbee
server=im.bitlbee.org
case oftc
server=irc.oftc.net
case libera
server=irc.libera.chat
case vulp
server=va.furryplace.eu
case *
server=$1
}
}
title
userpass=`{auth/userpasswd 'server='^$server^' service=irc user='^$nick >[2]/dev/null}
#userpass=`{auth/userpasswd 'server='^$server^' service=irc user='^$nick >[2]/dev/null}
if(~ $#userpass 2) {
nick=$userpass(1)
pass=$userpass(2)
}
p='/n/ircrc'
bind '#|' $p
echo connecting to tcp!$server!$port...