From 756b7ccc0056c710031b4dcc02bead1cf93890c1 Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 6 Jul 2023 14:50:07 +0000 Subject: [PATCH] Update 'roles/shell/files/chat' --- roles/shell/files/chat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/shell/files/chat b/roles/shell/files/chat index e263fbc..1ceee3c 100755 --- a/roles/shell/files/chat +++ b/roles/shell/files/chat @@ -1,3 +1,7 @@ #!/bin/bash -weechat-curses -r "/set irc.look.temporary_servers on; /connect irc://`whoami`@irc.tilde.chat:6697/#thunix,#meta -ssl" +if [[ -f ~/.weechat/irc.conf ]]; then + exec weechat +else + exec weechat-curses -r "/server add newnet localhost -autoconnect; /set irc.server.newnet.autojoin \"#meta,#thunix,#tildetel\"; /connect newnet" +fi \ No newline at end of file