diff options
author | Holger Paradies <retabell@gmx.de> | 2013-12-24 10:19:14 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2014-01-04 16:01:05 +0100 |
commit | d48660411e26c18fb76fa0c83a89f8e2710fe926 (patch) | |
tree | 879045ef9ce678a04c5ca96fac174015f183866c /kanotix-irc/kanotix-irc | |
parent | 0e66b833868a6a8530045db9002c1845f242e4ac (diff) | |
download | kanotix-packages-d48660411e26c18fb76fa0c83a89f8e2710fe926.zip kanotix-packages-d48660411e26c18fb76fa0c83a89f8e2710fe926.tar.gz |
kanotix-irc-1.0.1
Diffstat (limited to 'kanotix-irc/kanotix-irc')
-rwxr-xr-x | kanotix-irc/kanotix-irc | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/kanotix-irc/kanotix-irc b/kanotix-irc/kanotix-irc index a3afd32..cd23d0c 100755 --- a/kanotix-irc/kanotix-irc +++ b/kanotix-irc/kanotix-irc @@ -329,6 +329,28 @@ kanotix_xchat() { XCHATCFG="$($MKTEMP -dp /tmp/ .xchat2-XXXXXXXXXX)" + if [ -e ~/.xchat2/ ]; then + cp -r ~/.xchat2/* "$XCHATCFG/" + # delete improper lines + sed -i '/gui_join_dialog/d; + /gui_slist_skip/d; + /gui_slist_select/d; + /irc_nick1/d; + /irc_nick2/d; + /irc_nick3/d; + /irc_user_name/d; + /irc_real_name/d' "$XCHATCFG/xchat.conf" + fi + cat <<_EOF_ >>"$XCHATCFG/xchat.conf" +gui_join_dialog = 0 +gui_slist_select = 0 +gui_slist_skip = 1 +irc_nick1 = $NICK +irc_nick2 = ${NICK}_ +irc_nick3 = ${NICK}__ +_EOF_ + + cat <<_EOF_ >"$XCHATCFG/servlist_.conf" N=FreeNode J=#kanotix @@ -350,15 +372,6 @@ S=irc.freenode.net/$FLL_IRC_PORT S=irc.freenode.net/+7000 _EOF_ - cat <<_EOF_ >"$XCHATCFG/xchat.conf" -gui_join_dialog = 0 -gui_slist_select = 0 -gui_slist_skip = 1 -irc_nick1 = $NICK -irc_nick2 = ${NICK}_ -irc_nick3 = ${NICK}__ -_EOF_ - cat <<_EOF_ >"$XCHATCFG/commands.conf" NAME cmd CMD exec -o &2 |