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