summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"