summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2014-01-04 14:22:44 +0100
committerHolger Paradies <retabell@gmx.de>2014-01-04 16:01:05 +0100
commit408c59e2f85cafc5a851c10dcc082a2ca1e8f2e7 (patch)
treeeb57291a52e54fee0e8004d10f3bce4ed3ea5e95
parent500b8e09e799b0a9941dcc33f7286d6d1048aaba (diff)
downloadkanotix-packages-408c59e2f85cafc5a851c10dcc082a2ca1e8f2e7.zip
kanotix-packages-408c59e2f85cafc5a851c10dcc082a2ca1e8f2e7.tar.gz
enable new weechat config for old installs
-rwxr-xr-xkanotix-irc/kanotix-irc8
1 files 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"