From 408c59e2f85cafc5a851c10dcc082a2ca1e8f2e7 Mon Sep 17 00:00:00 2001 From: Holger Paradies Date: Sat, 4 Jan 2014 14:22:44 +0100 Subject: enable new weechat config for old installs --- kanotix-irc/kanotix-irc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kanotix-irc/kanotix-irc b/kanotix-irc/kanotix-irc index 7545c6a..d359082 100755 --- a/kanotix-irc/kanotix-irc +++ b/kanotix-irc/kanotix-irc @@ -447,8 +447,12 @@ if [ -z "$DISPLAY" ]; then exit "$?" fi - [ -x "$WEECHAT" ] && \ - exec $WEECHAT "ircs://$NICK@$FLL_IRC_SERVER:$FLL_IRC_PORT/$FLL_IRC_CHANNEL" + if [ -x "$WEECHAT" ]; then + [ -d ~/.weechat ] || cp -r /etc/skel/.weechat ~ + grep -qs "ssl_dhkey_size = 2048" ~/.weechat/irc.conf && sed -i 's/\(ssl_dhkey_size =\).*/\1 1024/' ~/.weechat/irc.conf + [ -r ~/.weechat/irc.conf ] || cp /etc/skel/.weechat/irc.conf ~/.weechat + exec $WEECHAT "ircs://$NICK@$FLL_IRC_SERVER:$FLL_IRC_PORT/$FLL_IRC_CHANNEL" + fi [ -x "$BITCHX" ] && \ exec "$BITCHX" -c "$FLL_IRC_CHANNEL" -n "$NICK" -- cgit v1.0