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