mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Compare commits
15 commits
master
...
orphaned/n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
510fa50c07 | ||
|
|
c668e1add0 | ||
|
|
c2505203d0 | ||
|
|
67d343fd3a | ||
|
|
17ecad8285 | ||
|
|
714b0241cb | ||
|
|
a35e5b4f9d | ||
|
|
f153922759 | ||
|
|
d5727e1648 | ||
|
|
9fcd69b9ef | ||
|
|
2e89752708 | ||
|
|
bb276c0b80 | ||
|
|
47419298ef | ||
|
|
3300e07f29 | ||
|
|
0236ee5eaa |
587 changed files with 16214 additions and 34127 deletions
|
|
@ -1,38 +0,0 @@
|
||||||
# IndentPPDirectives: AfterHash
|
|
||||||
# SpaceInParentheses: false
|
|
||||||
AlignAfterOpenBracket: Align
|
|
||||||
AlignConsecutiveAssignments: false
|
|
||||||
AlignConsecutiveDeclarations: false
|
|
||||||
AlignOperands: true
|
|
||||||
AlignTrailingComments: true
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: true
|
|
||||||
AllowShortBlocksOnASingleLine: false
|
|
||||||
AllowShortCaseLabelsOnASingleLine: false
|
|
||||||
AllowShortFunctionsOnASingleLine: Empty
|
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
|
||||||
AllowShortLoopsOnASingleLine: false
|
|
||||||
AlwaysBreakAfterReturnType: None
|
|
||||||
AlwaysBreakBeforeMultilineStrings: false
|
|
||||||
BinPackArguments: true
|
|
||||||
BinPackParameters: true
|
|
||||||
BreakBeforeBinaryOperators: None
|
|
||||||
BreakBeforeBraces: Linux
|
|
||||||
BreakBeforeTernaryOperators: false
|
|
||||||
ColumnLimit: 100
|
|
||||||
IndentCaseLabels: false
|
|
||||||
IndentWidth: 8
|
|
||||||
IndentWrappedFunctionNames: true
|
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
||||||
Language: Cpp
|
|
||||||
Cpp11BracedListStyle: false
|
|
||||||
MaxEmptyLinesToKeep: 1
|
|
||||||
PointerAlignment: Right
|
|
||||||
SortIncludes: false
|
|
||||||
SpaceAfterCStyleCast: true
|
|
||||||
SpaceBeforeAssignmentOperators: true
|
|
||||||
SpaceBeforeParens: ControlStatements
|
|
||||||
SpaceInEmptyParentheses: false
|
|
||||||
SpacesInCStyleCastParentheses: false
|
|
||||||
SpacesInSquareBrackets: false
|
|
||||||
TabWidth: 8
|
|
||||||
UseTab: ForIndentation
|
|
||||||
3
.gitattributes
vendored
3
.gitattributes
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
# On Windows, some Git clients may normalize all text files' line-endings to
|
|
||||||
# CRLF, which causes obscure errors when running shell scripts.
|
|
||||||
*.sh eol=lf
|
|
||||||
127
.github/workflows/abicheck.yml
vendored
127
.github/workflows/abicheck.yml
vendored
|
|
@ -1,127 +0,0 @@
|
||||||
on: [pull_request]
|
|
||||||
name: abicheck
|
|
||||||
env:
|
|
||||||
build_options: -Dbuildtype=debug -Denable-true-color=yes -Dwith-proxy=yes -Dc_args=-DPERL_EUPXS_ALWAYS_EXPORT
|
|
||||||
prefix: /usr/local
|
|
||||||
apt_build_deps: ninja-build libutf8proc-dev libperl-dev libotr5-dev libglib2.0-dev
|
|
||||||
get_pip_build_deps: pip3 install 'setuptools<66'; pip3 install wheel; pip3 install 'meson<0.59.0'
|
|
||||||
getabidef_def: getabidef() { awk '$1=="#define" && $2=="IRSSI_ABI_VERSION" { print $3 }' "$1"/include/irssi/src/common.h; }
|
|
||||||
jobs:
|
|
||||||
build-base-ref:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
base_abi: ${{ steps.out.outputs.base_abi }}
|
|
||||||
steps:
|
|
||||||
- name: set PATH
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update; sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps"
|
|
||||||
- name: checkout base ref
|
|
||||||
uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
path: base.src
|
|
||||||
ref: ${{ github.base_ref }}
|
|
||||||
- name: build base ref
|
|
||||||
run: |
|
|
||||||
meson Build.base base.src $build_options
|
|
||||||
ninja -C Build.base
|
|
||||||
DESTDIR=$PWD/base ninja -C Build.base install
|
|
||||||
- id: out
|
|
||||||
run: |
|
|
||||||
# print versions and abi versions
|
|
||||||
eval "$getabidef_def"
|
|
||||||
base_abi=$(getabidef base$prefix)
|
|
||||||
echo base abi : $base_abi
|
|
||||||
./base$prefix/bin/irssi --version
|
|
||||||
echo base_abi=$base_abi >> $GITHUB_OUTPUT
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: base.inst
|
|
||||||
path: base
|
|
||||||
retention-days: 1
|
|
||||||
build-merge-ref:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
merge_abi: ${{ steps.out.outputs.merge_abi }}
|
|
||||||
steps:
|
|
||||||
- name: set PATH
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update; sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps"
|
|
||||||
- name: checkout merge ref
|
|
||||||
uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
path: merge.src
|
|
||||||
- name: build merge ref
|
|
||||||
run: |
|
|
||||||
meson Build.merge merge.src $build_options
|
|
||||||
ninja -C Build.merge
|
|
||||||
DESTDIR=$PWD/merge ninja -C Build.merge install
|
|
||||||
- id: out
|
|
||||||
run: |
|
|
||||||
# print versions and abi versions
|
|
||||||
eval "$getabidef_def"
|
|
||||||
merge_abi=$(getabidef merge$prefix)
|
|
||||||
echo merge abi : $merge_abi
|
|
||||||
./merge$prefix/bin/irssi --version
|
|
||||||
echo merge_abi=$merge_abi >> $GITHUB_OUTPUT
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: merge.inst
|
|
||||||
path: merge
|
|
||||||
retention-days: 1
|
|
||||||
check-abi-diff:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build-merge-ref
|
|
||||||
- build-base-ref
|
|
||||||
env:
|
|
||||||
base_abi: ${{ needs.build-base-ref.outputs.base_abi }}
|
|
||||||
merge_abi: ${{ needs.build-merge-ref.outputs.merge_abi }}
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update; sudo apt install abigail-tools
|
|
||||||
- name: fetch base build
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: base.inst
|
|
||||||
path: base
|
|
||||||
- name: fetch merge build
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: merge.inst
|
|
||||||
path: merge
|
|
||||||
- run: |
|
|
||||||
# abipkgdiff
|
|
||||||
abipkgdiff -l base merge >abipkgdiff.out && diff_ret=0 || diff_ret=$?
|
|
||||||
echo "diff_ret=$diff_ret" >> $GITHUB_ENV
|
|
||||||
cat abipkgdiff.out
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
path: abipkgdiff.out
|
|
||||||
- run: |
|
|
||||||
# Check if no changes are needed
|
|
||||||
if [ "$diff_ret" -ne 0 ]; then
|
|
||||||
if [ "$base_abi" -lt "$merge_abi" ]; then
|
|
||||||
echo "::warning ::abigail found changes and ABI changed from $base_abi to $merge_abi"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "::error ::Looks like the ABI changed but the IRSSI_ABI_VERSION did not"
|
|
||||||
exit $diff_ret
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ "$base_abi" -ne "$merge_abi" ]; then
|
|
||||||
echo "::error ::abigail found no changes yet the IRSSI_ABI_VERSION changed. Is this correct?"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
: "No changes detected and IRSSI_ABI_VERSION untouched"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
180
.github/workflows/check.yml
vendored
180
.github/workflows/check.yml
vendored
|
|
@ -1,180 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
name: Check Irssi
|
|
||||||
env:
|
|
||||||
apt_build_deps: ninja-build libutf8proc-dev libperl-dev libotr5-dev libglib2.0-dev
|
|
||||||
get_pip_build_deps_meson: pip3 install setuptools${setuptools_ver}; pip3 install wheel; pip3 install meson${meson_ver}
|
|
||||||
build_options_meson: -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes -Dwith-otr=yes
|
|
||||||
prefix: ~/irssi-build
|
|
||||||
jobs:
|
|
||||||
dist:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
meson_ver: <0.63.0
|
|
||||||
setuptools_ver: <66
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps_meson"
|
|
||||||
patch ~/.local/lib/python3.12/site-packages/pkg_resources/__init__.py <<- PATCH
|
|
||||||
--- __init__.py 2024-12-16 20:37:46.733230351 +0100
|
|
||||||
+++ __init__.py 2024-12-16 20:38:42.479554540 +0100
|
|
||||||
@@ -2188,7 +2188,8 @@ def resolve_egg_link(path):
|
|
||||||
return next(dist_groups, ())
|
|
||||||
|
|
||||||
|
|
||||||
-register_finder(pkgutil.ImpImporter, find_on_path)
|
|
||||||
+if hasattr(pkgutil, 'ImpImporter'):
|
|
||||||
+ register_finder(pkgutil.ImpImporter, find_on_path)
|
|
||||||
|
|
||||||
if hasattr(importlib_machinery, 'FileFinder'):
|
|
||||||
register_finder(importlib_machinery.FileFinder, find_on_path)
|
|
||||||
@@ -2345,7 +2346,8 @@ def file_ns_handler(importer, path_item,
|
|
||||||
return subpath
|
|
||||||
|
|
||||||
|
|
||||||
-register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
|
||||||
+if hasattr(pkgutil, 'ImpImporter'):
|
|
||||||
+ register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
|
||||||
register_namespace_handler(zipimport.zipimporter, file_ns_handler)
|
|
||||||
|
|
||||||
if hasattr(importlib_machinery, 'FileFinder'):
|
|
||||||
PATCH
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
- name: make dist
|
|
||||||
run: |
|
|
||||||
./utils/make-dist.sh
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
path: irssi-*.tar.gz
|
|
||||||
retention-days: 1
|
|
||||||
install:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
env:
|
|
||||||
CC: ${{ matrix.compiler }}
|
|
||||||
needs: dist
|
|
||||||
continue-on-error: ${{ contains(matrix.flags, 'FAILURE-OK') }}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-22.04, ubuntu-latest]
|
|
||||||
compiler: [clang, gcc]
|
|
||||||
flags: [regular]
|
|
||||||
setuptools_ver: [<66]
|
|
||||||
include:
|
|
||||||
- os: ubuntu-22.04
|
|
||||||
meson_ver: ==0.53.2
|
|
||||||
setuptools_ver: <51
|
|
||||||
- os: ubuntu-latest
|
|
||||||
meson_ver: <0.63.0
|
|
||||||
- os: ubuntu-latest
|
|
||||||
flags: meson-latest FAILURE-OK
|
|
||||||
steps:
|
|
||||||
- name: fetch dist
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
- name: set PATH
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
- name: prepare required software
|
|
||||||
env:
|
|
||||||
meson_ver: ${{ matrix.meson_ver }}
|
|
||||||
setuptools_ver: ${{ matrix.setuptools_ver }}
|
|
||||||
run: |
|
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps_meson"
|
|
||||||
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
|
|
||||||
- name: unpack archive
|
|
||||||
run: tar xaf artifact/irssi-*.tar.gz
|
|
||||||
- name: build and install with meson
|
|
||||||
run: |
|
|
||||||
# ninja install
|
|
||||||
cd irssi-*/
|
|
||||||
meson Build $build_options_meson --prefix=${prefix/\~/~}
|
|
||||||
ninja -C Build
|
|
||||||
ninja -C Build install
|
|
||||||
- name: run tests with Meson
|
|
||||||
run: |
|
|
||||||
# ninja test
|
|
||||||
cd irssi-*/
|
|
||||||
ninja -C Build test
|
|
||||||
find -name testlog.txt -exec sed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
|
|
||||||
- name: run launch test
|
|
||||||
env:
|
|
||||||
TERM: xterm
|
|
||||||
run: |
|
|
||||||
# automated irssi launch test
|
|
||||||
cd
|
|
||||||
mkdir irssi-test
|
|
||||||
echo 'echo automated irssi launch test
|
|
||||||
^set settings_autosave off
|
|
||||||
^set -clear log_close_string
|
|
||||||
^set -clear log_day_changed
|
|
||||||
^set -clear log_open_string
|
|
||||||
^set log_timestamp *
|
|
||||||
^window log on
|
|
||||||
load irc
|
|
||||||
load dcc
|
|
||||||
load flood
|
|
||||||
load notifylist
|
|
||||||
load perl
|
|
||||||
load otr
|
|
||||||
load proxy
|
|
||||||
^quit' > irssi-test/startup
|
|
||||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
|
||||||
cat irc.log.*
|
|
||||||
annotation-warnings:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
env:
|
|
||||||
CC: clang
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
- name: Setup local annotations
|
|
||||||
uses: irssi-import/actions-irssi/problem-matchers@master
|
|
||||||
- name: set PATH
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
- name: prepare required software
|
|
||||||
env:
|
|
||||||
meson_ver: ${{ matrix.meson_ver }}
|
|
||||||
setuptools_ver: ${{ matrix.setuptools_ver }}
|
|
||||||
run: |
|
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps_meson"
|
|
||||||
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
|
|
||||||
- name: build and install with meson
|
|
||||||
run: |
|
|
||||||
meson Build $build_options_meson --prefix=${prefix/\~/~}
|
|
||||||
ninja -C Build
|
|
||||||
ninja -C Build install >/dev/null
|
|
||||||
- name: run launch test
|
|
||||||
env:
|
|
||||||
TERM: xterm
|
|
||||||
run: |
|
|
||||||
# automated irssi launch test
|
|
||||||
cd
|
|
||||||
mkdir irssi-test
|
|
||||||
echo 'echo automated irssi launch test
|
|
||||||
^set settings_autosave off
|
|
||||||
^set -clear log_close_string
|
|
||||||
^set -clear log_day_changed
|
|
||||||
^set -clear log_open_string
|
|
||||||
^set log_timestamp *
|
|
||||||
^window log on
|
|
||||||
load irc
|
|
||||||
load dcc
|
|
||||||
load flood
|
|
||||||
load notifylist
|
|
||||||
load perl
|
|
||||||
load otr
|
|
||||||
load proxy
|
|
||||||
^quit' > irssi-test/startup
|
|
||||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
|
||||||
cat irc.log.*
|
|
||||||
51
.github/workflows/cifuzz.yml
vendored
51
.github/workflows/cifuzz.yml
vendored
|
|
@ -1,51 +0,0 @@
|
||||||
name: CIFuzz
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'src/core/**/*.c'
|
|
||||||
- 'src/fe-common/core/**/*.c'
|
|
||||||
- 'src/fe-text/gui-*.c'
|
|
||||||
- 'src/irc/**/*.c'
|
|
||||||
- 'src/fe-common/irc/**/*.c'
|
|
||||||
- 'src/lib-config/**/*.c'
|
|
||||||
- 'src/fe-fuzz/**/*.c'
|
|
||||||
- 'tests/**/*.c'
|
|
||||||
- '.github/workflows/cifuzz.yml'
|
|
||||||
jobs:
|
|
||||||
Fuzzing:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sanitizer: [address, undefined, memory]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
path: irssi
|
|
||||||
- name: Docker build build_fuzzers container
|
|
||||||
run: |
|
|
||||||
# google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
||||||
docker build -t build_fuzzers:actions -f "/home/runner/work/_actions/google/oss-fuzz/master/infra/build_fuzzers.Dockerfile" "/home/runner/work/_actions/google/oss-fuzz/master/infra"
|
|
||||||
- name: Build Fuzzers (${{ matrix.sanitizer }})
|
|
||||||
id: build
|
|
||||||
env:
|
|
||||||
OSS_FUZZ_PROJECT_NAME: 'irssi'
|
|
||||||
DRY_RUN: false
|
|
||||||
SANITIZER: ${{ matrix.sanitizer }}
|
|
||||||
PROJECT_SRC_PATH: /github/workspace/irssi
|
|
||||||
REPOSITORY: 'irssi'
|
|
||||||
run: |
|
|
||||||
docker run --workdir /github/workspace --rm -e OSS_FUZZ_PROJECT_NAME -e DRY_RUN -e SANITIZER -e PROJECT_SRC_PATH -e REPOSITORY -e WORKSPACE=/github/workspace -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "$GITHUB_WORKSPACE":"/github/workspace" build_fuzzers:actions
|
|
||||||
- name: Run Fuzzers (${{ matrix.sanitizer }})
|
|
||||||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
||||||
with:
|
|
||||||
oss-fuzz-project-name: 'irssi'
|
|
||||||
fuzz-seconds: 600
|
|
||||||
dry-run: false
|
|
||||||
sanitizer: ${{ matrix.sanitizer }}
|
|
||||||
- name: Upload Crash
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
if: failure() && steps.build.outcome == 'success'
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.sanitizer }}-artifacts
|
|
||||||
path: ./out/artifacts
|
|
||||||
29
.github/workflows/clangformat.yml
vendored
29
.github/workflows/clangformat.yml
vendored
|
|
@ -1,29 +0,0 @@
|
||||||
on: [pull_request]
|
|
||||||
name: clang-format
|
|
||||||
jobs:
|
|
||||||
check-clang-format:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: install clang-format
|
|
||||||
run: sudo apt install clang-format-14
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
- name: fetch target ref
|
|
||||||
run:
|
|
||||||
|
|
|
||||||
refs=($(git log -1 --format=%s))
|
|
||||||
git fetch --depth=1 origin "${refs[3]}"
|
|
||||||
- name: configure clang-format
|
|
||||||
run:
|
|
||||||
|
|
|
||||||
git config clangformat.binary $PWD/utils/clang-format-xs/clang-format-xs
|
|
||||||
git config clangformat.extensions c,h,xs
|
|
||||||
- name: run git-clang-format and Check if no changes are needed
|
|
||||||
run:
|
|
||||||
|
|
|
||||||
CLANG_FORMAT=clang-format-14 git-clang-format-14 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
|
|
||||||
cmp -s <(echo no modified files to format) git-clang-format.diff || cmp -s <(echo -n) git-clang-format.diff
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: git-clang-format.diff
|
|
||||||
path: git-clang-format.diff
|
|
||||||
32
.github/workflows/muon-fmt.yml
vendored
32
.github/workflows/muon-fmt.yml
vendored
|
|
@ -1,32 +0,0 @@
|
||||||
name: Format meson files
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
muon-meson-fmt:
|
|
||||||
name: Format
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
# Build from source because Ubuntu 24.04 apt only has muon 0.2.0.
|
|
||||||
# Newer muons seem to format differently.
|
|
||||||
- name: Build muon from source
|
|
||||||
run: |
|
|
||||||
git clone --depth 1 --branch 0.5.0 https://github.com/muon-build/muon /tmp/muon
|
|
||||||
cd /tmp/muon
|
|
||||||
./bootstrap.sh build
|
|
||||||
build/muon-bootstrap setup build
|
|
||||||
build/muon-bootstrap -C build samu
|
|
||||||
sudo build/muon -C build install
|
|
||||||
|
|
||||||
- name: Run muon fmt
|
|
||||||
run: |
|
|
||||||
find . -name meson.build -print0 | xargs -0 muon fmt -c .muon_fmt.ini -i
|
|
||||||
git diff --exit-code
|
|
||||||
104
.github/workflows/solarisvm.yml
vendored
104
.github/workflows/solarisvm.yml
vendored
|
|
@ -1,104 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
name: Check Irssi on Solaris
|
|
||||||
env:
|
|
||||||
get_pip_build_deps_meson: pip3 install setuptools${setuptools_ver}; pip3 install wheel
|
|
||||||
prefix: ~/irssi-build
|
|
||||||
jobs:
|
|
||||||
dist:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
setuptools_ver: <66
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
|
||||||
eval "$get_pip_build_deps_meson"
|
|
||||||
patch ~/.local/lib/python3.12/site-packages/pkg_resources/__init__.py <<- PATCH
|
|
||||||
--- __init__.py 2024-12-16 20:37:46.733230351 +0100
|
|
||||||
+++ __init__.py 2024-12-16 20:38:42.479554540 +0100
|
|
||||||
@@ -2188,7 +2188,8 @@ def resolve_egg_link(path):
|
|
||||||
return next(dist_groups, ())
|
|
||||||
|
|
||||||
|
|
||||||
-register_finder(pkgutil.ImpImporter, find_on_path)
|
|
||||||
+if hasattr(pkgutil, 'ImpImporter'):
|
|
||||||
+ register_finder(pkgutil.ImpImporter, find_on_path)
|
|
||||||
|
|
||||||
if hasattr(importlib_machinery, 'FileFinder'):
|
|
||||||
register_finder(importlib_machinery.FileFinder, find_on_path)
|
|
||||||
@@ -2345,7 +2346,8 @@ def file_ns_handler(importer, path_item,
|
|
||||||
return subpath
|
|
||||||
|
|
||||||
|
|
||||||
-register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
|
||||||
+if hasattr(pkgutil, 'ImpImporter'):
|
|
||||||
+ register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
|
||||||
register_namespace_handler(zipimport.zipimporter, file_ns_handler)
|
|
||||||
|
|
||||||
if hasattr(importlib_machinery, 'FileFinder'):
|
|
||||||
PATCH
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
- name: make dist
|
|
||||||
run: |
|
|
||||||
./utils/make-dist.sh
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
path: irssi-*.tar.gz
|
|
||||||
retention-days: 1
|
|
||||||
install:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: dist
|
|
||||||
steps:
|
|
||||||
- name: fetch dist
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
- name: Test in Solaris
|
|
||||||
uses: vmactions/solaris-vm@v1
|
|
||||||
with:
|
|
||||||
usesh: true
|
|
||||||
sync: rsync
|
|
||||||
release: "11.4-gcc"
|
|
||||||
prepare: |
|
|
||||||
pkg update --accept || echo 1:$?
|
|
||||||
pkg install meson || echo 2:$?
|
|
||||||
pkgutil -y -i curl || echo 3:$?
|
|
||||||
pkgutil -y -i gtar || echo 4:$?
|
|
||||||
pkgutil -y -i findutils || echo 5:$?
|
|
||||||
run: |
|
|
||||||
set -ex
|
|
||||||
export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
|
|
||||||
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
|
|
||||||
gtar xzf artifact/irssi-*.tar.gz
|
|
||||||
# ninja install
|
|
||||||
cd irssi-*/
|
|
||||||
meson Build -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes --prefix=$HOME/irssi-build
|
|
||||||
ninja -C Build
|
|
||||||
ninja -C Build install
|
|
||||||
# ninja test
|
|
||||||
ninja -C Build test
|
|
||||||
gfind -name testlog.txt -exec gsed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
|
|
||||||
export TERM=xterm
|
|
||||||
# automated irssi launch test
|
|
||||||
cd
|
|
||||||
mkdir irssi-test
|
|
||||||
echo 'echo automated irssi launch test
|
|
||||||
^set settings_autosave off
|
|
||||||
^set -clear log_close_string
|
|
||||||
^set -clear log_day_changed
|
|
||||||
^set -clear log_open_string
|
|
||||||
^set log_timestamp *
|
|
||||||
^window log on
|
|
||||||
load irc
|
|
||||||
load dcc
|
|
||||||
load flood
|
|
||||||
load notifylist
|
|
||||||
load perl
|
|
||||||
load otr
|
|
||||||
load proxy
|
|
||||||
^quit' > irssi-test/startup
|
|
||||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
|
||||||
cat irc.log.*
|
|
||||||
79
.github/workflows/termuxpkg.yml
vendored
79
.github/workflows/termuxpkg.yml
vendored
|
|
@ -1,79 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
name: Build Irssi Termux package
|
|
||||||
jobs:
|
|
||||||
termux-package:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout termux-packages
|
|
||||||
uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
repository: termux/termux-packages
|
|
||||||
- name: checkout irssi
|
|
||||||
uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
path: src.irssi.git
|
|
||||||
- name: download termux docker container
|
|
||||||
uses: docker://termux/package-builder:latest
|
|
||||||
- name: create irssi build receipe
|
|
||||||
run: |
|
|
||||||
mkdir packages/irssi-an
|
|
||||||
cat << 'BUILD_SH' > packages/irssi-an/build.sh
|
|
||||||
TERMUX_PKG_HOMEPAGE=https://irssi.org/
|
|
||||||
TERMUX_PKG_DESCRIPTION="Terminal based IRC client"
|
|
||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
||||||
TERMUX_PKG_MAINTAINER="@irssi"
|
|
||||||
TERMUX_PKG_VERSION=@VERSION@
|
|
||||||
TERMUX_PKG_REVISION=@REVISION@
|
|
||||||
TERMUX_PKG_SRCURL=git+file:///home/builder/termux-packages/src.irssi.git
|
|
||||||
TERMUX_PKG_AUTO_UPDATE=true
|
|
||||||
TERMUX_PKG_DEPENDS="glib, libandroid-glob, libiconv, libotr, ncurses, openssl, perl, utf8proc"
|
|
||||||
TERMUX_PKG_BREAKS="irssi"
|
|
||||||
TERMUX_PKG_REPLACES="irssi"
|
|
||||||
TERMUX_MESON_PERL_CROSS_FILE=$TERMUX_PKG_TMPDIR/meson-perl-cross-$TERMUX_ARCH.txt
|
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
||||||
-Dfhs-prefix=$TERMUX_PREFIX
|
|
||||||
--cross-file $TERMUX_MESON_PERL_CROSS_FILE
|
|
||||||
"
|
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
|
||||||
LDFLAGS+=" -landroid-glob"
|
|
||||||
|
|
||||||
# Make build log less noisy.
|
|
||||||
CFLAGS+=" -Wno-compound-token-split-by-macro"
|
|
||||||
|
|
||||||
local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
|
|
||||||
|
|
||||||
cat << MESON_PERL_CROSS >$TERMUX_MESON_PERL_CROSS_FILE
|
|
||||||
[properties]
|
|
||||||
perl_version = '$perl_version'
|
|
||||||
perl_ccopts = ['-I$TERMUX_PREFIX/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-I$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE']
|
|
||||||
perl_ldopts = ['-Wl,-E', '-I$TERMUX_PREFIX/include', '-L$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE', '-lperl', '-lm', '-ldl']
|
|
||||||
perl_archname = '${TERMUX_ARCH}-android'
|
|
||||||
perl_installsitearch = '$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android'
|
|
||||||
perl_installvendorarch = ''
|
|
||||||
perl_inc = ['$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android', '$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version', '$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android', '$TERMUX_PREFIX/lib/perl5/$perl_version']
|
|
||||||
MESON_PERL_CROSS
|
|
||||||
}
|
|
||||||
|
|
||||||
BUILD_SH
|
|
||||||
version=$(awk '/^v/ { $0=$1; gsub(/^v/,""); gsub(/-head/,"dev"); gsub(/-/,""); print; exit }' src.irssi.git/NEWS)
|
|
||||||
version=$version+g$(git -C src.irssi.git rev-parse --short HEAD)
|
|
||||||
sed -i \
|
|
||||||
-e "s:@VERSION@:$version:" \
|
|
||||||
-e "s:@REVISION@:$GITHUB_RUN_NUMBER:" \
|
|
||||||
packages/irssi-an/build.sh
|
|
||||||
git -C src.irssi.git tag v$version
|
|
||||||
- name: prepare output folder
|
|
||||||
run: |
|
|
||||||
install -m a+rwx -d output
|
|
||||||
- name: build irssi package
|
|
||||||
run: |
|
|
||||||
sudo ./scripts/run-docker.sh ./build-package.sh -I irssi-an
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: irssi-termux-pkg
|
|
||||||
path: output/irssi-an*.deb
|
|
||||||
20
.github/workflows/trigger-pages.yml
vendored
20
.github/workflows/trigger-pages.yml
vendored
|
|
@ -1,20 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
rebuild-pages:
|
|
||||||
if: github.repository == 'irssi/irssi'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v6
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.PAT_TOKEN }}
|
|
||||||
script: |
|
|
||||||
await github.rest.actions.createWorkflowDispatch({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: 'irssi.github.io',
|
|
||||||
workflow_id: 'pages.yml',
|
|
||||||
ref: 'main'
|
|
||||||
})
|
|
||||||
75
.github/workflows/voiddocker.yml
vendored
75
.github/workflows/voiddocker.yml
vendored
|
|
@ -1,75 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
name: Check Irssi on Void Linux glibc
|
|
||||||
jobs:
|
|
||||||
dist:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: ghcr.io/void-linux/void-glibc:latest
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
xbps-install -Syu xbps || :
|
|
||||||
xbps-install -Syu
|
|
||||||
xbps-install -Sy git findutils python3-setuptools tar xz gzip
|
|
||||||
- uses: actions/checkout@main
|
|
||||||
- name: make dist
|
|
||||||
run: |
|
|
||||||
git config --global --add safe.directory /__w/irssi/irssi
|
|
||||||
./utils/make-dist.sh
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
path: irssi-*.tar.gz
|
|
||||||
retention-days: 1
|
|
||||||
install:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: ghcr.io/void-linux/void-glibc:latest
|
|
||||||
needs: dist
|
|
||||||
steps:
|
|
||||||
- name: prepare required software
|
|
||||||
run: |
|
|
||||||
xbps-install -Syu xbps || :
|
|
||||||
xbps-install -Syu
|
|
||||||
xbps-install -Sy meson base-devel libglib-devel libutf8proc-devel ncurses-devel ncurses-base openssl-devel libotr-devel libgcrypt-devel tar findutils curl
|
|
||||||
- name: fetch dist
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
- name: Setup local annotations
|
|
||||||
uses: irssi-import/actions-irssi/problem-matchers@master
|
|
||||||
- name: Test on Void Linux glibc
|
|
||||||
run: |
|
|
||||||
set -ex
|
|
||||||
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
|
|
||||||
tar xzf artifact/irssi-*.tar.gz
|
|
||||||
# ninja install
|
|
||||||
cd irssi-*/
|
|
||||||
meson Build -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes --prefix=$HOME/irssi-build --buildtype debugoptimized
|
|
||||||
ninja -C Build
|
|
||||||
ninja -C Build install
|
|
||||||
# ninja test
|
|
||||||
ninja -C Build test
|
|
||||||
find -name testlog.txt -exec sed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
|
|
||||||
export TERM=xterm
|
|
||||||
# automated irssi launch test
|
|
||||||
cd
|
|
||||||
mkdir irssi-test
|
|
||||||
echo 'echo automated irssi launch test
|
|
||||||
^set settings_autosave off
|
|
||||||
^set -clear log_close_string
|
|
||||||
^set -clear log_day_changed
|
|
||||||
^set -clear log_open_string
|
|
||||||
^set log_timestamp *
|
|
||||||
^window log on
|
|
||||||
load irc
|
|
||||||
load dcc
|
|
||||||
load flood
|
|
||||||
load notifylist
|
|
||||||
load perl
|
|
||||||
load otr
|
|
||||||
load proxy
|
|
||||||
^quit' > irssi-test/startup
|
|
||||||
export LC_CTYPE=C.utf8
|
|
||||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
|
||||||
cat irc.log.*
|
|
||||||
40
.gitignore
vendored
40
.gitignore
vendored
|
|
@ -11,6 +11,7 @@ config.status
|
||||||
configure
|
configure
|
||||||
default-config.h
|
default-config.h
|
||||||
default-theme.h
|
default-theme.h
|
||||||
|
faq.txt
|
||||||
irssi-config
|
irssi-config
|
||||||
irssi-config.h
|
irssi-config.h
|
||||||
irssi-config.h.in
|
irssi-config.h.in
|
||||||
|
|
@ -23,18 +24,16 @@ ltversion.m4
|
||||||
lt~obsolete.m4
|
lt~obsolete.m4
|
||||||
pm_to_blib
|
pm_to_blib
|
||||||
stamp-h1
|
stamp-h1
|
||||||
MYMETA.*
|
|
||||||
|
|
||||||
docs/help/Makefile.am
|
docs/help/Makefile.am
|
||||||
docs/help/[a-z]*
|
docs/help/[a-z]*
|
||||||
!docs/help/meson.build
|
|
||||||
!docs/help/in
|
!docs/help/in
|
||||||
docs/help/in/Makefile.am
|
docs/help/in/Makefile.am
|
||||||
|
|
||||||
src/fe-text/irssi
|
src/fe-text/irssi
|
||||||
src/fe-fuzz/irssi-fuzz
|
|
||||||
src/fe-fuzz/irc/core/event-get-params-fuzz
|
src/fe-common/irc/irc-modules.c
|
||||||
src/fe-fuzz/fe-common/core/theme-load-fuzz
|
src/irc/irc.c
|
||||||
|
|
||||||
src/perl/perl-signals-list.h
|
src/perl/perl-signals-list.h
|
||||||
src/perl/irssi-core.pl.h
|
src/perl/irssi-core.pl.h
|
||||||
|
|
@ -46,35 +45,11 @@ src/perl/ui/*.c
|
||||||
src/perl/*/MYMETA.*
|
src/perl/*/MYMETA.*
|
||||||
src/perl/*/Makefile.old
|
src/perl/*/Makefile.old
|
||||||
|
|
||||||
src/fe-fuzz/crash-*
|
|
||||||
src/fe-fuzz/oom-*
|
|
||||||
|
|
||||||
/core
|
|
||||||
/irssi-1.pc
|
|
||||||
/irssi/
|
|
||||||
/tests/fe-common/core/test-formats
|
|
||||||
/tests/fe-common/core/test-formats.log
|
|
||||||
/tests/fe-common/core/test-formats.trs
|
|
||||||
/tests/fe-common/core/test-suite.log
|
|
||||||
/tests/irc/core/core
|
|
||||||
/tests/irc/core/test-channel-events
|
|
||||||
/tests/irc/core/test-channel-events.log
|
|
||||||
/tests/irc/core/test-channel-events.trs
|
|
||||||
/tests/irc/core/test-irc
|
|
||||||
/tests/irc/core/test-irc.log
|
|
||||||
/tests/irc/core/test-irc.trs
|
|
||||||
/tests/irc/core/test-suite.log
|
|
||||||
/tests/irc/flood/test-796
|
|
||||||
/tests/irc/flood/test-796.log
|
|
||||||
/tests/irc/flood/test-796.trs
|
|
||||||
/tests/irc/flood/test-suite.log
|
|
||||||
|
|
||||||
*.a
|
*.a
|
||||||
*.bs
|
*.bs
|
||||||
*.la
|
*.la
|
||||||
*.lo
|
*.lo
|
||||||
*.o
|
*.o
|
||||||
*.swp
|
|
||||||
*~
|
*~
|
||||||
|
|
||||||
*.tar.bz2
|
*.tar.bz2
|
||||||
|
|
@ -82,10 +57,3 @@ src/fe-fuzz/oom-*
|
||||||
|
|
||||||
.deps
|
.deps
|
||||||
.libs
|
.libs
|
||||||
|
|
||||||
Build
|
|
||||||
subprojects/*
|
|
||||||
!subprojects/*.wrap
|
|
||||||
Irssi-Dist
|
|
||||||
setup.cfg
|
|
||||||
*.egg-info
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
# Irssi configuration for muon fmt
|
|
||||||
max_line_len = 108
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
#indent_by = ' '
|
|
||||||
space_array = true
|
|
||||||
kwargs_force_multiline = true
|
|
||||||
wide_colon = true
|
|
||||||
no_single_comma_function = true
|
|
||||||
insert_final_newline = true
|
|
||||||
sort_files = false
|
|
||||||
group_arg_value = true
|
|
||||||
sticky_parens = true
|
|
||||||
continuation_indent = true
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
workflow:
|
|
||||||
steps:
|
|
||||||
- branch_package:
|
|
||||||
source_project: home:ailin_nemui:irssi-git-an
|
|
||||||
source_package: irssi-git-an
|
|
||||||
target_project: home:ailin_nemui:CI
|
|
||||||
- set_flags:
|
|
||||||
flags:
|
|
||||||
- type: publish
|
|
||||||
status: enable
|
|
||||||
project: home:ailin_nemui:CI
|
|
||||||
filters:
|
|
||||||
event: pull_request
|
|
||||||
27
.travis.yml
Normal file
27
.travis.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
language: c
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get build-dep -qq irssi
|
||||||
|
- sudo apt-get install -qq lynx
|
||||||
|
|
||||||
|
script:
|
||||||
|
- ./autogen.sh --with-proxy --with-bot
|
||||||
|
- cat config.log
|
||||||
|
- make
|
||||||
|
- sudo make install
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
irc:
|
||||||
|
channels:
|
||||||
|
- "irc.freenode.net#irssi"
|
||||||
|
template:
|
||||||
|
- "%{repository} (%{commit}: %{author}): %{message}"
|
||||||
|
- "Build details : %{build_url}"
|
||||||
|
on_success: always
|
||||||
|
on_failure: always
|
||||||
|
use_notice: true
|
||||||
|
skip_join: true
|
||||||
26
AUTHORS
26
AUTHORS
|
|
@ -11,9 +11,6 @@ Irssi staff (current maintainers) <staff@irssi.org>:
|
||||||
Jilles Tjoelker (jilles)
|
Jilles Tjoelker (jilles)
|
||||||
Alexander Færøy (ahf)
|
Alexander Færøy (ahf)
|
||||||
Jase Thew (bazerka)
|
Jase Thew (bazerka)
|
||||||
dequis (dx)
|
|
||||||
Ailin Nemui (Nei)
|
|
||||||
Giuseppe (TheLemonMan, lemonboy)
|
|
||||||
|
|
||||||
Former developers:
|
Former developers:
|
||||||
|
|
||||||
|
|
@ -27,8 +24,6 @@ Large feature patches by:
|
||||||
Heikki Orsila : DCC SEND queueing
|
Heikki Orsila : DCC SEND queueing
|
||||||
Mark Trumbull : DCC SERVER
|
Mark Trumbull : DCC SERVER
|
||||||
Francesco Fracassi : Passive DCC
|
Francesco Fracassi : Passive DCC
|
||||||
Uli Meis : OTR support
|
|
||||||
David Goulet : OTR support
|
|
||||||
|
|
||||||
Other patches (grep for "patch" in ChangeLog) by:
|
Other patches (grep for "patch" in ChangeLog) by:
|
||||||
|
|
||||||
|
|
@ -79,25 +74,10 @@ Other patches (grep for "patch" in ChangeLog) by:
|
||||||
Jon Mayo
|
Jon Mayo
|
||||||
Johan Kiviniemi
|
Johan Kiviniemi
|
||||||
JasonX
|
JasonX
|
||||||
Lukas Mai (mauke)
|
Lukas Mai
|
||||||
Ismael Luceno
|
Ismael Luceno
|
||||||
Thomas Karpiniec
|
Thomas Karpiniec
|
||||||
Svante Kvarnström
|
Svante Kvarnström
|
||||||
|
Ailin Nemui (Nei)
|
||||||
Tom Feist (shabble)
|
Tom Feist (shabble)
|
||||||
Sebastian Thorarensen (Sebban)
|
Sebastian Thorarensen
|
||||||
Hans Nielsen
|
|
||||||
Jari Matilainen (vague)
|
|
||||||
Thibault B (isundil)
|
|
||||||
kyak
|
|
||||||
Vesa Pirila (Lohhari)
|
|
||||||
Haw Loeung
|
|
||||||
François Revol (mmuman)
|
|
||||||
blha303
|
|
||||||
Guillaume Brogi (guiniol)
|
|
||||||
Adam-
|
|
||||||
Robert C Jensen
|
|
||||||
Paul Johnson
|
|
||||||
KindOne
|
|
||||||
Fabian Kurz
|
|
||||||
Todd Pratt
|
|
||||||
xavierog
|
|
||||||
|
|
|
||||||
110
INSTALL
110
INSTALL
|
|
@ -2,68 +2,77 @@
|
||||||
Irssi installation instructions
|
Irssi installation instructions
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
To compile Irssi you need:
|
To compile irssi you need:
|
||||||
|
|
||||||
- meson-0.53 build system with ninja-1.8 or greater
|
- glib-2.6 or greater
|
||||||
- pkg-config (or compatible)
|
- pkg-config
|
||||||
- glib-2.32 or greater
|
|
||||||
- openssl (for ssl support)
|
- openssl (for ssl support)
|
||||||
- perl-5.8 or greater (for building, and optionally Perl scripts)
|
- perl-5.6 or greater (for perl support)
|
||||||
(n.b a complete perl is needed, including ExtUtils::Embed and xsubpp)
|
|
||||||
- terminfo or ncurses (for text frontend)
|
|
||||||
- utf8proc (optional, for additional char width calculation)
|
|
||||||
- libgcrypt (for OTR)
|
|
||||||
|
|
||||||
For most people, this should work just fine:
|
For most people, this should work just fine:
|
||||||
|
|
||||||
meson Build
|
./configure
|
||||||
ninja -C Build
|
make
|
||||||
su
|
su
|
||||||
ninja -C Build install
|
make install (not _really_ required except for perl support)
|
||||||
|
|
||||||
meson options
|
|
||||||
|
|
||||||
These options can be given to meson.
|
configure options
|
||||||
|
|
||||||
For a complete list of options, run
|
|
||||||
meson configure
|
|
||||||
|
|
||||||
--prefix
|
--prefix
|
||||||
|
|
||||||
Specifies the path where Irssi will be installed.
|
Specifies the path where irssi will be installed.
|
||||||
YES, you can install Irssi WITHOUT ROOT permissions
|
YES, you can install irssi WITHOUT ROOT permissions
|
||||||
by using --prefix=/home/dir
|
by using --prefix=/home/dir
|
||||||
|
|
||||||
-Dwith-proxy=yes
|
--with-proxy
|
||||||
|
|
||||||
Build the Irssi proxy (see startup-HOWTO).
|
Build the irssi proxy (see startup-HOWTO).
|
||||||
|
|
||||||
-Dwith-perl=[yes|no]
|
--disable-ipv6
|
||||||
|
|
||||||
|
Disable IPv6 support.
|
||||||
|
|
||||||
|
--disable-ssl
|
||||||
|
|
||||||
|
Disable SSL support.
|
||||||
|
|
||||||
|
--with-perl=[yes|no|module]
|
||||||
|
|
||||||
Enable Perl support
|
Enable Perl support
|
||||||
yes enable builtin (default)
|
yes enable builtin (default)
|
||||||
no disable
|
no disable
|
||||||
|
module enable as module
|
||||||
|
|
||||||
-Dwith-perl-lib=[site|vendor|DIR]
|
--with-perl-lib=[site|vendor|DIR]
|
||||||
|
|
||||||
Specify installation dir for Perl libraries
|
Specify installation dir for Perl libraries
|
||||||
site install in dir for site-specific modules (default)
|
site install in dir for site-specific modules (default)
|
||||||
vendor install in dir for vendor-specific modules
|
vendor install in dir for vendor-specific modules
|
||||||
DIR install in DIR
|
DIR install in DIR
|
||||||
|
|
||||||
-Dwith-bot=yes
|
--with-socks
|
||||||
|
|
||||||
|
Build with socks library
|
||||||
|
|
||||||
|
--with-bot
|
||||||
|
|
||||||
Build irssi-bot
|
Build irssi-bot
|
||||||
|
|
||||||
-Dwithout-textui=yes
|
--without-textui
|
||||||
|
|
||||||
Build without text frontend
|
Build without text frontend
|
||||||
|
|
||||||
If anything is in non-standard path, you can just give the paths in
|
If ncurses is installed in a non-standard path you can specify it with
|
||||||
the -Dc_args and -Dc_link_args options variable, eg.:
|
--with-ncurses=/path. If anything else is in non-standard path, you can just
|
||||||
|
give the paths in CPPFLAGS and LIBS environment variable, eg.:
|
||||||
|
|
||||||
meson Build -Dc_args='-I/opt/openssl/include' -Dc_link_args='-L/opt/openssl/lib'
|
CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure
|
||||||
|
|
||||||
|
Irssi doesn't really need curses anymore, by default it uses
|
||||||
|
terminfo/termcap directly. The functions for using terminfo/termcap
|
||||||
|
however are usually only in curses library, some systems use libtermcap
|
||||||
|
as well. If you want to use only curses calls for some reason, use
|
||||||
|
--without-terminfo.
|
||||||
|
|
||||||
|
|
||||||
Perl problems
|
Perl problems
|
||||||
|
|
@ -72,9 +81,17 @@ the -Dc_args and -Dc_link_args options variable, eg.:
|
||||||
Perl support generates most of the problems. There's quite a many
|
Perl support generates most of the problems. There's quite a many
|
||||||
things that can go wrong:
|
things that can go wrong:
|
||||||
|
|
||||||
|
- Compiling fails if you compile irssi with GCC in a system that has
|
||||||
|
perl compiled with some other C compiler. Very common problem with
|
||||||
|
non-Linux/BSD systems. You'll need to edit src/perl/*/Makefile files
|
||||||
|
and remove the parameters that gcc doesn't like. Mostly you'll just
|
||||||
|
need to keep the -I and -D parameters and add -fPIC.
|
||||||
- If there's any weird crashing at startup, you might have older irssi's
|
- If there's any weird crashing at startup, you might have older irssi's
|
||||||
perl libraries installed somewhere, and you should remove those.
|
perl libraries installed somewhere, and you should remove those.
|
||||||
- If meson complains that it doesn't find some perl stuff, you're
|
- Dynamic libraries don't want to work with some systems, so if your
|
||||||
|
system complains about some missing symbol in Irssi.so file, configure
|
||||||
|
irssi with --with-perl-staticlib option (NOT same as --with-perl=static).
|
||||||
|
- If configure complains that it doesn't find some perl stuff, you're
|
||||||
probably missing libperl.so or libperl.a. In debian, you'll need to do
|
probably missing libperl.so or libperl.a. In debian, you'll need to do
|
||||||
apt-get install libperl-dev
|
apt-get install libperl-dev
|
||||||
|
|
||||||
|
|
@ -83,40 +100,23 @@ command. It should print something like:
|
||||||
|
|
||||||
Module Type Submodules
|
Module Type Submodules
|
||||||
...
|
...
|
||||||
perl dynamic fe core
|
perl static core fe
|
||||||
|
|
||||||
|
|
||||||
System specific notes
|
System specific notes
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
Android
|
|
||||||
|
|
||||||
When cross compiling Irssi for Android, you can specify the path of
|
|
||||||
the cross-perl in the cross file.
|
|
||||||
|
|
||||||
You may not have a cross-perl available. In that case, you will have
|
|
||||||
to manually supply the required Perl arguments in the cross file. See
|
|
||||||
the commented properties in the example cross file.
|
|
||||||
|
|
||||||
An example cross file can be found in the docs folder. To use it, you
|
|
||||||
would call:
|
|
||||||
|
|
||||||
meson Build --cross-file cross-android-aarch64.txt \
|
|
||||||
--prefix /data/data/com.termux/files/usr \
|
|
||||||
--libdir lib \
|
|
||||||
-Dfhs-prefix=/data/data/com.termux/files/usr \
|
|
||||||
|
|
||||||
|
|
||||||
Cygwin
|
Cygwin
|
||||||
|
|
||||||
Getting perl scripting to work needs a few things:
|
Getting perl scripting to work needs a few things:
|
||||||
|
|
||||||
- TODO
|
- configure with --with-perl-staticlib
|
||||||
|
|
||||||
|
- libperl.dll is required in linking and running irssi, it's normally
|
||||||
|
located somewhere around /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.dll
|
||||||
|
copy it to eg. /usr/bin/libperl.dll
|
||||||
|
|
||||||
Apple MacOS / Darwin
|
- -DUSEIMPORTLIB is needed to be defined while compiling src/perl directory.
|
||||||
|
It doesn't hurt to be defined everywhere, so configure irssi with:
|
||||||
|
|
||||||
At the time of writing, meson has an open issue with correctly linking
|
CFLAGS='-DUSEIMPORTLIB' ./configure --with-perl-staticlib
|
||||||
libraries on macos.
|
|
||||||
|
|
||||||
See docs/meson-macos-ar.txt for a workaround.
|
|
||||||
|
|
|
||||||
35
MANIFEST.in
35
MANIFEST.in
|
|
@ -1,35 +0,0 @@
|
||||||
global-include meson.build
|
|
||||||
|
|
||||||
recursive-include src *.c *.h meson.build
|
|
||||||
recursive-include src/perl *.c *.h *.xs *.pm *.pl typemap meson.build
|
|
||||||
recursive-include src/fe-fuzz *.c *.h *.txt meson.build
|
|
||||||
recursive-include tests *.c meson.build
|
|
||||||
|
|
||||||
include meson_options.txt
|
|
||||||
|
|
||||||
include subprojects/*.wrap
|
|
||||||
# prune subprojects/*
|
|
||||||
|
|
||||||
include utils/*.pl utils/*.sh
|
|
||||||
exclude utils/make-dist.sh
|
|
||||||
|
|
||||||
include irssi.conf
|
|
||||||
include themes/*.theme
|
|
||||||
include docs/*.1 docs/*.txt docs/*.html
|
|
||||||
include docs/help/in/[a-z]*.in
|
|
||||||
include scripts/*.pl scripts/examples/*.pl
|
|
||||||
include irssi-icon.png
|
|
||||||
|
|
||||||
include NEWS
|
|
||||||
include INSTALL
|
|
||||||
include TODO
|
|
||||||
include ChangeLog
|
|
||||||
|
|
||||||
include .clang-format
|
|
||||||
|
|
||||||
# prune Build
|
|
||||||
# prune dist
|
|
||||||
prune *.egg-info
|
|
||||||
|
|
||||||
# ignore fuzz-support/fuzz.diff
|
|
||||||
# ignore utils/clang-format-xs/*
|
|
||||||
37
Makefile.am
Normal file
37
Makefile.am
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||||
|
|
||||||
|
# create default-config.h
|
||||||
|
BUILT_SOURCES = default-config.h default-theme.h irssi-version.h
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@.PHONY: irssi-version.h
|
||||||
|
|
||||||
|
default-config.h: $(srcdir)/irssi.conf
|
||||||
|
$(srcdir)/file2header.sh $(srcdir)/irssi.conf default_config > default-config.h
|
||||||
|
|
||||||
|
default-theme.h: $(srcdir)/default.theme
|
||||||
|
$(srcdir)/file2header.sh $(srcdir)/default.theme default_theme > default-theme.h
|
||||||
|
|
||||||
|
irssi-version.h:
|
||||||
|
$(srcdir)/irssi-version.sh $(srcdir) | cmp -s - $@ || $(srcdir)/irssi-version.sh $(srcdir) >$@
|
||||||
|
|
||||||
|
SUBDIRS = src docs scripts
|
||||||
|
|
||||||
|
confdir = $(sysconfdir)
|
||||||
|
conf_DATA = irssi.conf
|
||||||
|
|
||||||
|
themedir = $(datadir)/irssi/themes
|
||||||
|
theme_DATA = default.theme colorless.theme
|
||||||
|
|
||||||
|
pkginclude_HEADERS = irssi-config.h irssi-version.h
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
ChangeLog \
|
||||||
|
autogen.sh \
|
||||||
|
README.md \
|
||||||
|
file2header.sh \
|
||||||
|
$(conf_DATA) \
|
||||||
|
$(theme_DATA) \
|
||||||
|
irssi-config.in \
|
||||||
|
irssi-icon.png \
|
||||||
|
irssi-version.sh \
|
||||||
|
syntax.pl
|
||||||
946
NEWS
946
NEWS
|
|
@ -1,939 +1,4 @@
|
||||||
v1.5-head 202x-xx-xx The Irssi team <staff@irssi.org>
|
v0.8.17-head 2014-XX-XX The Irssi team <staff@irssi.org>
|
||||||
|
|
||||||
v1.4.5 2023-10-03 The Irssi team <staff@irssi.org>
|
|
||||||
+ Add workaround for Perl 5.38.0 bug that breaks the Irssi
|
|
||||||
locale and glyph rendering (scripts.irssi.org#857, #1498)
|
|
||||||
- Fix Perl scripts broken by Perl 5.38 (scripts.irssi.org#851,
|
|
||||||
#1474). With input from Leon Timmermans
|
|
||||||
- Document workaround to fix linker errors when building with
|
|
||||||
meson on Apple (#1435, #1492)
|
|
||||||
- Fix meson using wrong filenames on Apple, leading to broken
|
|
||||||
Perl support (#1483, #1493)
|
|
||||||
- Fix /upgrade not accepting `~' (#1460, #1462). By Lukas Mai
|
|
||||||
- Improve compatibility with Perl5-IDEA (#1465, #1467). By
|
|
||||||
Charlie Daffern
|
|
||||||
- Fix logic in how own actions are printed for other protocols
|
|
||||||
(codeberg!5, #1471). By Andrej Kacian
|
|
||||||
- Fix crash on old PowerPC Mac (#1482, #1484)
|
|
||||||
- Fix wrong prototype of library function used in terminal
|
|
||||||
handling (#1495). By Emil Engler
|
|
||||||
- Minor cleanups (#1488, #1497). Includes work by Emil Engler
|
|
||||||
- Minor help and documentation fixes (#1458, #1494, #1477,
|
|
||||||
#1478). Includes work by KindOne
|
|
||||||
|
|
||||||
v1.4.4 2023-03-31 The Irssi team <staff@irssi.org>
|
|
||||||
* Expose location of signals.txt via pkg-config (codeberg!1,
|
|
||||||
#1439, #1446, #1447). By Andrej Kacian
|
|
||||||
+ Levels can now be inverted using `^' prefix in the /WINDOW
|
|
||||||
(HIDE)LEVEL commands (#1428)
|
|
||||||
+ Support receiving monospace (#1370, #1442). By Linus
|
|
||||||
Heckemann
|
|
||||||
- Fix config broken by /WINDOW LOGFILE without parameter
|
|
||||||
(#1392, #1432)
|
|
||||||
- Fix broken /LASTLOG -window switch (#1418, #1424, regression
|
|
||||||
introduced in #1398)
|
|
||||||
- Fix logic in how actions are printed for other protocols
|
|
||||||
(codeberg!3, #1454). By Andrej Kacian
|
|
||||||
- Fix stale special collector use after free (#1456). Reported
|
|
||||||
by ednash
|
|
||||||
- Help and message fixes (#1421, #1429, #1431, #1434, #1438,
|
|
||||||
#1452, #1453, #1455). Includes work by Jimmie Tyrrell and
|
|
||||||
Sven Grewe
|
|
||||||
|
|
||||||
v1.4.3 2022-10-31 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix freeze on Alt+arrows (#1416, #1417)
|
|
||||||
- Fix crash on /upgrade (#1399, #1419)
|
|
||||||
- Fix saving of -disallow_starttls (#1401, #1420)
|
|
||||||
- Fix libnv detection on FreeBSD (freebsd#265397, #1407). By
|
|
||||||
Guido Falsi and Kristof Provost
|
|
||||||
- Minor help and script fixes (#1380, #1393, #1411, #1413,
|
|
||||||
#1414, #1415)
|
|
||||||
|
|
||||||
v1.4.2 2022-07-17 The Irssi team <staff@irssi.org>
|
|
||||||
* Add irssimoduledir to irssi-1.pc in the Meson build (#1383,
|
|
||||||
#1378)
|
|
||||||
- Use -isystem includes, limiting warnings to Irssi
|
|
||||||
code. Fixes compilation with Perl 5.36 (#1381,
|
|
||||||
gentoo#851522, #1384)
|
|
||||||
- Fix missing lines when changing dynamic textbuffer contents
|
|
||||||
(#1382, #1387). Reported by externalserver15
|
|
||||||
- Fix Perl cross compilation with Meson 0.60.0 (#1377)
|
|
||||||
- Fix default channel prefix used for /JOIN to default to `#'
|
|
||||||
(#1385, #1388)
|
|
||||||
- Fix crash in /LASTLOG by getting line texts before printing
|
|
||||||
(#1367, #1398)
|
|
||||||
|
|
||||||
v1.4.1 2022-06-12 The Irssi team <staff@irssi.org>
|
|
||||||
! Note: botti no longer compiles; get in touch if you use it
|
|
||||||
* Format the output of /QUOTE HELP (#1371, an#82). By Val
|
|
||||||
Lorentz. Add /SHELP as default alias (an#83)
|
|
||||||
+ GLib log message filter: /SET glib_log_domains (an#50,
|
|
||||||
an#59). By Andrej Kacian
|
|
||||||
+ An option to clear the cutbuffer:
|
|
||||||
/SET empty_kill_clears_cutbuffer (an#58). By Mikael
|
|
||||||
Magnusson
|
|
||||||
+ Scriptable pastebin (an#60, an#88)
|
|
||||||
+ Configurable actlist separator: /SET actlist_separator
|
|
||||||
(#1364, an#61)
|
|
||||||
- Fix window left/right not skipping visible windows
|
|
||||||
(an#57). By Mikael Magnusson
|
|
||||||
- Fix wrong printf-format on OpenBSD (an#66, an#68). Reported
|
|
||||||
by Aaron Bieber
|
|
||||||
- Fix erroneous output produced by autoload_modules (an#72)
|
|
||||||
- Fix scroll_page_count setting with `.' (#1365, an#76)
|
|
||||||
- Fix memory leak in /IGNORE (#1373, an#84). Found by Jookia
|
|
||||||
- Misc fixes (an#45, an#67, an#70, #1368, an#77)
|
|
||||||
|
|
||||||
- CHANTYPES take precedence over (missing) STATUSMSG in /join
|
|
||||||
(#1358, an#54)
|
|
||||||
- Fix crash in Perl's $view->set_bookmark (freebsd#254237,
|
|
||||||
an#56)
|
|
||||||
|
|
||||||
- Minor help fixes (an#51, an#52)
|
|
||||||
- Fix regression where own channel status was forgotten after
|
|
||||||
/UPGRADE (#1357, an#53)
|
|
||||||
|
|
||||||
* /SET resolve_reverse_lookup setting was removed (#1034,
|
|
||||||
#1135)
|
|
||||||
* Irssi will try to connect on IPv4 if IPv6 connection failed
|
|
||||||
(#1146). By Shivaram Lingamneni
|
|
||||||
|
|
||||||
* The display system now renders formats on the fly (#1079,
|
|
||||||
#1188, #1191, #1192, #1204, #1205, #1209, #1349, #1355,
|
|
||||||
an#13, an#14, an#28, an#29, an#36, an#37, an#49)
|
|
||||||
|
|
||||||
This major change will break scripts that try to modify
|
|
||||||
printed text during "print text" signal (#1189). They need
|
|
||||||
to be ported to modify the text during "print format"
|
|
||||||
instead. It also breaks the usage of using /FORMAT to add
|
|
||||||
different colours to a line. Such usage needs to be ported
|
|
||||||
to using $expando variables instead. Affected scripts
|
|
||||||
include format_identify.pl, friends_peder.pl, nickcolor.pl,
|
|
||||||
nm.pl, people.pl
|
|
||||||
|
|
||||||
The "gui print text finished" and "gui print text after
|
|
||||||
finished" signals gained a TEXT_DEST_REC *parameter in the
|
|
||||||
process.
|
|
||||||
|
|
||||||
A new "gui render line text" signal is available to change
|
|
||||||
the rendering of a line
|
|
||||||
|
|
||||||
* made the $Z expando (time) dynamic (#1087, #1207, #1208)
|
|
||||||
|
|
||||||
This change breaks the usage of /SET timestamp_format to
|
|
||||||
supply a custom displayed time stamp. Affected scripts
|
|
||||||
include binary_time.pl
|
|
||||||
|
|
||||||
* /HILIGHT -priority now affects which hilight rule gets
|
|
||||||
applied (#1228, #1232)
|
|
||||||
* The NAMES list is now hidden by default if there are more
|
|
||||||
than 18 users on the channel (an#7)
|
|
||||||
|
|
||||||
To revert to the previous behaviour
|
|
||||||
|
|
||||||
/SET show_names_on_join_limit -1
|
|
||||||
|
|
||||||
* -tls_verify is now enabled by default (#1170, an#18, #1309,
|
|
||||||
an#23, #1343, #1351)
|
|
||||||
|
|
||||||
This may cause an ugly display of notls_verify in the output
|
|
||||||
of /SERVER LIST, even on plain-text connection, on old
|
|
||||||
configs. Kindly remove the "tls_verify = "no";" entries from
|
|
||||||
your config file manually.
|
|
||||||
|
|
||||||
* Irssi will now attempt STARTTLS if advertised (#1170, #1312,
|
|
||||||
an#19)
|
|
||||||
|
|
||||||
Use -disallow_starttls if you absolutely do not want this
|
|
||||||
|
|
||||||
In order to check for a STARTTLS advertisement, Irssi will
|
|
||||||
now wait for a response (even an error) to CAP LS 302. If
|
|
||||||
your bouncer/server does not want to communicate before
|
|
||||||
receiving USER/PASS at all, use -nocap to disable the CAP
|
|
||||||
check.
|
|
||||||
|
|
||||||
* Channel sync requests (WHO, MODE) are now sent "later" than
|
|
||||||
user commands. This should improve responsiveness to user
|
|
||||||
commands in the autojoin phase (#1300, an#26, an#32, an#33)
|
|
||||||
* Irssi is now using full paths in #include directives and
|
|
||||||
consequently does not add all directories to the include
|
|
||||||
path anymore (#1040)
|
|
||||||
* The Build System was ported to Meson (#1064, #1065, #1068,
|
|
||||||
#1071, #1072, #1073, #1074, #1075, #1084, #1085, #1118, #1166,
|
|
||||||
#1223, #1224, #1245, #1313, #1314, an#31)
|
|
||||||
* Scriptassist was changed to use a YAML database (#1163)
|
|
||||||
|
|
||||||
It will tell you when you need to update your setting
|
|
||||||
|
|
||||||
* /BIND shows all partial matches (#1155)
|
|
||||||
* Cleanup of unused functions (#1017, #1132, #1145, #1182,
|
|
||||||
#1246, #1264)
|
|
||||||
|
|
||||||
Functions removed:
|
|
||||||
|
|
||||||
NET_CALLBACK
|
|
||||||
NET_HOST_CALLBACK
|
|
||||||
RESOLVED_NAME_REC
|
|
||||||
net_gethostbyaddr_nonblock
|
|
||||||
net_connect_nonblock
|
|
||||||
[ SIMPLE_THREAD_REC, simple_init, simple_readpipe ]
|
|
||||||
hash_save_key
|
|
||||||
|
|
||||||
Functions deprecated:
|
|
||||||
|
|
||||||
dec2octal
|
|
||||||
g_timeval_cmp
|
|
||||||
get_timeval_diff
|
|
||||||
|
|
||||||
Function names corrected:
|
|
||||||
|
|
||||||
g_input -> i_input
|
|
||||||
g_istr -> i_istr
|
|
||||||
g_io_channel -> i_io_channel
|
|
||||||
g_hash_free_value -> i_hash_free_value
|
|
||||||
remove g_free_true
|
|
||||||
gslist -> i_slist
|
|
||||||
glog_func -> i_log_func
|
|
||||||
glist -> i_list
|
|
||||||
|
|
||||||
If multi-version compatibility is desired, module authors
|
|
||||||
can find an example of backwards compatible code in
|
|
||||||
cdidier/irssi-xmpp#55
|
|
||||||
|
|
||||||
+ Add MSGLEVEL_HIDDEN to Perl (#1044)
|
|
||||||
+ Add $view->set_hidden_level and $view->remove_lines_by_level
|
|
||||||
to Perl (#1026)
|
|
||||||
+ Add a /SET scrollback_max_age setting (#1022). By Heikki
|
|
||||||
Orsila
|
|
||||||
+ Add /SET actlist_prefer_window_name (#1025)
|
|
||||||
+ Add -window option to /CAT (#1023, #1159)
|
|
||||||
+ Add an option to list specific sections with
|
|
||||||
|
|
||||||
/SET -section lookandfeel
|
|
||||||
|
|
||||||
(#1048)
|
|
||||||
|
|
||||||
+ Add support for IRCv3 CAP LS 302 (#1091)
|
|
||||||
+ Add a new "print noformat" signal that goes together with
|
|
||||||
"print format" (#1088, #1192)
|
|
||||||
+ Add support for IRCv3 extended-join. /SET show_extended_join
|
|
||||||
to enable (#1097, #1107, #1124)
|
|
||||||
|
|
||||||
There are two new /FORMATs, join_extended and
|
|
||||||
join_extended_account, that theme writers need to take into
|
|
||||||
account if desired.
|
|
||||||
|
|
||||||
+ Add support for IRCv3 setname (#1093, #1104, #1254, GL#33)
|
|
||||||
+ Add support for IRCv3 account-notify (#1100, #1098, GL#33,
|
|
||||||
#1105, #1131). Credit to oss-fuzz
|
|
||||||
/SET show_account_notify to enable
|
|
||||||
+ Add support for IRCv3 invite-notify (#1094)
|
|
||||||
+ Add support for receiving IRCv3 message-tags (#576, #1090)
|
|
||||||
+ Add support for sending IRCv3 message-tags (#1092, an#34)
|
|
||||||
+ Enable the znc.in/self-message CAP by default (#1123)
|
|
||||||
+ Add support for IRCv3 away-notify. /SET away_notify_public
|
|
||||||
to enable (#1099, GL#33, #1105)
|
|
||||||
+ Add support for IRCv3 chghost (#1096, GL#33, #1105)
|
|
||||||
|
|
||||||
For servers with broken chghost implementation that fill the
|
|
||||||
status window with host changed messages, one may add "quote
|
|
||||||
cap req -chghost" to the -autosendcmd or, if the host change
|
|
||||||
messages are entirely undesired, "/format -delete
|
|
||||||
host_changed"
|
|
||||||
|
|
||||||
+ Add support for IRCv3 server-time. /SET show_server_time to
|
|
||||||
enable (#1108)
|
|
||||||
+ Add support for logging IRCv3 server-time.
|
|
||||||
/SET log_server_time to disable (#1318, an#16)
|
|
||||||
+ Add IRCv3 features to signals.txt (#1111)
|
|
||||||
|
|
||||||
In particular, "message join" now takes 2 additional
|
|
||||||
arguments, script and module authors must beware of this
|
|
||||||
change.
|
|
||||||
|
|
||||||
+ Show the unignore time in /IGNORE output (#1158, #1161)
|
|
||||||
+ Add /SET quit_on_hup to make the behaviour of SIGHUP
|
|
||||||
configurable (#828, #1169). By Pinguin1234
|
|
||||||
+ Support numeric 489 as ERR_SECUREONLYCHAN (#1193, #1196). By
|
|
||||||
Michael Hansen
|
|
||||||
+ Improve support for building Irssi in Termux-Android with
|
|
||||||
Meson (#1199)
|
|
||||||
+ Add usermode key to Irssi::Irc::Chatnet in Perl (#1288). By
|
|
||||||
Jessica Sophie Porter
|
|
||||||
+ Add format_string_expand and format_string_unexpand
|
|
||||||
functions to Perl (#1286)
|
|
||||||
+ Add ...->format_create_dest(...)->printformat("format",
|
|
||||||
args...) and ...->printformat_module("module", "format",
|
|
||||||
args...) methods to Perl (#1284)
|
|
||||||
|
|
||||||
You can avoid any CORE::GLOBAL::caller hacks using the
|
|
||||||
printformat_module method, especially sind that hack was not
|
|
||||||
safe during signal emissions
|
|
||||||
|
|
||||||
+ Add tracking of user accounts in the channel nicklist using
|
|
||||||
WHOX on join (#1250)
|
|
||||||
+ Add auto-loading of the Perl and otr module from /SET
|
|
||||||
autoload_modules (#1295)
|
|
||||||
+ Add /IGNORE ... NOHILIGHT to ignore some hilights (#1260)
|
|
||||||
+ Do not beep on hidden lines with /SET beep_msg_level
|
|
||||||
... -HIDDEN (#1259)
|
|
||||||
+ Added /CS, /MS, /NS, and /OS aliases to the default config
|
|
||||||
(#1316). By Mathis Beer
|
|
||||||
+ Allow -tls_ca{file,path} '' to unset an argument (#730,
|
|
||||||
#1060, an#30)
|
|
||||||
+ Add a "server outgoing modify" signal to intercept outgoing
|
|
||||||
messages (#1148, #1151, an#15, an#43). Original by
|
|
||||||
JustAnotherArchivist
|
|
||||||
- remove some hard-coded 510 byte assumptions (#1086)
|
|
||||||
- Several fixes for error checks in SSL (#944, #1037, #943,
|
|
||||||
#1036). Reported by Chi Li
|
|
||||||
- Wrong variable tested in mask_match (#902, #1035)
|
|
||||||
- Fix bug where irssi-proxy with `?'-port would not reconnect
|
|
||||||
(#1041)
|
|
||||||
- Allow shrinking of /SET rawlog_lines (#957, #1020). By
|
|
||||||
Marcus "Teschi" Prinz
|
|
||||||
- Fix /WINDOW BALANCE warning (#1054)
|
|
||||||
- fix overflow when first command history entry expires
|
|
||||||
(#1070)
|
|
||||||
- begin modularising IRC module (#1067, #1112, #1113)
|
|
||||||
- fix some memory leaks in /DCC RESUME and settings_add
|
|
||||||
(#1077). By Zero King
|
|
||||||
- fix cut-off text with theme_indent module and /SET
|
|
||||||
indent_always OFF (#1078)
|
|
||||||
- fix the cap_queue order (#1095)
|
|
||||||
- add reference counted strings (#1089)
|
|
||||||
- Fix irc_op_public messages not triggering hilights (#354,
|
|
||||||
#891, #1129). By Dan Collins
|
|
||||||
- Fix /IGNORE not setting the right level in irc_op_public
|
|
||||||
messages (#1280). Credit to oss-fuzz
|
|
||||||
- Fix GTimeVal deprecation (#1141, #1144, #1145, #1350, an#44)
|
|
||||||
|
|
||||||
If multi-version compatibility is desired, module authors
|
|
||||||
can find an example of backwards compatible code in
|
|
||||||
cdidier/irssi-xmpp#53
|
|
||||||
|
|
||||||
- Fix /IGNORE ... MODES NO_ACT not working (#1164)
|
|
||||||
- Deprecated -ssl* options are hidden from tab completion
|
|
||||||
(#1171)
|
|
||||||
- Make /SET actlist_sort a choice type (#1198)
|
|
||||||
- Fix crash from self-unloading script (#1206). By Thomas
|
|
||||||
Stagner
|
|
||||||
- Fix crash during Perl signal emission (#1233, #1234)
|
|
||||||
- Fix a case where empty lines or comments inside channels or
|
|
||||||
servers in the config would confuse Irssi (#1062, #1242,
|
|
||||||
#1243)
|
|
||||||
- Fix reported freezing in DCC GET on slow disks (#159, #1271)
|
|
||||||
- Fix message-tags parsing (#1274, #1275). Credit to oss-fuzz
|
|
||||||
- Fail redirects when receiving numeric 263 (RPL_TRYAGAIN) in
|
|
||||||
response to /WHO (#1283)
|
|
||||||
- Some updates to .gitignore (#1302). By Rene Kita
|
|
||||||
- Fix build on operating systems with X/Open Curses, version 2
|
|
||||||
(#1305, #1308). By Nia Alarie (Regression introduced with
|
|
||||||
#1290, alternative fix for Irssi 1.2.3 no-term.h.patch)
|
|
||||||
- Fix otr module not using g_strndup, e.g. on Solaris 10
|
|
||||||
(#1315). By Claes Nästén
|
|
||||||
- Fix cursor getting stuck for auto completions that changes
|
|
||||||
case (#1176, #1322, an#8). By ffrogman
|
|
||||||
- Restore operation of tag/* in /SET activity_hide_targets
|
|
||||||
(#1337, an#11) nb. the ::all syntax was working in Irssi 1.1
|
|
||||||
and 1.2 (and continues to work)
|
|
||||||
- Fix /SERVER ADD -matrix -network my_matrix_network
|
|
||||||
(an#12). By Andrej Kacian
|
|
||||||
- Fix /SERVER ADD creating duplicated entries in the config
|
|
||||||
file (#1317, an#22, an#41)
|
|
||||||
- Fix critical when SASL user is set and SASL password is
|
|
||||||
empty (#1325, an#21)
|
|
||||||
- Misc fixes (#1106, #1141, #1272, #1297, an#35)
|
|
||||||
- Fuzz fixes (#1116, #1117, #1119, #1125, #1126, an#20)
|
|
||||||
- Build system fixes (#1101, #1102, #1069, #1140, #1181, #1253)
|
|
||||||
- Sync docs and scripts (an#39)
|
|
||||||
- Text and Help updates
|
|
||||||
- add -tls_* options to manual (#1029, #1030). By Jacob
|
|
||||||
V. Rasmussen
|
|
||||||
- missing targets in /MSG (#1032)
|
|
||||||
- wrong parameter in /ECHO (#1024)
|
|
||||||
- Spelling in OTR (#1047). By David Gall
|
|
||||||
- Clarify statusbar priority (#1049). By Marius Gedminas
|
|
||||||
- Document get_irssi_dir in Perl (#1051, #1052). By Alex
|
|
||||||
Shafer
|
|
||||||
- typo in /HILIGHT help (#1081). By DFrostByte
|
|
||||||
- improved clarity of your_nick_owned (#1138). By Mike Quin
|
|
||||||
- Update some URLs to https (#1163)
|
|
||||||
- Add documentation for escaping some characters (#1329,
|
|
||||||
#1330, an#9). By Guntbert Reiter
|
|
||||||
- Fix some typos (#1336, an#10). By Francis Mteo
|
|
||||||
- Document $abiversion and parse_special (an#38). By bw1
|
|
||||||
- Infrastructure updates:
|
|
||||||
- Support for Github Actions (#1039, #1103, #1160, #1212,
|
|
||||||
#1231, #1252, #1261, an#40)
|
|
||||||
- Run clang-format on pull requests (#1172, #1173, #1184,
|
|
||||||
#1230, #1247, #1287)
|
|
||||||
- Run abidiff on pull requests (#1179, #1195)
|
|
||||||
- Test CI-Fuzz (#1279, #1304, an#17)
|
|
||||||
|
|
||||||
v1.2.3 2021-04-11 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix the compilation of utf8proc (#1021)
|
|
||||||
- Fix wrong call to free. By Zero King (#1076)
|
|
||||||
- Fix a colour reset in true colour themes when encountering
|
|
||||||
mIRC colours (#1059)
|
|
||||||
- Fix memory leak on malformed CAP requests (#1120)
|
|
||||||
- Fix an erroneous free of SASL data. Credit to Oss-Fuzz (#1128,
|
|
||||||
#1130)
|
|
||||||
- Re-set the TLS flag when reconnecting (#1027, #1134)
|
|
||||||
- Fix the scrollback getting stuck after /clear (#1115, #1136)
|
|
||||||
- Fix the input of Ctrl+C as the first character (#1153, #1154)
|
|
||||||
- Fix crash on quit during unloading of modules on certain
|
|
||||||
platforms (#1167)
|
|
||||||
- Fix Irssi freezing input after Ctrl+Space on GLib >2.62 (#1180,
|
|
||||||
#1183)
|
|
||||||
- Fix layout of IDCHANs. By Lauri Tirkkonen (#1197)
|
|
||||||
- Fix crash when server got reconnected before it was properly
|
|
||||||
connected (#1210, #1211)
|
|
||||||
- Fix multiple identical active caps (#1249)
|
|
||||||
- Minor help corrections (#1156, #1213, #1214, #1255)
|
|
||||||
- Remove erroneous colour in the colorless theme. Reported and
|
|
||||||
fixed by Nutchanon Wetchasit (#1220, #1221)
|
|
||||||
- Fix invalid bounds calculation when editing the text
|
|
||||||
entry. Found and fixed by Sergey Valentey (#1269)
|
|
||||||
- Fix passing of negative size in buffer writes. Found and
|
|
||||||
fixed by Sergey Valentey (#1270)
|
|
||||||
- Fix Irssi freezing on slow hardware and fast DCC transfers (#159,
|
|
||||||
#1271)
|
|
||||||
- Fix compilation on Solaris (#1291)
|
|
||||||
- Fix null pointer dereference when receiving broken JOIN
|
|
||||||
record. Credit to Oss-Fuzz (#1292)
|
|
||||||
- Fix crash on /connect to some sockets (#1239, #1298)
|
|
||||||
- Fix Irssi rendering on Apple ARM. By Misty De Méo (#1267,
|
|
||||||
#1268, #1290)
|
|
||||||
- Fix crash on /lastlog with broken lines (#1281, #1299)
|
|
||||||
- Fix memory leak when receiving bogus SASL authentication
|
|
||||||
data. Found and fixed by Sergey Valentey (#1293)
|
|
||||||
|
|
||||||
v1.2.2 2019-08-29 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix a use after free issue when receiving IRCv3 CAP
|
|
||||||
information from the server (GL#34, GL!35)
|
|
||||||
- Fix a crash during startup when windows weren't fully
|
|
||||||
initialised yet (#1114, bdo#935813)
|
|
||||||
|
|
||||||
v1.2.1 2019-06-29 The Irssi team <staff@irssi.org>
|
|
||||||
! Contains all changes from 1.1.3
|
|
||||||
- Fix a test on big endian machines (#1014)
|
|
||||||
- Fix the compile time conditionality of wcwidth
|
|
||||||
implementation (#1019, gentoo#677804, #720)
|
|
||||||
- Fix /save no longer working on old Solaris (pre
|
|
||||||
POSIX.1-2008) (#1042, #1043)
|
|
||||||
- Fix regression of #764 where display of 8-bit (legacy
|
|
||||||
encoding) in the input prompt was broken (#1018,
|
|
||||||
#1057). Initial patch by Артём Курашов
|
|
||||||
|
|
||||||
v1.1.3 2019-06-29 The Irssi team <staff@irssi.org>
|
|
||||||
! Contains all changes from 1.0.8
|
|
||||||
- Fix regression of #779 where autolog_ignore_targets would
|
|
||||||
not matching itemless windows anymore (#1012, #1013)
|
|
||||||
|
|
||||||
v1.0.8 2019-06-29 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix a use after free issue when sending the SASL login on
|
|
||||||
(automatic and manual) reconnects (#1055, #1058). Reported
|
|
||||||
by ilbelkyr
|
|
||||||
|
|
||||||
v1.2.0 2019-02-11 The Irssi team <staff@irssi.org>
|
|
||||||
! Contains all changes from 1.1.2
|
|
||||||
* Improved the /STATUSBAR commands (#858)
|
|
||||||
* /SET no longer shows `=' between setting and value (#886)
|
|
||||||
* /CUBES removed from default config (available as script)
|
|
||||||
(#956)
|
|
||||||
* /1 /2 /3 ... removed from default config (available as new
|
|
||||||
setting window_number_commands) (#958)
|
|
||||||
* Always redraw the screen on resize. By David Phillips (#896)
|
|
||||||
* Private notices intended for channels are now displayed on
|
|
||||||
the channel (new setting notice_channel_context) (#959)
|
|
||||||
+ Imported the "Off-the-record" module into Irssi tree (#854,
|
|
||||||
#589, #196, #881)
|
|
||||||
+ Initial support for sideways split windows (#697, #431,
|
|
||||||
#224, #807, FS#310, #947, #955, #989)
|
|
||||||
+ Change the implementation of `wcwidth'. This is used to
|
|
||||||
calculate the width of emojis on your terminal screen (#917,
|
|
||||||
#720)
|
|
||||||
+ Make the wcwidth functions available from Perl (#973):
|
|
||||||
|
|
||||||
string_width(str)
|
|
||||||
string_chars_for_width(str, width)
|
|
||||||
wcwidth(char)
|
|
||||||
|
|
||||||
+ Added completion_keep_word setting (#979)
|
|
||||||
+ Allow activity_hide_targets to hide activity in itemless
|
|
||||||
windows (#967, #997, #1001, #1003)
|
|
||||||
+ Added activity_hide_visible setting (#990)
|
|
||||||
+ Allow hiding of lines through the /IGNORE system (#901,
|
|
||||||
#900, #892, #890, #884, #937)
|
|
||||||
+ Add window_default_hidelevel setting. By Doug Freed (#941)
|
|
||||||
+ Add activity_hide_window_hidelevel setting, defaulting to ON
|
|
||||||
(#938)
|
|
||||||
+ Add autolog_only_saved_channels setting, to autolog only
|
|
||||||
channels that are in the config (#968)
|
|
||||||
+ Add format support for the input line. By Ben Paxton,
|
|
||||||
originally by Jonas Hurrelmann (#764, FS#621, #1004)
|
|
||||||
|
|
||||||
use Irssi::TextUI;
|
|
||||||
gui_input_set_extent(pos, text)
|
|
||||||
gui_input_set_extents(pos, len, left, right)
|
|
||||||
gui_input_clear_extents(pos, len)
|
|
||||||
gui_input_get_extent(pos)
|
|
||||||
gui_input_get_text_and_extents()
|
|
||||||
gui_input_set_text_and_extents(...)
|
|
||||||
|
|
||||||
+ Parsing of IRCv3 CAP 3.2 (#775, #869)
|
|
||||||
+ Show CAP-related events in the user interface (#918, #916,
|
|
||||||
#870, #704)
|
|
||||||
+ Continue using separators when addressing multiple nicks
|
|
||||||
with tab completion. By Manish Goregaokar (#822)
|
|
||||||
+ Bind Shift-tab by default. By Niklas Luokkala (#830, #829)
|
|
||||||
+ Fuzzing more things (#913, #780, #813)
|
|
||||||
- Disconnect SASL properly in case the SASL module got
|
|
||||||
unloaded from server (#931, #629, #618, #616)
|
|
||||||
- Fix backward completion jumping to the first instead of last
|
|
||||||
word (#979)
|
|
||||||
- Improve empty topic handling (#961, #905, #911, #897, #888)
|
|
||||||
- Prevent config truncation when no space left. By dequis and
|
|
||||||
Lukas Waymann (#922, #925, #910, #909, #906, #871, #817)
|
|
||||||
- Also time-out servers in lookup phase (#866, #130)
|
|
||||||
- Fix build with LibreSSL 2.7. By Dorian Harmans (#865)
|
|
||||||
- Fix a crash when appending to a textbuffer without
|
|
||||||
line. Reported by Jari Matilainen (#862)
|
|
||||||
- Fix segfault on sending large messages (#803, #796, #802)
|
|
||||||
- Fix segfault on invalid statusbar config (#993, #994)
|
|
||||||
- Fix random memory writes on restoring queries of foreign
|
|
||||||
protocols (#999, #1000)
|
|
||||||
- Make default keybinds deletable (#859, #507)
|
|
||||||
- Fix freeze when resizing Irssi very small (#946)
|
|
||||||
- Compare channels case-insensitively, avoiding confusions
|
|
||||||
with the config file (#857, #856)
|
|
||||||
- Fix DCC GET on Android. By Martin Staron (#844)
|
|
||||||
- Improve rawlog performance (#957)
|
|
||||||
- Fix nick escaping erroneously escaping quotes (#978, #974,
|
|
||||||
#709)
|
|
||||||
- Protect against theme recursion, improve padding
|
|
||||||
performance, limit alignment padding. Credit to Oss-Fuzz
|
|
||||||
(#835, #851, #850, #846, #848)
|
|
||||||
- Fix recursive loop in replaces (#833, GL#23)
|
|
||||||
- Fix headers for compilation of C modules (#939)
|
|
||||||
- Documentation. By Zero King (#814). (#852)
|
|
||||||
- Sync NEWS, docs, scripts (#849, #855)
|
|
||||||
- Build system (#868, #867, #985, #988)
|
|
||||||
- Fix build on IBM i and AIX. By Calvin Buckley (#975)
|
|
||||||
- Misc fixes (#840, #839, #843, #953, #962). Tests (#806,
|
|
||||||
#875, #905, #964, #1011). Fuzzing (#929).
|
|
||||||
|
|
||||||
v1.1.2 2019-01-09 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix the resetting of window hiddenlevel (#861)
|
|
||||||
- Fix clearing of hidelevel in layout (#951)
|
|
||||||
- Fix accessing unallocated text when checking entry position
|
|
||||||
(#928, #930)
|
|
||||||
- Fix uninitialised memory on empty lines (#873, GL#31, #878,
|
|
||||||
#877, #907, #914)
|
|
||||||
- Fix use-after-free on expiration of hidden lines (#948)
|
|
||||||
- Fix use-after-frees. By Maya Rashish (#919)
|
|
||||||
- Fix out of bounds access in help display when window width
|
|
||||||
is small (#949)
|
|
||||||
- Fix paste_join_multiline (#970, #971)
|
|
||||||
- Correctly check for errno when displaying SSL errors. By
|
|
||||||
Janik Rabe (#895)
|
|
||||||
- Fix wrong signal emission argument count (#965)
|
|
||||||
- Documentation (#920). Sync NEWS, scripts (#849)
|
|
||||||
- Fix Perl detection on MacOS. By Dominyk Tiller (#927)
|
|
||||||
- Misc fixes. By Jaroslav Škarvada (#981, #982)
|
|
||||||
|
|
||||||
v1.1.1 2018-02-15 The Irssi team <staff@irssi.org>
|
|
||||||
! Contains all changes from 1.0.7
|
|
||||||
- Restore compatibility with OpenSSL < 1.0.2 (#820, #831)
|
|
||||||
- Fix test compilation on some platforms (#815, #816)
|
|
||||||
- Fix portability and backwards compatibility of test runner
|
|
||||||
(#818, #845)
|
|
||||||
|
|
||||||
v1.0.7 2018-02-15 The Irssi team <staff@irssi.org>
|
|
||||||
- Prevent use after free error during the execution of some
|
|
||||||
commands. Found by Joseph Bisch (GL#17, GL!24).
|
|
||||||
- Revert netsplit print optimisation due to crashes (#465, #809,
|
|
||||||
#812, #819, #824, #832).
|
|
||||||
- Fix use after free when SASL messages are received in
|
|
||||||
unexpected order (GL#26, GL!33).
|
|
||||||
- Fix null pointer dereference in the tab completion when an
|
|
||||||
empty nick is joined (GL#24, GL!31).
|
|
||||||
- Fix use after free when entering oper password (GL#22,
|
|
||||||
GL!32).
|
|
||||||
- Fix null pointer dereference when too many windows are
|
|
||||||
opened (GL#27, #837).
|
|
||||||
- Fix out of bounds access in theme strings when the last
|
|
||||||
escape is incomplete. Credit to Oss-Fuzz (#842).
|
|
||||||
- Fix out of bounds write when using negative counts on window
|
|
||||||
resize (GL#25, GL#29, #836).
|
|
||||||
- Minor help correction. By William Jackson (#834).
|
|
||||||
|
|
||||||
v1.1.0 2018-01-15 The Irssi team <staff@irssi.org>
|
|
||||||
! Warning. Irssi is broken and will crash with OpenSSL < 1.0.2
|
|
||||||
due to openssl/openssl commit
|
|
||||||
5b4b9ce976fce09a7a92e2f25b91a1635cb840fe
|
|
||||||
* Colour is now re-set when reaching a comma, matching mIRC
|
|
||||||
behaviour (#742, #740, #790)
|
|
||||||
* Irssi now shows the initial nick and name on first start
|
|
||||||
(#785, #786)
|
|
||||||
* lynx is no longer required to run autogen.sh (#81, #781)
|
|
||||||
* The command history no longer permits wrapping around (#686)
|
|
||||||
* /foreach now correctly sends arguments as commands, stopping
|
|
||||||
you from embarassing AMSGs (#659)
|
|
||||||
* /server does not connect to servers anymore, use /server
|
|
||||||
connect to change servers (#559, #649).
|
|
||||||
* The net_ip_compare API function is now deprecated, and the
|
|
||||||
previously deprecated net_connect has been removed. By Will
|
|
||||||
Storey (#770).
|
|
||||||
+ Add an option to ignore all channels or ignore all queries
|
|
||||||
using /set activity_hide_targets. By Jari Matilainen (#612,
|
|
||||||
#779)
|
|
||||||
+ Add a startup warning if the TERM var is wrong inside
|
|
||||||
tmux/screen (#726)
|
|
||||||
+ Add option to hide certain levels from the textbuffer using
|
|
||||||
/window hidelevel (#746, #808)
|
|
||||||
+ Irssi now has its first unit test (for mode parsing). By
|
|
||||||
Will Storey (#793)
|
|
||||||
+ Added access to global command history when using window
|
|
||||||
history, and a binding to erase entries from the command
|
|
||||||
history (erase_history_entry) (#762)
|
|
||||||
+ -alternate_nick is now available as a network specific
|
|
||||||
property. By Paul Townsend (#120, #771)
|
|
||||||
+ On FreeBSD, Irssi now supports Capsicum sandbox (/capsicum
|
|
||||||
enter). By Edward Tomasz Napierala (#735, #755, #772)
|
|
||||||
+ Filenames (directories) ending with a / now tab-complete
|
|
||||||
(#741)
|
|
||||||
+ UTF-8 should now work in regular expressions when using
|
|
||||||
GRegex (the default) (#636, #653)
|
|
||||||
+ Nicks are now properly escaped on completion. By Oscar
|
|
||||||
Linderholm (#693, #709)
|
|
||||||
+ /server add -port <num> now works. By Jari Matilainen (#703)
|
|
||||||
+ Add a setting key_timeout to make key sequences
|
|
||||||
automatically re-set when not finished (#644, #645)
|
|
||||||
+ Warn users about expired client certificates, as servers may
|
|
||||||
refuse them (#211, #627)
|
|
||||||
+ Add a new net_start_ssl function for StartTLS. This is
|
|
||||||
available from ABI 8 and can be used by protocol modules
|
|
||||||
(#615, #622).
|
|
||||||
+ The %# code is now stored in the textbuffer, so for example
|
|
||||||
web scripts can make use of it (#626)
|
|
||||||
+ Add new setting break_wide which can be used to enable
|
|
||||||
breaking of wide characters (for east-asian
|
|
||||||
users). Originally from FreeBSD ports. (#625)
|
|
||||||
+ Add fuzzing code (#610, #620, #701, #713)
|
|
||||||
- Netsplits show properly again (#812)
|
|
||||||
- Do not error on blank lines when using /exec -o. By Fabian
|
|
||||||
Kurz (FS#902, #805)
|
|
||||||
- Detect used nickname as reported by server. By Alexandre
|
|
||||||
Morignot (#219, #804)
|
|
||||||
- Prevent use after free error during the execution of some
|
|
||||||
commands. Found by Joseph Bisch. (GL#17, GL!24)
|
|
||||||
- Fix MODE parameter parsing when colon was used at a place
|
|
||||||
Irssi didn't expect (#601, #766)
|
|
||||||
- Fixed code to compile with
|
|
||||||
-Werror=declaration-after-statement (#795)
|
|
||||||
- Clang-format is now supported for git-clang-format (#784)
|
|
||||||
- Fix use after free when changing the network of
|
|
||||||
hilights. Reported by Rui Mathias. (#787, #788)
|
|
||||||
- Fix positioning error when tab-completing non-ascii
|
|
||||||
strings. (#752, #754)
|
|
||||||
- In-development issues (#750, #751)
|
|
||||||
- Clarify Alis in /help list (#699, #712)
|
|
||||||
- Improve /lastlog performance from O(N^2) to O(N) (#715)
|
|
||||||
- Fix a segfault on "script destroyed" signal. By Stephen
|
|
||||||
Oberholtzer (#660, #661).
|
|
||||||
- Fix early ISON error (#596, #647)
|
|
||||||
- Documentation improvements. By Paolo Martini (#639).
|
|
||||||
By Tristan Pepin (#731). By Paul Townsend (#684, #736).
|
|
||||||
By Will Storey (#777)
|
|
||||||
- Minor cleanups (#590). By Edward Tomasz Napierala (#734,
|
|
||||||
#738)
|
|
||||||
- Fix space issue in glib-2.0.m4 (#621)
|
|
||||||
|
|
||||||
v1.0.6 2018-01-07 The Irssi team <staff@irssi.org>
|
|
||||||
! Note: Code and aliases using `$($'-like constructs are no
|
|
||||||
longer supported due to issue GL#18. Sorry about the
|
|
||||||
inconvenience.
|
|
||||||
- Fix invalid memory access when reading hilight configuration
|
|
||||||
(#787, #788).
|
|
||||||
- Fix null pointer dereference when the channel topic is set
|
|
||||||
without specifying a sender (GL#20, GL!25).
|
|
||||||
- Fix return of random memory when using incomplete escape
|
|
||||||
codes (GL#21, GL!26).
|
|
||||||
- Fix heap buffer overflow when completing certain strings
|
|
||||||
(GL#19, GL!27).
|
|
||||||
- Fix return of random memory when using an incomplete
|
|
||||||
variable argument (GL#18, GL!28).
|
|
||||||
|
|
||||||
v1.0.5 2017-10-23 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix missing -sasl_method '' in /NETWORK (#718, #719).
|
|
||||||
- Fix incorrect restoration of term state when hitting SUSP
|
|
||||||
inside screen (#737, #733).
|
|
||||||
- Fix out of bounds read when compressing colour
|
|
||||||
sequences. Found by Hanno Böck (GL#12, GL!18).
|
|
||||||
- Fix use after free condition during a race condition when
|
|
||||||
waiting on channel sync during a rejoin (GL#13, GL!19).
|
|
||||||
- Fix null pointer dereference when parsing certain malformed
|
|
||||||
CTCP DCC messages (GL#14, GL!20).
|
|
||||||
- Fix crash due to null pointer dereference when failing to
|
|
||||||
split messages due to overlong nick or target (GL#15, GL!21).
|
|
||||||
- Fix out of bounds read when trying to skip a safe channel ID
|
|
||||||
without verifying that the ID is long enough (GL#16, GL!22).
|
|
||||||
- Fix return of random memory when inet_ntop failed (#769).
|
|
||||||
- Minor statusbar help update. By Robert Bisewski (#758,
|
|
||||||
#763).
|
|
||||||
|
|
||||||
v1.0.4 2017-07-07 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix null pointer dereference when parsing invalid timestamp (GL#10,
|
|
||||||
GL!15). Reported by Brian 'geeknik' Carpenter.
|
|
||||||
- Fix use-after-free condition when removing nicks from the internal
|
|
||||||
nicklist (GL#11, GL!16). Reported by Brian 'geeknik' Carpenter.
|
|
||||||
- Fix incorrect string comparison in DCC file names (#714).
|
|
||||||
- Fix regression in Irssi 1.0.3 where it would claim "Invalid time '-1'"
|
|
||||||
(#716, #722).
|
|
||||||
- Fix a bug when using \n to separate lines with expand_escapes (#723).
|
|
||||||
- Retain screen output on improper exit, to better see any error
|
|
||||||
messages (#287, #721).
|
|
||||||
- Minor help update (#729).
|
|
||||||
|
|
||||||
v1.0.3 2017-06-06 The Irssi team <staff@irssi.org>
|
|
||||||
! Regression info in 1.0.3: #716 Warnings on start up: invalid time '-1'
|
|
||||||
- Fix out of bounds read when scanning expandos (GL!11).
|
|
||||||
- Fix invalid memory access with quoted filenames in DCC
|
|
||||||
(GL#8, GL!12).
|
|
||||||
- Fix null-pointer dereference on DCC without address (GL#9, GL!13).
|
|
||||||
- Improve integer overflow handling. Originally reported by
|
|
||||||
oss-fuzz#525 (#706).
|
|
||||||
- Improve nicklist performance from O(N^2) to O(N) (#705).
|
|
||||||
- Fix initial screen redraw delay. By Stephen Oberholtzer
|
|
||||||
(#680, bdo#856201).
|
|
||||||
- Fix incorrect reset of true colours when resetting background. (#711).
|
|
||||||
- Fix missing -notls option in /SERVER. By Jari Matilainen (#117, #702).
|
|
||||||
- Fix minor history glitch on overcounter (#462, #685).
|
|
||||||
- Improved OpenSSL detection at compile time. By Rodrigo Rebello (#677).
|
|
||||||
- Improved NetBSD Terminfo detection. By Maya Rashish (#694, #698).
|
|
||||||
- Add missing syntax info for COMPLETION (#687, #688).
|
|
||||||
- Minor typo correction in help. By Michael Hansen (#707).
|
|
||||||
|
|
||||||
v1.0.2 2017-03-10 The Irssi team <staff@irssi.org>
|
|
||||||
! Warning. Irssi is broken on GLib 2.46 (bgo#755496)
|
|
||||||
- Prevent some null-pointer crashes (GL!9).
|
|
||||||
- Fix compilation with OpenSSL 1.1.0 (#628, #597).
|
|
||||||
- Correct dereferencing of already freed server objects during
|
|
||||||
output of netjoins. Found by APic (GL!10, GL#7).
|
|
||||||
- Fix in command arg parser to detect missing arguments in tail place
|
|
||||||
(#652, #651).
|
|
||||||
- Fix regression that broke incoming DCC file transfers (#667, #656).
|
|
||||||
- Fix issue with escaping \ in evaluated strings (#669, #520).
|
|
||||||
|
|
||||||
v1.0.1 2017-02-03 The Irssi team <staff@irssi.org>
|
|
||||||
- Fix Perl compilation in object dir. By Martijn Dekker (#602, #623).
|
|
||||||
- Disable EC cryptography on Solaris to fix build (#604, #598).
|
|
||||||
- Fix incorrect HELP SERVER example (#606, #519).
|
|
||||||
- Correct memory leak in /OP and /VOICE. By Tim Konick (#608).
|
|
||||||
- Fix regression that broke second level completion (#613, #609).
|
|
||||||
- Correct missing NULL termination in perl_parse. By Hanno Böck (#619).
|
|
||||||
- Sync broken mail.pl script (#624, #607).
|
|
||||||
- Prevent a memory leak during the processing of the SASL
|
|
||||||
response (GL!8, GL#5)
|
|
||||||
|
|
||||||
v1.0.0 2017-01-03 The Irssi team <staff@irssi.org>
|
|
||||||
* Removed --disable-ipv6 (#408).
|
|
||||||
* /connect Network now aborts with an error if no servers have been
|
|
||||||
added to that network (#443).
|
|
||||||
* /dcc commands now use quotes around spaces consistently.
|
|
||||||
* bell_beeps was removed (#524, #565).
|
|
||||||
* Switch to GRegex instead of regex.h (#412).
|
|
||||||
+ irssiproxy can now forward all tags through a single
|
|
||||||
port. By Lukas Mai (mauke, #425).
|
|
||||||
+ irssiproxy can also listen on unix sockets. By Lukas Mai (#427).
|
|
||||||
+ send channel -botcmds immediately when no mask is specified (#175, #399).
|
|
||||||
+ the kill buffer now remembers consecutive kills.
|
|
||||||
New bindings were added: yank_next_cutbuffer and append_next_kill
|
|
||||||
By Todd A. Pratt (#353, #414, #455)
|
|
||||||
+ connections will avoid looking up IPv6 addresses if the machine does
|
|
||||||
not have an IPv6 address assigned (exact behaviour is implementation
|
|
||||||
defined, #410).
|
|
||||||
+ Fix potential crash if scripts insert undef values into the completion
|
|
||||||
list (#413).
|
|
||||||
+ Paste warning is now also shown on pasting overlong
|
|
||||||
lines. By Manish Goregaokar (#426).
|
|
||||||
+ autolog_ignore_targets and activity_hide_targets learn a new syntax
|
|
||||||
tag/* and * to ignore whole networks or everything.
|
|
||||||
By Jari Matilainen (vague666, #437)
|
|
||||||
+ /hilight got a -matchcase flag to hilight case
|
|
||||||
sensitively. By Thibault B (isundil, #421, #476).
|
|
||||||
+ Always build irssi with TLS support.
|
|
||||||
+ Rename SSL to TLS in the code and add -tls_* versions of the -ssl_*
|
|
||||||
options to /CONNECT and /SERVER, but make sure the -ssl_* options continue
|
|
||||||
to work.
|
|
||||||
+ Use TLS for Freenode, EFnet, EsperNet, OFTC, Rizon, and IRC6 in the default
|
|
||||||
configuration.
|
|
||||||
+ Display TLS connection information upon connect. You can disable this by
|
|
||||||
setting tls_verbose_connect to FALSE.
|
|
||||||
+ Add -tls_pinned_cert and -tls_pinned_pubkey for x509 and public key pinning.
|
|
||||||
|
|
||||||
The values needed for -tls_pinned_cert and -tls_pinned_pubkey is shown
|
|
||||||
when connecting to a TLS enabled IRC server, but you can also find the
|
|
||||||
values like this: Start by downloading the certificate from a given IRC
|
|
||||||
server:
|
|
||||||
|
|
||||||
$ openssl s_client -connect irc.example.net:6697 < /dev/null 2>/dev/null | \
|
|
||||||
openssl x509 > example.cert
|
|
||||||
|
|
||||||
Find the value for -tls_pinned_cert:
|
|
||||||
|
|
||||||
$ openssl x509 -in example.cert -fingerprint -sha256 -noout
|
|
||||||
|
|
||||||
Find the value for -tls_pinned_pubkey:
|
|
||||||
|
|
||||||
$ openssl x509 -in example.cert -pubkey -noout | \
|
|
||||||
openssl pkey -pubin -outform der | \
|
|
||||||
openssl dgst -sha256 -c | \
|
|
||||||
tr a-z A-Z
|
|
||||||
|
|
||||||
+ Remove support for DANE validation of TLS certificates.
|
|
||||||
|
|
||||||
There wasn't enough support in the IRC community to push for this on the
|
|
||||||
majority of bigger IRC networks. If you believe this should be
|
|
||||||
reintroduced into irssi, then please come up with an implementation that
|
|
||||||
does not rely on the libval library. It is causing a lot of troubles for
|
|
||||||
our downstream maintainers.
|
|
||||||
|
|
||||||
+ /names and $[...] now uses utf8 string operations. By Xavier
|
|
||||||
G. (#40, #411, #471, #480).
|
|
||||||
+ New setting completion_nicks_match_case (#488).
|
|
||||||
+ /channel /server /network now support modify subcommand. By
|
|
||||||
Jari Matilainen (#338, #498).
|
|
||||||
+ Irssi::signal_remove now works with coderefs. By Tom Feist (shabble, #512).
|
|
||||||
+ /script reset got an -autorun switch (#540, #538).
|
|
||||||
+ cap_toggle can now be called from Perl, and fields
|
|
||||||
cap_active and cap_supported can be inspected (#542).
|
|
||||||
+ Make it possible to disable empty line completion. By Lauri
|
|
||||||
Tirkkonen (lotheac, #574).
|
|
||||||
+ New option sasl_disconnect_on_failure to disconnect when
|
|
||||||
SASL log-in failed (#514).
|
|
||||||
- IP addresses are no longer stored when resolve_reverse_lookup is
|
|
||||||
used.
|
|
||||||
- Removed broken support for curses (#521).
|
|
||||||
- Removed broken dummy mode (#526).
|
|
||||||
- Fix terminal state after suspend (#450, #452).
|
|
||||||
- Improve Perl library path detection (#479, #132).
|
|
||||||
- Reconnect now works on unix connections (#493).
|
|
||||||
- Fix completion warnings (#125, #496, FS#124).
|
|
||||||
- Fix a crash in the --more-- item (#501).
|
|
||||||
- Fix a display issue in /unignore (#517, bdo#577202).
|
|
||||||
- Fix a crash in some netsplits (#529, #500).
|
|
||||||
- Fix crashes with some invalid config (#550, #551, #563, #564, #587, #581, #570).
|
|
||||||
- Add support for SASL Fragmentation. By Kenny Root (kruton, #506).
|
|
||||||
- Improve netsplit dumping (#420, #465).
|
|
||||||
- Improve responsibility under DCC I/O strain (#578, #159).
|
|
||||||
- Fix query nick change on open (#580, #586).
|
|
||||||
- Correct a few help texts.
|
|
||||||
|
|
||||||
v0.8.21 2017-01-03 The Irssi team <staff@irssi.org>
|
|
||||||
- Correct a NULL pointer dereference in the nickcmp function found by
|
|
||||||
Joseph Bisch (GL#1)
|
|
||||||
- Correct an out of bounds read in certain incomplete control codes
|
|
||||||
found by Joseph Bisch (GL#2)
|
|
||||||
- Correct an out of bounds read in certain incomplete character
|
|
||||||
sequences found by Hanno Böck and independently by J. Bisch (GL#3)
|
|
||||||
- Correct an error when receiving invalid nick message (GL#4, #466)
|
|
||||||
|
|
||||||
v0.8.20 2016-09-16 The Irssi team <staff@irssi.org>
|
|
||||||
- Correct the name of an emitted sasl signal (#484)
|
|
||||||
- Correct the prototype for the 'message private' signal (#515)
|
|
||||||
- Corrections in away and hilight help text (#477, #518)
|
|
||||||
- /squery and /servlist commands have been restored (#461).
|
|
||||||
- Where Irssi would previously only report "System error" on connect,
|
|
||||||
it will now try harder to retrieve the system error message (#467).
|
|
||||||
- Fixed issue with +channels not working properly (#533)
|
|
||||||
- Fixed crash in optchan when item has no server (#485, bdo#826525)
|
|
||||||
- Fixed random remote crash in the nicklist handling (#529)
|
|
||||||
- Fixed remote crash due to incorrect bounds checking on
|
|
||||||
formats, reported by Gabriel Campana and Adrien Guinet from
|
|
||||||
Quarkslab.
|
|
||||||
|
|
||||||
v0.8.19 2016-03-23 The Irssi team <staff@irssi.org>
|
|
||||||
! If your cursor keys stopped working, try this first: `/bind
|
|
||||||
meta-O key meta2'
|
|
||||||
- Fixed regression when joining and parting channels on IRCnet (#435)
|
|
||||||
- Fixed SASL EXTERNAL. By Mantas Mikulėnas (grawity, #432)
|
|
||||||
- Fixed regression when not using SASL (#438)
|
|
||||||
- Fixed incorrect SSL disconnects when using SSL from modules/scripts.
|
|
||||||
By Will Storey (horgh, #439)
|
|
||||||
- Fixed regression where proxy_string could not be configured or
|
|
||||||
certain file transfers could not be accepted (#445, #446)
|
|
||||||
- Fixed storing layout of !channels (#183, #405)
|
|
||||||
- Fixed restoration of bracketed paste mode on quit (#449, #457)
|
|
||||||
- Make the usage of meta-O for cursor keys configurable with
|
|
||||||
/set term_appkey_mode off
|
|
||||||
(#430, #459)
|
|
||||||
|
|
||||||
v0.8.18 2016-02-13 The Irssi team <staff@irssi.org>
|
|
||||||
* Modules will now require to define a
|
|
||||||
|
|
||||||
void MODULENAME ## _abicheck(int *version)
|
|
||||||
|
|
||||||
method to ensure that they are compiled against the correct Irssi
|
|
||||||
version.
|
|
||||||
* The signature of "message private" has been changed to
|
|
||||||
|
|
||||||
5: server, message, nick, address, target
|
|
||||||
|
|
||||||
in order to support "self messages". Module authors should
|
|
||||||
implement this change if they are using this signal.
|
|
||||||
* Removing networks will now remove all attached servers and channels
|
|
||||||
(#45).
|
|
||||||
* The proxy module now has an /irssiproxy command.
|
|
||||||
* sb_search has been moved to scripts.irssi.org
|
|
||||||
* WIN32 has been completely removed (it had not been working and is
|
|
||||||
lacking a maintainer.)
|
|
||||||
* Garbage Collection support has been removed. This will hardly have any
|
|
||||||
effect for anyone given that it has been unsupported for several years.
|
|
||||||
+ CAP SASL PLAIN login is now supported natively.
|
|
||||||
+ Paste bracket markers can be requested from terminal with
|
|
||||||
|
|
||||||
/set paste_use_bracketed_mode on
|
|
||||||
|
|
||||||
+ "Self messages" generated by some bouncers can now be received in the
|
|
||||||
proper window.
|
|
||||||
+ Try to split long lines on spaces to avoid words being splitted. Adds
|
|
||||||
a new option: `split_line_on_space' which defaults to on.
|
|
||||||
+ Add setting `hilight_nick_matches_everywhere' (#56).
|
|
||||||
+ The config parser is more robust and prints out better diagnostics on
|
|
||||||
incorrect config files.
|
|
||||||
+ Ctrl+^ (FS#721) and Ctrl+J can now be bound.
|
|
||||||
+ Command history can be cleared with /window history -clear
|
|
||||||
+ /hilight -mask -line is now supported (FS#275).
|
|
||||||
+ CHANTYPES are now supported.
|
|
||||||
+ Improved reload speed of ignores.
|
|
||||||
+ Add -date feature to /lastlog
|
|
||||||
+ irssiproxy can be more easily enabled and disabled.
|
|
||||||
+ Expando for hostname (FS#829).
|
|
||||||
+ UNIX sockets can now also be specified in the config file.
|
|
||||||
+ Disable SSLv3 due to the POODLE vulnerability.
|
|
||||||
+ SSL ciphers can now be specified per server.
|
|
||||||
+ Added SNI support for SSL.
|
|
||||||
- /ignore now respects -pattern on merge (#78).
|
|
||||||
- irssiproxy (BNC) module now uses correct line endings.
|
|
||||||
- Fix missing lines on large pastes (FS#905).
|
|
||||||
- Correctly preserve STATUSMSG prefixes (#291).
|
|
||||||
- Fix infinite recursion in key bindings (FS#817).
|
|
||||||
- Fix incomplete awaylog caused by buffering.
|
|
||||||
- Fix calculation of UTF-8 string length display in some cases.
|
|
||||||
- Fix some Perl warnings related to @ISA.
|
|
||||||
- EXEC windowitems now get proper references on the Perl side.
|
|
||||||
- Incremental help file improvements.
|
|
||||||
- ANSI attributes are now properly reset.
|
|
||||||
- Fixed regression where text would blink when terminal lacks color
|
|
||||||
support.
|
|
||||||
- Permit the usage of Freenode extban syntax in /ban (#150)
|
|
||||||
- Fixed regression in scriptassist on unload of scripts.
|
|
||||||
- Fixed regression in -actcolor %n
|
|
||||||
|
|
||||||
v0.8.17 2014-10-11 The Irssi team <staff@irssi.org>
|
|
||||||
+ Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39.
|
+ Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39.
|
||||||
+ Synchronize scripts with scripts.irssi.org.
|
+ Synchronize scripts with scripts.irssi.org.
|
||||||
+ Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24.
|
+ Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24.
|
||||||
|
|
@ -954,7 +19,6 @@ v0.8.17 2014-10-11 The Irssi team <staff@irssi.org>
|
||||||
- Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22.
|
- Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22.
|
||||||
- Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12.
|
- Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12.
|
||||||
- Fixed redrawing issue with right-aligned statusbar.
|
- Fixed redrawing issue with right-aligned statusbar.
|
||||||
- Fixed use-after-free bug with cached settings values. See Github PR #147.
|
|
||||||
|
|
||||||
v0.8.16 2014-05-28 The Irssi team <staff@irssi.org>
|
v0.8.16 2014-05-28 The Irssi team <staff@irssi.org>
|
||||||
+ Add -noautosendcmd to /SERVER and /CONNECT. Passing this option will
|
+ Add -noautosendcmd to /SERVER and /CONNECT. Passing this option will
|
||||||
|
|
@ -1300,7 +364,7 @@ v0.8.10 2005-12-11 The Irssi team <staff@irssi.org>
|
||||||
<charset> can be almost everything listed by 'iconv -l'
|
<charset> can be almost everything listed by 'iconv -l'
|
||||||
+ Added transpose_words, capitalize_word, downcase_word, upcase_word
|
+ Added transpose_words, capitalize_word, downcase_word, upcase_word
|
||||||
key bindings
|
key bindings
|
||||||
+ Avoid accidentally /VER in a channel, by requiring parameter
|
+ Avoid accidentaly /VER in a channel, by requiring parameter
|
||||||
- Pasted lines weren't added to command history. Some other paste
|
- Pasted lines weren't added to command history. Some other paste
|
||||||
detection fixes
|
detection fixes
|
||||||
- Fixed /BIND escape_char
|
- Fixed /BIND escape_char
|
||||||
|
|
@ -2837,7 +1901,7 @@ v0.7.14 1999-08-22 Timo Sirainen <cras@irccrew.org> [unstable]
|
||||||
- /msg <tab> completion was a bit buggy, if someone sent you multiple
|
- /msg <tab> completion was a bit buggy, if someone sent you multiple
|
||||||
messages, you had to press tab multiple times until the nick changed
|
messages, you had to press tab multiple times until the nick changed
|
||||||
to someone else..
|
to someone else..
|
||||||
- Default format for signon time in whois displayed nick instead of
|
- Defaut format for signon time in whois displayed nick instead of
|
||||||
the signon time..
|
the signon time..
|
||||||
- Disconnecting server while it was still trying to connect hung irssi
|
- Disconnecting server while it was still trying to connect hung irssi
|
||||||
- If old configuration file wasn't found, irssi (could have?) crashed
|
- If old configuration file wasn't found, irssi (could have?) crashed
|
||||||
|
|
@ -3121,7 +2185,7 @@ v0.7.9 1999-04-22 Timo Sirainen <a@sicom.fi> [unstable]
|
||||||
that matched the parameters
|
that matched the parameters
|
||||||
- Commented out all GUI_INPUT_EXCEPTIONs .. I don't even know when
|
- Commented out all GUI_INPUT_EXCEPTIONs .. I don't even know when
|
||||||
exceptions are sent and why (I thought that only when some error
|
exceptions are sent and why (I thought that only when some error
|
||||||
occurred..), Linux doesn't seem to send them ever? IRIX however sends
|
occured..), Linux doesn't seem to send them ever? IRIX however sends
|
||||||
them all the time which made irssi eating all cpu.
|
them all the time which made irssi eating all cpu.
|
||||||
- Fixed compiling gui-text with systems that had only slang/slang.h
|
- Fixed compiling gui-text with systems that had only slang/slang.h
|
||||||
- gui_widget_depends() had some bugs
|
- gui_widget_depends() had some bugs
|
||||||
|
|
@ -3567,7 +2631,7 @@ v0.3.2 1999-01-22 Timo Sirainen <a@sicom.fi> [unstable]
|
||||||
|
|
||||||
v0.3.1 1999-01-22 Timo Sirainen <a@sicom.fi>
|
v0.3.1 1999-01-22 Timo Sirainen <a@sicom.fi>
|
||||||
|
|
||||||
* 4 days since last release. too long :) I'm now starting to create
|
* 4 days since last relase. too long :) I'm now starting to create
|
||||||
"unstable" versions of irssi. They have the latest and greatest
|
"unstable" versions of irssi. They have the latest and greatest
|
||||||
features while they might not build/work too well. Check
|
features while they might not build/work too well. Check
|
||||||
http://www.sicom.fi/~ikioma/irssi-download.html, new versions will
|
http://www.sicom.fi/~ikioma/irssi-download.html, new versions will
|
||||||
|
|
|
||||||
137
README.md
137
README.md
|
|
@ -1,74 +1,109 @@
|
||||||
# [Irssi](https://irssi.org)
|
# Irssi
|
||||||
|
|
||||||

|
[](https://travis-ci.org/irssi/irssi)
|
||||||
|
|
||||||
Irssi is a modular text mode chat client. It comes with IRC support
|
Irssi is a modular chat client that is most commonly known for its
|
||||||
built in, and there are third party
|
text mode user interface, but 80% of the code isn't text mode
|
||||||
[ICB](https://github.com/jperkin/irssi-icb),
|
specific. We have a working but currently unmaintained GTK2 frontend
|
||||||
|
called xirssi. Irssi comes with IRC support built in, and there are
|
||||||
|
third party [ICB](https://github.com/jperkin/irssi-icb),
|
||||||
[SILC](http://www.silcnet.org/),
|
[SILC](http://www.silcnet.org/),
|
||||||
[XMPP](http://cybione.org/~irssi-xmpp/) (Jabber),
|
[XMPP](http://cybione.org/~irssi-xmpp/) (Jabber),
|
||||||
[PSYC](http://about.psyc.eu/Irssyc) and
|
[PSYC](https://github.com/electric-blue/irssyc) and
|
||||||
[Quassel](https://github.com/phhusson/quassel-irssi) protocol modules
|
[Quassel](https://github.com/phhusson/quassel-irssi) protocol modules
|
||||||
available.
|
available.
|
||||||
|
|
||||||

|
## Installation
|
||||||
|
|
||||||
## [Download information](https://irssi.org/download/)
|
See the `INSTALL` file.
|
||||||
|
|
||||||
#### Development source installation
|
## Features
|
||||||
|
|
||||||
[Ninja](https://ninja-build.org/) 1.8 and [Meson](https://mesonbuild.com/) 0.53
|
So what's so great about Irssi? Here's a list of some features I can
|
||||||
|
think of currently:
|
||||||
|
|
||||||
```
|
- **Optional automation** - There's lots of things Irssi does for you
|
||||||
git clone https://github.com/irssi/irssi
|
automatically that some people like and others just hate. Things like:
|
||||||
cd irssi
|
nick completion, creating new window for newly joined channel, creating
|
||||||
meson Build
|
queries when msgs/notices are received or when you send a msg, closing
|
||||||
ninja -C Build && sudo ninja -C Build install
|
queries when it's been idle for some time, etc.
|
||||||
```
|
|
||||||
|
|
||||||
#### Release source installation
|
- **Multiserver friendy** - I think Irssi has clearly the best support
|
||||||
|
for handling multiple server connections. You can have as many as you
|
||||||
|
want in as many ircnets as you want. Having several connections in one
|
||||||
|
server works too, for example when you hit the (ircnet's) 10
|
||||||
|
channels/connection limit you can just create another connection and
|
||||||
|
you hardly notice it. If connection to server is lost, Irssi tries to
|
||||||
|
connect back until it's successful. Also channels you were joined
|
||||||
|
before disconnection are restored, even if they're "temporarily
|
||||||
|
unavailable" because of netsplits, Irssi keeps rejoining back to them.
|
||||||
|
Also worth noticing - there's not that stupid "server is bound to this
|
||||||
|
window, if this window gets closed the connection closes" thing that
|
||||||
|
ircII based clients have.
|
||||||
|
|
||||||
* Download [release](https://github.com/irssi/irssi/releases)
|
- **Channel automation** - You can specify what channels to join to
|
||||||
* Verify signature
|
immediately after connected to some server or IRC network. After joined
|
||||||
```
|
to channel, Irssi can automatically request ops for you (or do
|
||||||
tar xJf irssi-*.tar.xz
|
anything, actually) from channel's bots.
|
||||||
cd irssi-*
|
|
||||||
meson Build
|
|
||||||
ninja -C Build && sudo ninja -C Build install
|
|
||||||
```
|
|
||||||
|
|
||||||
### Requirements
|
- **Window content saving** - Say /LAYOUT SAVE when you've put all the
|
||||||
|
channels and queries to their correct place, and after restarting
|
||||||
|
Irssi, the channels will be joined back into windows where they were
|
||||||
|
saved.
|
||||||
|
|
||||||
- [glib-2.32](https://wiki.gnome.org/Projects/GLib) or greater
|
- **Tab completing anything** - You can complete lots of things with tab:
|
||||||
- [openssl](https://www.openssl.org/)
|
nicks, commands, command -options, file names, settings, text format
|
||||||
- [perl-5.8](https://www.perl.org/) or greater (for perl support)
|
names, channels and server names. There's also an excellent /msg
|
||||||
- terminfo or ncurses (for text frontend)
|
completion that works transparently with multiple IRC networks.
|
||||||
|
Completing channel nicks is also pretty intelligent, it first goes
|
||||||
|
through the people who have talked to you recently, then the people who
|
||||||
|
have talked to anyone recently and only then it fallbacks to rest of
|
||||||
|
the nicks. You can also complete a set of words you've specified, for
|
||||||
|
example homepage<tab> changes it to your actual home page URL.
|
||||||
|
|
||||||
#### See the [INSTALL](INSTALL) file for details
|
- **Excellent logging** - You can log any way you want and as easily or
|
||||||
|
hard as you want. With autologging Irssi logs everything to specified
|
||||||
|
directory, one file per channel/nick. ircII style /WINDOW LOG ON is
|
||||||
|
also supported. There's also the "hard way" of logging - /LOG command
|
||||||
|
which lets you specify exactly what you wish to log and where. Log
|
||||||
|
rotating is supported with all the different logging methods, you can
|
||||||
|
specify how often you want it to rotate and what kind of time stamp to
|
||||||
|
use.
|
||||||
|
|
||||||
## [Documentation](https://irssi.org/documentation/)
|
- **Excellent ignoring** - You can most probably ignore anything any way
|
||||||
|
you want. Nick masks, words, regular expressions. You can add
|
||||||
|
exceptions to ignores. You can ignore other people's replies in
|
||||||
|
channels to nicks you have ignored. You can also specify that the
|
||||||
|
specific ignores work only in specific channel(s).
|
||||||
|
|
||||||
* [New users guide](https://irssi.org/New-users/)
|
- **Lastlog and scrollback handling** - /LASTLOG command has some new
|
||||||
* [Questions and Answers](https://irssi.org/documentation/qna/)
|
features: -new option checks only lines that came since you last did
|
||||||
* Check the built-in `/HELP`, it has all the details on command syntax
|
/LASTLOG command, -away option checks new lines since you last went
|
||||||
|
away. Regular expression matches work also, of course. Going to some
|
||||||
|
wanted place at scrollback has always been hard with non-GUI clients. A
|
||||||
|
search command that jumps around in scrollback in GUI-style is still
|
||||||
|
missing from Irssi, but there's something that's almost as good as it.
|
||||||
|
/LASTLOG always shows timestamps when the line was printed, even if you
|
||||||
|
didn't have timestamps on. Now doing /SB GOTO <timestamp> jumps
|
||||||
|
directly to the position in scrollback you wanted. Great feature when
|
||||||
|
you want to browse a bit of the discussion what happened when someone
|
||||||
|
said your name (as seen in awaylog) or topic was changed (/last
|
||||||
|
-topics)
|
||||||
|
|
||||||
## [Themes](https://irssi-import.github.io/themes/)
|
## Files
|
||||||
|
|
||||||
## [Scripts](https://scripts.irssi.org/)
|
- The `docs/` directory contains several documents:
|
||||||
|
- `startup-HOWTO.txt` - new users should read this
|
||||||
|
- `manual.txt` - manual I started writing but didn't get it very far :)
|
||||||
|
- `perl.txt` - Perl scripting help
|
||||||
|
- `formats.txt` - How to use colors, etc. with irssi
|
||||||
|
- `faq.txt` - Frequently Asked Questions
|
||||||
|
- `special_vars.txt` - some predefined $variables you can use with irssi
|
||||||
|
|
||||||
## [Modules](https://irssi.org/modules/)
|
## Bugs / Suggestions
|
||||||
|
|
||||||
## [Security information](https://irssi.org/security/)
|
See the `TODO` file, http://bugs.irssi.org and the GitHub issues if it is
|
||||||
|
already listed in there; if not, open an issue on GitHub or send a mail to
|
||||||
|
[staff@irssi.org](mailto:staff@irssi.org).
|
||||||
|
|
||||||
Please report security issues to staff@irssi.org. Thanks!
|
You can also contact the Irssi developers in #irssi on freenode.
|
||||||
|
|
||||||
## [Bugs](https://github.com/irssi/irssi/issues) / Suggestions / Contributing
|
|
||||||
|
|
||||||
Check the GitHub issues if it is already listed in there; if not, open
|
|
||||||
an issue on GitHub or send a mail to [staff@irssi.org](mailto:staff@irssi.org).
|
|
||||||
|
|
||||||
Irssi is always looking for developers. Feel free to submit patches through
|
|
||||||
GitHub pull requests.
|
|
||||||
|
|
||||||
You can also contact the Irssi developers in
|
|
||||||
[#irssi](https://irssi.org/support/irc/) on irc.libera.chat.
|
|
||||||
|
|
|
||||||
5
TODO
5
TODO
|
|
@ -1,3 +1,8 @@
|
||||||
|
- New proxy code crashes if an invalid proxy_type setting is used
|
||||||
|
- Remove old socks code
|
||||||
|
- Lots of warnings at least when using socks5
|
||||||
|
- Clean up coding style
|
||||||
|
|
||||||
19:36 [IRCNet] [muzzy] more bugs in irssi, apparently the new version: foo splits out,
|
19:36 [IRCNet] [muzzy] more bugs in irssi, apparently the new version: foo splits out,
|
||||||
bar joins, bar changes his nick to foo, foo splits again ->
|
bar joins, bar changes his nick to foo, foo splits again ->
|
||||||
Glib warning "is already in split list (how?)" .. :)
|
Glib warning "is already in split list (how?)" .. :)
|
||||||
|
|
|
||||||
34
acconfig.h
Normal file
34
acconfig.h
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
/* misc.. */
|
||||||
|
#undef HAVE_IPV6
|
||||||
|
#undef HAVE_SOCKS_H
|
||||||
|
#undef HAVE_STATIC_PERL
|
||||||
|
#undef HAVE_GMODULE
|
||||||
|
#undef HAVE_GC_H
|
||||||
|
#undef HAVE_GC_GC_H
|
||||||
|
#undef USE_GC
|
||||||
|
|
||||||
|
/* macros/curses checks */
|
||||||
|
#undef HAS_CURSES
|
||||||
|
#undef USE_SUNOS_CURSES
|
||||||
|
#undef USE_BSD_CURSES
|
||||||
|
#undef USE_SYSV_CURSES
|
||||||
|
#undef USE_NCURSES
|
||||||
|
#undef NO_COLOR_CURSES
|
||||||
|
#undef SCO_FLAVOR
|
||||||
|
|
||||||
|
/* our own curses checks */
|
||||||
|
#undef HAVE_NCURSES_USE_DEFAULT_COLORS
|
||||||
|
#undef HAVE_CURSES_IDCOK
|
||||||
|
#undef HAVE_CURSES_RESIZETERM
|
||||||
|
#undef HAVE_CURSES_WRESIZE
|
||||||
|
|
||||||
|
/* terminfo/termcap */
|
||||||
|
#undef HAVE_TERMINFO
|
||||||
|
|
||||||
|
/* What type should be used for uoff_t */
|
||||||
|
#undef UOFF_T_INT
|
||||||
|
#undef UOFF_T_LONG
|
||||||
|
#undef UOFF_T_LONG_LONG
|
||||||
|
|
||||||
|
/* printf()-format for uoff_t, eg. "u" or "lu" or "llu" */
|
||||||
|
#undef PRIuUOFF_T
|
||||||
61
autogen.sh
Executable file
61
autogen.sh
Executable file
|
|
@ -0,0 +1,61 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
|
||||||
|
PKG_NAME="Irssi"
|
||||||
|
|
||||||
|
srcdir=`dirname $0`
|
||||||
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
|
if test ! -f $srcdir/configure.ac; then
|
||||||
|
echo -n "**Error**: Directory \`$srcdir\' does not look like the"
|
||||||
|
echo " top-level $PKG_NAME directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# create help files
|
||||||
|
echo "Creating help files..."
|
||||||
|
perl syntax.pl
|
||||||
|
|
||||||
|
echo "Creating ChangeLog..."
|
||||||
|
git log > $srcdir/ChangeLog
|
||||||
|
|
||||||
|
files=`echo docs/help/in/*.in|sed -e 's,docs/help/in/Makefile.in ,,' -e 's,docs/help/in/,!,g' -e 's/\.in /.in ?/g'`
|
||||||
|
cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
|
||||||
|
|
||||||
|
files=`echo $files|sed 's/\.in//g'`
|
||||||
|
cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
|
||||||
|
|
||||||
|
# .html -> .txt with lynx or elinks
|
||||||
|
echo "Documentation: html -> txt..."
|
||||||
|
if type lynx >/dev/null 2>&1 ; then
|
||||||
|
lynx -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
|
||||||
|
elif type elinks >/dev/null 2>&1 ; then
|
||||||
|
elinks -dump docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
|
||||||
|
else
|
||||||
|
echo "**Error**: No lynx or elinks present"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$NOCONFIGURE = x && test -z "$*"; then
|
||||||
|
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||||
|
echo "If you wish to pass any to it, please specify them on the"
|
||||||
|
echo \`$0\'" command line."
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f aclocal.m4
|
||||||
|
echo "Running autoreconf ..."
|
||||||
|
autoreconf -i || exit 1
|
||||||
|
|
||||||
|
conf_flags="--enable-maintainer-mode"
|
||||||
|
|
||||||
|
if test x$NOCONFIGURE = x; then
|
||||||
|
echo Running $srcdir/configure $conf_flags "$@" ...
|
||||||
|
$srcdir/configure $conf_flags "$@" \
|
||||||
|
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
|
||||||
|
else
|
||||||
|
echo Skipping configure process.
|
||||||
|
fi
|
||||||
|
|
||||||
|
# make sure perl hashes have correct length
|
||||||
|
find src/perl -name *.c -o -name *.xs | xargs grep -n hv_store | perl -ne 'if (/"(\w+)",\s*(\d+)/) { print unless $2 == length $1 }'
|
||||||
|
|
@ -251,7 +251,6 @@ abstracts = {
|
||||||
# default background for all statusbars. You can also give
|
# default background for all statusbars. You can also give
|
||||||
# the default foreground color for statusbar items.
|
# the default foreground color for statusbar items.
|
||||||
sb_background = "%8";
|
sb_background = "%8";
|
||||||
window_border = "%8";
|
|
||||||
|
|
||||||
# default backround for "default" statusbar group
|
# default backround for "default" statusbar group
|
||||||
#sb_default_bg = "%8";
|
#sb_default_bg = "%8";
|
||||||
|
|
@ -262,8 +261,8 @@ abstracts = {
|
||||||
# background for topicbar (same default)
|
# background for topicbar (same default)
|
||||||
#sb_topic_bg = "%8";
|
#sb_topic_bg = "%8";
|
||||||
|
|
||||||
# text at the beginning of statusbars. "sb" already puts a space there,
|
# text at the beginning of statusbars. sb-item already puts
|
||||||
# so we don't use anything by default.
|
# space there,so we don't use anything by default.
|
||||||
sbstart = "";
|
sbstart = "";
|
||||||
# text at the end of statusbars. Use space so that it's never
|
# text at the end of statusbars. Use space so that it's never
|
||||||
# used for anything.
|
# used for anything.
|
||||||
807
configure.ac
Normal file
807
configure.ac
Normal file
|
|
@ -0,0 +1,807 @@
|
||||||
|
AC_INIT(irssi, 0.8.17-head)
|
||||||
|
AC_CONFIG_SRCDIR([src])
|
||||||
|
AC_CONFIG_AUX_DIR(build-aux)
|
||||||
|
AC_PREREQ(2.50)
|
||||||
|
|
||||||
|
AC_CONFIG_HEADERS([irssi-config.h])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AM_INIT_AUTOMAKE([1.9 no-define foreign])
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
AC_ISC_POSIX
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CPP
|
||||||
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
|
AC_PATH_PROG(sedpath, sed)
|
||||||
|
AC_PATH_PROG(perlpath, perl)
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(unistd.h dirent.h sys/ioctl.h sys/resource.h)
|
||||||
|
|
||||||
|
# check posix headers..
|
||||||
|
AC_CHECK_HEADERS(sys/time.h sys/utsname.h regex.h)
|
||||||
|
|
||||||
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
AC_ARG_WITH(socks,
|
||||||
|
[ --with-socks Build with socks support],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_socks=no
|
||||||
|
else
|
||||||
|
want_socks=yes
|
||||||
|
fi,
|
||||||
|
want_socks=no)
|
||||||
|
|
||||||
|
AC_ARG_WITH(textui,
|
||||||
|
[ --without-textui Build without text frontend],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_textui=no
|
||||||
|
else
|
||||||
|
want_textui=yes
|
||||||
|
fi,
|
||||||
|
want_textui=yes)
|
||||||
|
|
||||||
|
AC_ARG_WITH(bot,
|
||||||
|
[ --with-bot Build irssi-bot],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_irssibot=no
|
||||||
|
else
|
||||||
|
want_irssibot=yes
|
||||||
|
fi,
|
||||||
|
want_irssibot=no)
|
||||||
|
|
||||||
|
AC_ARG_WITH(proxy,
|
||||||
|
[ --with-proxy Build irssi-proxy],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_irssiproxy=no
|
||||||
|
else
|
||||||
|
want_irssiproxy=yes
|
||||||
|
fi,
|
||||||
|
want_irssiproxy=no)
|
||||||
|
|
||||||
|
AC_ARG_WITH(terminfo,
|
||||||
|
[ --without-terminfo Use curses backend instead of terminfo],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_terminfo=no
|
||||||
|
else
|
||||||
|
want_terminfo=yes
|
||||||
|
fi,
|
||||||
|
want_terminfo=yes)
|
||||||
|
|
||||||
|
AC_ARG_WITH(modules,
|
||||||
|
[ --with-modules Specify what modules to build in binary],
|
||||||
|
if test x$withval != xyes -a x$withval != xno; then
|
||||||
|
build_modules="$withval"
|
||||||
|
fi)
|
||||||
|
|
||||||
|
if test "x$prefix" != "xNONE"; then
|
||||||
|
prefix=`eval echo $prefix`
|
||||||
|
PERL_MM_PARAMS="INSTALLDIRS=perl INSTALL_BASE=$prefix"
|
||||||
|
perl_library_dir="PERL_USE_LIB"
|
||||||
|
perl_set_use_lib=yes
|
||||||
|
|
||||||
|
perl_prefix_note=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH(gc,
|
||||||
|
[ --with-gc Use garbage collector],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_gc=no
|
||||||
|
else
|
||||||
|
want_gc=yes
|
||||||
|
fi,
|
||||||
|
want_gc=no)
|
||||||
|
|
||||||
|
AC_ARG_WITH(perl-staticlib,
|
||||||
|
[ --with-perl-staticlib Specify that we want to link perl libraries
|
||||||
|
statically in irssi, default is no],
|
||||||
|
if test x$withval = xno; then
|
||||||
|
want_staticperllib=no
|
||||||
|
else
|
||||||
|
want_staticperllib=yes
|
||||||
|
fi,
|
||||||
|
want_staticperllib=no)
|
||||||
|
|
||||||
|
|
||||||
|
AC_ARG_WITH(perl-lib,
|
||||||
|
[ --with-perl-lib=[site|vendor|DIR] Specify where to install the
|
||||||
|
Perl libraries for irssi, default is site],
|
||||||
|
if test "x$withval" = xyes; then
|
||||||
|
want_perl=yes
|
||||||
|
elif test "x$withval" = xno; then
|
||||||
|
want_perl=no
|
||||||
|
elif test "x$withval" = xsite; then
|
||||||
|
want_perl=yes
|
||||||
|
perl_prefix_note=no
|
||||||
|
PERL_MM_PARAMS=""
|
||||||
|
elif test "x$withval" = xvendor; then
|
||||||
|
want_perl=yes
|
||||||
|
perl_prefix_note=no
|
||||||
|
if test -z "`$perlpath -v|grep '5\.0'`"; then
|
||||||
|
PERL_MM_PARAMS="INSTALLDIRS=vendor"
|
||||||
|
else
|
||||||
|
PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=`perl -e 'use Config; print $Config{prefix}'`"
|
||||||
|
fi
|
||||||
|
perl_library_dir="(vendor default - `$perlpath -e 'use Config; print $Config{archlib}'`)"
|
||||||
|
else
|
||||||
|
want_perl=yes
|
||||||
|
perl_prefix_note=no
|
||||||
|
PERL_MM_PARAMS="INSTALLDIRS=perl LIB=$withval"
|
||||||
|
perl_library_dir="PERL_USE_LIB"
|
||||||
|
perl_set_use_lib=yes
|
||||||
|
fi,
|
||||||
|
want_perl=yes)
|
||||||
|
|
||||||
|
AC_ARG_WITH(perl,
|
||||||
|
[ --with-perl[=yes|no|module] Build with Perl support - also specifies
|
||||||
|
if it should be built into main irssi binary
|
||||||
|
(static, default) or as module],
|
||||||
|
if test x$withval = xyes; then
|
||||||
|
want_perl=static
|
||||||
|
elif test x$withval = xstatic; then
|
||||||
|
want_perl=static
|
||||||
|
elif test x$withval = xmodule; then
|
||||||
|
want_perl=module
|
||||||
|
else
|
||||||
|
want_perl=no
|
||||||
|
fi,
|
||||||
|
want_perl=static)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(ipv6,
|
||||||
|
[ --disable-ipv6 Disable IPv6 support],
|
||||||
|
if test x$enableval = xno; then
|
||||||
|
want_ipv6=no
|
||||||
|
else
|
||||||
|
want_ipv6=yes
|
||||||
|
fi,
|
||||||
|
want_ipv6=yes)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(dane,
|
||||||
|
[ --enable-dane Enable DANE support],
|
||||||
|
if test x$enableval = xno ; then
|
||||||
|
want_dane=no
|
||||||
|
else
|
||||||
|
want_dane=yes
|
||||||
|
fi,
|
||||||
|
want_dane=no)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(true-color,
|
||||||
|
[ --enable-true-color Build with true color support in terminal],
|
||||||
|
if test x$enableval = xno ; then
|
||||||
|
want_truecolor=no
|
||||||
|
else
|
||||||
|
want_truecolor=yes
|
||||||
|
fi,
|
||||||
|
want_truecolor=no)
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** SSL Library checks (OpenSSL)
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(ssl,
|
||||||
|
[ --disable-ssl Disable Secure Sockets Layer support],,
|
||||||
|
enable_ssl=yes)
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** just some generic stuff...
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
dnl * OS specific options
|
||||||
|
case "$host_os" in
|
||||||
|
hpux*)
|
||||||
|
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
AC_CHECK_FUNC(socket, [], [
|
||||||
|
AC_CHECK_LIB(socket, socket, [
|
||||||
|
LIBS="$LIBS -lsocket"
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_CHECK_FUNC(inet_addr, [], [
|
||||||
|
AC_CHECK_LIB(nsl, inet_addr, [
|
||||||
|
LIBS="$LIBS -lnsl"
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl * gcc specific options
|
||||||
|
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
||||||
|
CFLAGS="$CFLAGS -Wall"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
|
||||||
|
dnl * accept header files where to find the typedef..
|
||||||
|
AC_MSG_CHECKING([for socklen_t])
|
||||||
|
AC_CACHE_VAL(irssi_cv_type_socklen_t,
|
||||||
|
[AC_TRY_COMPILE([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>],
|
||||||
|
[socklen_t t = 0; return((int)t); ],
|
||||||
|
irssi_cv_type_socklen_t=yes,
|
||||||
|
irssi_cv_type_socklen_t=no,
|
||||||
|
)])
|
||||||
|
if test $irssi_cv_type_socklen_t = no; then
|
||||||
|
AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($irssi_cv_type_socklen_t)
|
||||||
|
|
||||||
|
AC_CHECK_SIZEOF(int)
|
||||||
|
AC_CHECK_SIZEOF(long)
|
||||||
|
AC_CHECK_SIZEOF(long long)
|
||||||
|
AC_CHECK_SIZEOF(off_t)
|
||||||
|
|
||||||
|
if test $ac_cv_sizeof_off_t = 8; then
|
||||||
|
offt_64bit=yes
|
||||||
|
else
|
||||||
|
offt_64bit=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_long; then
|
||||||
|
# try to use unsigned long always first
|
||||||
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "lu")
|
||||||
|
AC_DEFINE(UOFF_T_LONG)
|
||||||
|
elif test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_int; then
|
||||||
|
# next try int
|
||||||
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u")
|
||||||
|
AC_DEFINE(UOFF_T_INT)
|
||||||
|
elif test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_long_long; then
|
||||||
|
# and finally long long
|
||||||
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "llu")
|
||||||
|
AC_DEFINE(UOFF_T_LONG_LONG)
|
||||||
|
else
|
||||||
|
AC_ERROR([Couldn't find integer type for off_t])
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** check for socks
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
if test "x$want_socks" = "xyes"; then
|
||||||
|
AC_CHECK_LIB(socks, connect, [
|
||||||
|
AC_DEFINE(HAVE_SOCKS,, Build with socks support)
|
||||||
|
LIBS="$LIBS -lsocks"
|
||||||
|
AC_CHECK_HEADER(socks.h, [
|
||||||
|
AC_DEFINE(HAVE_SOCKS_H)
|
||||||
|
CFLAGS="$CFLAGS -DSOCKS"
|
||||||
|
AC_MSG_RESULT(["socks5 library found, building with it"])
|
||||||
|
], [
|
||||||
|
AC_MSG_RESULT(["socks4 library found, building with it"])
|
||||||
|
CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
|
||||||
|
])
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** fe-text checks
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
for try in 1 2; do
|
||||||
|
if test $try = 1; then
|
||||||
|
glib_modules=gmodule
|
||||||
|
else
|
||||||
|
echo "*** trying without -lgmodule"
|
||||||
|
glib_modules=
|
||||||
|
fi
|
||||||
|
AM_PATH_GLIB_2_0(2.6.0,,, $glib_modules)
|
||||||
|
if test "$GLIB_LIBS"; then
|
||||||
|
if test $glib_modules = gmodule; then
|
||||||
|
AC_DEFINE(HAVE_GMODULE)
|
||||||
|
have_gmodule=yes
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$GLIB_LIBS"; then
|
||||||
|
echo
|
||||||
|
echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/"
|
||||||
|
echo "*** We recommend you get the latest stable GLIB 2 version."
|
||||||
|
echo "*** Compile and install it, and make sure pkg-config finds it,"
|
||||||
|
echo "*** by adding the path where the .pc file is located to PKG_CONFIG_PATH"
|
||||||
|
echo -n "*** Or alternatively install your distribution's package"
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
echo :
|
||||||
|
echo "*** sudo apt-get install libglib2.0-dev"
|
||||||
|
elif test -f /etc/redhat-release; then
|
||||||
|
echo " (glib2-devel)"
|
||||||
|
else
|
||||||
|
echo .
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
AC_ERROR([GLIB is required to build irssi.])
|
||||||
|
fi
|
||||||
|
|
||||||
|
LIBS="$LIBS $GLIB_LIBS"
|
||||||
|
|
||||||
|
have_openssl=no
|
||||||
|
if test "$enable_ssl" = "yes"; then
|
||||||
|
PKG_CHECK_MODULES(SSL, openssl, :, :)
|
||||||
|
if test "$SSL_LIBS"; then
|
||||||
|
CFLAGS="$CFLAGS $SSL_CFLAGS"
|
||||||
|
have_openssl=yes
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB(ssl, SSL_read, [
|
||||||
|
AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h, [
|
||||||
|
SSL_LIBS="-lssl -lcrypto"
|
||||||
|
have_openssl=yes
|
||||||
|
])
|
||||||
|
],, -lcrypto)
|
||||||
|
fi
|
||||||
|
if test "$have_openssl" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_OPENSSL,, Build with OpenSSL support)
|
||||||
|
LIBS="$LIBS $SSL_LIBS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** Garbage Collector
|
||||||
|
dnl **
|
||||||
|
have_gc=no
|
||||||
|
if test "x$want_gc" = xyes; then
|
||||||
|
AC_CHECK_LIB(gc, GC_malloc, [
|
||||||
|
AC_CHECK_HEADER(gc/gc.h, [
|
||||||
|
AC_DEFINE(HAVE_GC_GC_H)
|
||||||
|
AC_DEFINE(USE_GC)
|
||||||
|
LIBS="$LIBS -lgc"
|
||||||
|
have_gc=yes
|
||||||
|
], [
|
||||||
|
AC_CHECK_HEADER(gc.h, [
|
||||||
|
AC_DEFINE(HAVE_GC_H)
|
||||||
|
AC_DEFINE(USE_GC)
|
||||||
|
LIBS="$LIBS -lgc"
|
||||||
|
have_gc=yes
|
||||||
|
])
|
||||||
|
])
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** curses checks
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
if test "x$want_textui" = "xyes"; then
|
||||||
|
AC_CHECK_CURSES
|
||||||
|
|
||||||
|
TEXTUI_LIBS="$CURSES_LIBS"
|
||||||
|
if test "x$has_curses" = "xtrue"; then
|
||||||
|
old_libs=$LIBS
|
||||||
|
LIBS="$LIBS $CURSES_LIBS"
|
||||||
|
if test $want_terminfo = no; then
|
||||||
|
AC_CHECK_FUNC(use_default_colors, AC_DEFINE(HAVE_NCURSES_USE_DEFAULT_COLORS))
|
||||||
|
AC_CHECK_FUNC(idcok, AC_DEFINE(HAVE_CURSES_IDCOK))
|
||||||
|
AC_CHECK_FUNC(resizeterm, AC_DEFINE(HAVE_CURSES_RESIZETERM))
|
||||||
|
AC_CHECK_FUNC(wresize, AC_DEFINE(HAVE_CURSES_WRESIZE))
|
||||||
|
fi
|
||||||
|
AC_CHECK_FUNC(setupterm,, [
|
||||||
|
want_termcap=yes
|
||||||
|
])
|
||||||
|
LIBS=$old_libs
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB(tinfo, setupterm, [
|
||||||
|
TEXTUI_LIBS="-ltinfo"
|
||||||
|
want_terminfo=yes
|
||||||
|
], AC_CHECK_LIB(termlib, tgetent, [
|
||||||
|
TEXTUI_LIBS="-ltermlib"
|
||||||
|
want_termcap=yes
|
||||||
|
], AC_CHECK_LIB(termcap, tgetent, [
|
||||||
|
TEXTUI_LIBS="-ltermcap"
|
||||||
|
want_termcap=yes
|
||||||
|
], [
|
||||||
|
AC_ERROR(Terminfo/termcap not found - install libncurses-dev or ncurses-devel package)
|
||||||
|
want_textui=no
|
||||||
|
])))
|
||||||
|
fi
|
||||||
|
AC_SUBST(TEXTUI_LIBS)
|
||||||
|
|
||||||
|
if test "x$want_termcap" = "xyes"; then
|
||||||
|
AC_CHECK_FUNC(tparm,, need_tparm=yes)
|
||||||
|
else
|
||||||
|
AC_DEFINE(HAVE_TERMINFO)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** perl checks
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
if test "$want_perl" != "no"; then
|
||||||
|
AC_MSG_CHECKING(for working Perl support)
|
||||||
|
|
||||||
|
if test -z "$perlpath"; then
|
||||||
|
perl_check_error="perl binary not found"
|
||||||
|
else
|
||||||
|
PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_cv_prog_gcc" = "xyes" -a -z "`echo $host_os|grep 'bsd\|linux'`"; then
|
||||||
|
dnl * several systems have Perl compiled with native compiler
|
||||||
|
dnl * but irssi is being compiled with GCC. Here we try to
|
||||||
|
dnl * fix those command line options a bit so GCC won't
|
||||||
|
dnl * complain about them. Normally there's only few options
|
||||||
|
dnl * that we want to keep:
|
||||||
|
dnl * -Ddefine -Uundef -I/path -fopt -mopt
|
||||||
|
PERL_CFLAGS=`echo $PERL_CFLAGS | $perlpath -pe 's/^(.* )?-[^DUIfm][^ ]+/\1/g; s/^(.* )?\+[^ ]+/\1/g'`
|
||||||
|
|
||||||
|
PERL_EXTRA_OPTS="CCCDLFLAGS=\"-fPIC\""
|
||||||
|
AC_SUBST(PERL_EXTRA_OPTS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$PERL_CFLAGS"; then
|
||||||
|
if test -n "$perl_check_error"; then
|
||||||
|
perl_check_error="Error getting perl CFLAGS"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([not found, building without Perl])
|
||||||
|
want_perl=no
|
||||||
|
else
|
||||||
|
PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
|
||||||
|
|
||||||
|
dnl * remove all database stuffs
|
||||||
|
dnl * nsl is already in ldflags
|
||||||
|
dnl * libc is of course linked without needing -lc
|
||||||
|
dnl * -rdynamic must not be in LIBADD line
|
||||||
|
for word in -ldb -ldbm -lndbm -lgdbm -lc -rdynamic; do
|
||||||
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e "s/$word //" -e "s/$word$//"`
|
||||||
|
done
|
||||||
|
|
||||||
|
case "$host_os" in
|
||||||
|
linux*)
|
||||||
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lposix //' -e 's/-lposix$//'`
|
||||||
|
;;
|
||||||
|
hpux*)
|
||||||
|
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
||||||
|
PERL_CFLAGS=`echo $PERL_CFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
|
||||||
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
dnl * check that perl's ldflags actually work
|
||||||
|
echo "#include <EXTERN.h>" > conftest.c
|
||||||
|
echo "#include <perl.h>" >> conftest.c
|
||||||
|
echo "int main(){perl_alloc(); return 0;}" >> conftest.c
|
||||||
|
$CC $CFLAGS $PERL_CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
|
||||||
|
if test ! -s conftest -a "x$ignore_perl_errors" = "x"; then
|
||||||
|
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
|
||||||
|
AC_MSG_RESULT([error linking with perl libraries, building without Perl])
|
||||||
|
want_perl=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f perl.error.tmp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_perl" != "xno"; then
|
||||||
|
AC_MSG_RESULT(ok)
|
||||||
|
|
||||||
|
if test "x$want_perl" = "xstatic"; then
|
||||||
|
dnl * building with static perl support
|
||||||
|
dnl * all PERL_LDFLAGS linking is done in fe-text
|
||||||
|
PERL_LINK_FLAGS="$PERL_LDFLAGS"
|
||||||
|
PERL_LINK_LIBS="../perl/libperl_core_static.la"
|
||||||
|
PERL_FE_LINK_LIBS="../perl/libfe_perl_static.la"
|
||||||
|
PERL_LDFLAGS=
|
||||||
|
AC_DEFINE(HAVE_STATIC_PERL)
|
||||||
|
|
||||||
|
dnl * build only static library of perl module
|
||||||
|
perl_module_lib=
|
||||||
|
perl_module_fe_lib=
|
||||||
|
perl_static_lib=libperl_core_static.la
|
||||||
|
perl_static_fe_lib=libfe_perl_static.la
|
||||||
|
else
|
||||||
|
dnl * build dynamic library of perl module
|
||||||
|
perl_module_lib=libperl_core.la
|
||||||
|
perl_module_fe_lib=libfe_perl.la
|
||||||
|
perl_static_lib=
|
||||||
|
perl_static_fe_lib=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_staticperllib" = "xyes"; then
|
||||||
|
PERL_MM_PARAMS="$PERL_MM_PARAMS LINKTYPE=static"
|
||||||
|
PERL_LINK_LIBS="$PERL_LINK_LIBS ../perl/common/blib/arch/auto/Irssi/Irssi.a ../perl/irc/blib/arch/auto/Irssi/Irc/Irc.a ../perl/ui/blib/arch/auto/Irssi/UI/UI.a ../perl/textui/blib/arch/auto/Irssi/TextUI/TextUI.a"
|
||||||
|
PERL_STATIC_LIBS=1
|
||||||
|
else
|
||||||
|
PERL_STATIC_LIBS=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# figure out the correct @INC path - we'll need to do this
|
||||||
|
# through MakeMaker since it's difficult to get it right
|
||||||
|
# otherwise.
|
||||||
|
if test "x$perl_set_use_lib" = "xyes"; then
|
||||||
|
perl -e 'use ExtUtils::MakeMaker; WriteMakefile("NAME" => "test", "MAKEFILE" => "Makefile.test");' $PERL_MM_PARAMS >/dev/null
|
||||||
|
PERL_USE_LIB=`perl -e 'open(F, "Makefile.test"); while (<F>) { chomp; if (/^(\w+) = (.*$)/) { $keys{$1} = $2; } }; $key = $keys{INSTALLARCHLIB}; while ($key =~ /\\$\((\w+)\)/) { $value = $keys{$1}; $key =~ s/\\$\($1\)/$value/; }; print $key;'`
|
||||||
|
rm -f Makefile.test
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(perl_module_lib)
|
||||||
|
AC_SUBST(perl_static_lib)
|
||||||
|
AC_SUBST(perl_module_fe_lib)
|
||||||
|
AC_SUBST(perl_static_fe_lib)
|
||||||
|
|
||||||
|
AC_SUBST(PERL_LINK_FLAGS)
|
||||||
|
AC_SUBST(PERL_LINK_LIBS)
|
||||||
|
AC_SUBST(PERL_FE_LINK_LIBS)
|
||||||
|
|
||||||
|
AC_SUBST(PERL_LDFLAGS)
|
||||||
|
AC_SUBST(PERL_CFLAGS)
|
||||||
|
|
||||||
|
AC_SUBST(PERL_USE_LIB)
|
||||||
|
AC_SUBST(PERL_MM_PARAMS)
|
||||||
|
AC_SUBST(PERL_STATIC_LIBS)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ** check what we want to build
|
||||||
|
AM_CONDITIONAL(BUILD_TEXTUI, test "$want_textui" = "yes")
|
||||||
|
AM_CONDITIONAL(BUILD_IRSSIBOT, test "$want_irssibot" = "yes")
|
||||||
|
AM_CONDITIONAL(BUILD_IRSSIPROXY, test "$want_irssiproxy" = "yes")
|
||||||
|
AM_CONDITIONAL(HAVE_PERL, test "$want_perl" != "no")
|
||||||
|
AM_CONDITIONAL(NEED_TPARM, test "$need_tparm" = "yes")
|
||||||
|
AM_CONDITIONAL(USE_CURSES, test "$want_terminfo" != "yes" -a "$want_termcap" != "yes")
|
||||||
|
|
||||||
|
# move LIBS to PROG_LIBS so they're not tried to be used when linking eg. perl libraries
|
||||||
|
PROG_LIBS=$LIBS
|
||||||
|
LIBS=
|
||||||
|
AC_SUBST(PROG_LIBS)
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** Keep all the libraries here so each frontend doesn't need to
|
||||||
|
dnl ** keep track of them all
|
||||||
|
dnl **
|
||||||
|
dnl ** (these could be made configurable)
|
||||||
|
|
||||||
|
CHAT_MODULES="irc"
|
||||||
|
irc_MODULES="dcc flood notifylist"
|
||||||
|
if test -n "$build_modules"; then
|
||||||
|
irc_MODULES="$irc_MODULES $build_modules"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ****************************************
|
||||||
|
|
||||||
|
AC_SUBST(CHAT_MODULES)
|
||||||
|
AC_SUBST(irc_MODULES)
|
||||||
|
|
||||||
|
CORE_LIBS="../core/libcore.a ../lib-config/libirssi_config.a"
|
||||||
|
FE_COMMON_LIBS=""
|
||||||
|
|
||||||
|
CHAT_LIBS=""
|
||||||
|
for c in $CHAT_MODULES; do
|
||||||
|
module_inits=""
|
||||||
|
module_deinits=""
|
||||||
|
fe_module_inits=""
|
||||||
|
fe_module_deinits=""
|
||||||
|
CHAT_LIBS="$CHAT_LIBS ../$c/lib$c.a ../$c/core/lib${c}_core.a"
|
||||||
|
if test -f $srcdir/src/fe-common/$c/module.h; then
|
||||||
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/libfe_common_$c.a "
|
||||||
|
fi
|
||||||
|
for s in `eval echo \\$${c}_MODULES`; do
|
||||||
|
CHAT_LIBS="$CHAT_LIBS ../$c/$s/lib${c}_$s.a"
|
||||||
|
module_inits="$module_inits ${c}_${s}_init();"
|
||||||
|
module_deinits="${c}_${s}_deinit(); $module_deinits"
|
||||||
|
if test -f $srcdir/src/fe-common/$c/$s/module.h; then
|
||||||
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/$s/libfe_${c}_$s.a "
|
||||||
|
fe_module_inits="$fe_module_inits fe_${c}_${s}_init();"
|
||||||
|
fe_module_deinits="fe_${c}_${s}_deinit(); $fe_module_deinits"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p src/$c
|
||||||
|
file="src/$c/$c.c"
|
||||||
|
echo "/* this file is automatically generated by configure - don't change */" > $file
|
||||||
|
echo "void ${c}_core_init(void); void ${c}_core_deinit(void);" >> $file
|
||||||
|
if test -n "$module_inits"; then
|
||||||
|
echo "$module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
|
||||||
|
echo "$module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
|
||||||
|
fi
|
||||||
|
echo "void ${c}_init(void) { ${c}_core_init(); $module_inits }" >> $file
|
||||||
|
echo "void ${c}_deinit(void) { $module_deinits ${c}_core_deinit(); }" >> $file
|
||||||
|
|
||||||
|
if test -f $srcdir/src/fe-common/$c/module.h; then
|
||||||
|
mkdir -p src/fe-common/$c
|
||||||
|
file="src/fe-common/$c/${c}-modules.c"
|
||||||
|
echo "/* this file is automatically generated by configure - don't change */" > $file
|
||||||
|
if test -n "$fe_module_inits"; then
|
||||||
|
echo "$fe_module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
|
||||||
|
echo "$fe_module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
|
||||||
|
fi
|
||||||
|
echo "void fe_${c}_modules_init(void) { $fe_module_inits }" >> $file
|
||||||
|
echo "void fe_${c}_modules_deinit(void) { $fe_module_deinits }" >> $file
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/core/libfe_common_core.a"
|
||||||
|
|
||||||
|
dnl ** common libraries needed by frontends
|
||||||
|
COMMON_NOUI_LIBS="$CHAT_LIBS $CORE_LIBS"
|
||||||
|
COMMON_LIBS="$FE_COMMON_LIBS $COMMON_NOUI_LIBS"
|
||||||
|
AC_SUBST(COMMON_NOUI_LIBS)
|
||||||
|
AC_SUBST(COMMON_LIBS)
|
||||||
|
|
||||||
|
dnl **
|
||||||
|
dnl ** IPv6 support
|
||||||
|
dnl **
|
||||||
|
|
||||||
|
have_ipv6=no
|
||||||
|
if test "x$want_ipv6" = "xyes"; then
|
||||||
|
AC_MSG_CHECKING([for IPv6])
|
||||||
|
AC_CACHE_VAL(irssi_cv_type_in6_addr,
|
||||||
|
[AC_TRY_COMPILE([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <arpa/inet.h>],
|
||||||
|
[struct in6_addr i = in6addr_any; return &i == &i;],
|
||||||
|
have_ipv6=yes,
|
||||||
|
)])
|
||||||
|
if test $have_ipv6 = yes; then
|
||||||
|
AC_DEFINE(HAVE_IPV6)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($have_ipv6)
|
||||||
|
fi
|
||||||
|
|
||||||
|
have_dane=no
|
||||||
|
if test "x$want_dane" = "xyes"; then
|
||||||
|
AC_MSG_CHECKING([for DANE])
|
||||||
|
AC_CHECK_LIB(val-threads, val_getdaneinfo,
|
||||||
|
[
|
||||||
|
LIBS="$LIBS -lval-threads -lsres"
|
||||||
|
AC_DEFINE([HAVE_DANE], [], [DANE support])
|
||||||
|
have_dane=yes
|
||||||
|
], [], [-lssl -lcrypto -lsres -lpthread])
|
||||||
|
|
||||||
|
if test x$have_dane = "xyes" ; then
|
||||||
|
if test x$have_openssl = "xno" ; then
|
||||||
|
AC_ERROR([SSL is required to build Irssi with DANE support enabled.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_truecolor" = "xyes" -a "x$want_termcap" != "xyes" -a "x$want_terminfo" = "xyes" ; then
|
||||||
|
AC_DEFINE([TERM_TRUECOLOR], [], [true color support in terminal])
|
||||||
|
else
|
||||||
|
want_truecolor=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
src/Makefile
|
||||||
|
src/core/Makefile
|
||||||
|
src/irc/Makefile
|
||||||
|
src/irc/core/Makefile
|
||||||
|
src/irc/dcc/Makefile
|
||||||
|
src/irc/notifylist/Makefile
|
||||||
|
src/irc/proxy/Makefile
|
||||||
|
src/irc/flood/Makefile
|
||||||
|
src/fe-common/Makefile
|
||||||
|
src/fe-common/core/Makefile
|
||||||
|
src/fe-common/irc/Makefile
|
||||||
|
src/fe-common/irc/dcc/Makefile
|
||||||
|
src/fe-common/irc/notifylist/Makefile
|
||||||
|
src/fe-none/Makefile
|
||||||
|
src/fe-text/Makefile
|
||||||
|
src/lib-config/Makefile
|
||||||
|
src/perl/Makefile
|
||||||
|
src/perl/common/Makefile.PL
|
||||||
|
src/perl/irc/Makefile.PL
|
||||||
|
src/perl/ui/Makefile.PL
|
||||||
|
src/perl/textui/Makefile.PL
|
||||||
|
scripts/Makefile
|
||||||
|
scripts/examples/Makefile
|
||||||
|
docs/Makefile
|
||||||
|
docs/help/Makefile
|
||||||
|
docs/help/in/Makefile
|
||||||
|
irssi-config
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_OUTPUT
|
||||||
|
|
||||||
|
dnl ** for building from objdir
|
||||||
|
old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir
|
||||||
|
if test "x$old_dir" != "x$whole_dir"; then
|
||||||
|
if test "x$want_perl" != "xno"; then
|
||||||
|
subdirfiles=""
|
||||||
|
for i in $whole_dir/src/perl/common $whole_dir/src/perl/irc $whole_dir/src/perl/ui $whole_dir/src/perl/textui; do
|
||||||
|
subdirfiles=`echo $subdirfiles $i/typemap $i/module.h $i/*.pm $i/*.xs`
|
||||||
|
done
|
||||||
|
for file in $whole_dir/src/perl/module.h $subdirfiles; do
|
||||||
|
link=`echo $file|$sedpath "s?$whole_dir/??"`
|
||||||
|
rm -f $link
|
||||||
|
$LN_S $file $link
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test "x$want_textui" = "xno"; then
|
||||||
|
text=no
|
||||||
|
elif test "x$want_termcap" = "xyes"; then
|
||||||
|
text="yes, using termcap"
|
||||||
|
elif test "x$want_terminfo" = "xyes"; then
|
||||||
|
text="yes, using terminfo"
|
||||||
|
else
|
||||||
|
text="yes, using curses"
|
||||||
|
fi
|
||||||
|
echo "Building text frontend ........... : $text"
|
||||||
|
echo "Building irssi bot ............... : $want_irssibot"
|
||||||
|
echo "Building irssi proxy ............. : $want_irssiproxy"
|
||||||
|
if test "x$have_gmodule" = "xyes"; then
|
||||||
|
echo "Building with module support ..... : yes"
|
||||||
|
else
|
||||||
|
echo "Building with module support : NO!! /LOAD will not work!"
|
||||||
|
echo " - You're missing gmodule (comes with glib) for some reason,"
|
||||||
|
echo " or it doesn't work in your system."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_perl" = "xstatic"; then
|
||||||
|
echo "Building with Perl support ....... : static (in irssi binary)"
|
||||||
|
elif test "x$want_perl" = "xmodule"; then
|
||||||
|
echo "Building with Perl support ....... : module"
|
||||||
|
else
|
||||||
|
if test -z "$perl_check_error"; then
|
||||||
|
echo "Building with Perl support ....... : no"
|
||||||
|
else
|
||||||
|
echo "Building with Perl support ....... : NO!"
|
||||||
|
echo " - $perl_check_error"
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
echo " - Try: sudo apt-get install libperl-dev"
|
||||||
|
elif test -f /etc/redhat-release; then
|
||||||
|
echo " - Try installing perl-devel"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then
|
||||||
|
echo " - NOTE: Perl support will be compiled statically to irssi, not as"
|
||||||
|
echo " a module as requested. Reason:"
|
||||||
|
echo " $perl_mod_error"
|
||||||
|
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
echo " - Try: sudo apt-get install libperl-dev"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$want_perl" != "xno"; then
|
||||||
|
if test "$perl_library_dir" = "PERL_USE_LIB"; then
|
||||||
|
perl_library_dir=$PERL_USE_LIB
|
||||||
|
fi
|
||||||
|
if test -z "$perl_library_dir"; then
|
||||||
|
perl_library_dir="(site default - `$perlpath -e 'use Config; print $Config{sitearch}'`)"
|
||||||
|
fi
|
||||||
|
echo "Perl library directory ........... : $perl_library_dir"
|
||||||
|
if test "x$perl_prefix_note" = "xyes"; then
|
||||||
|
echo " - NOTE: This was automatically set to the same directory you gave with"
|
||||||
|
echo " --prefix. If you want the perl libraries to install to their 'correct'"
|
||||||
|
echo " path, you'll need to give --with-perl-lib=site option to configure."
|
||||||
|
echo " Anyway, installing perl to this directory should work just as well."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo "Install prefix ................... : $prefix"
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "Building with IPv6 support ....... : $have_ipv6"
|
||||||
|
echo "Building with SSL support ........ : $have_openssl"
|
||||||
|
if test "x$have_openssl" = "xno" -a "x$enable_ssl" = "xyes"; then
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
echo " - Try: sudo apt-get install libssl-dev"
|
||||||
|
elif test -f /etc/redhat-release; then
|
||||||
|
echo " - Try installing openssl-devel"
|
||||||
|
else
|
||||||
|
echo " - Try installing OpenSSL development headers"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo "Building with 64bit DCC support .. : $offt_64bit"
|
||||||
|
echo "Building with garbage collector .. : $have_gc"
|
||||||
|
echo "Building with DANE support ....... : $have_dane"
|
||||||
|
echo "Building with true color support.. : $want_truecolor"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "If there are any problems, read the INSTALL file."
|
||||||
|
|
@ -120,7 +120,7 @@ abstracts = {
|
||||||
# the basic styling of how to print message, $0 = nick mode, $1 = nick
|
# the basic styling of how to print message, $0 = nick mode, $1 = nick
|
||||||
msgnick = "%K<%n$0$1-%K>%n %|";
|
msgnick = "%K<%n$0$1-%K>%n %|";
|
||||||
|
|
||||||
# message from you is printed. "ownnick" specifies the styling of the
|
# message from you is printed. "msgownnick" specifies the styling of the
|
||||||
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
|
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
|
||||||
# whole line.
|
# whole line.
|
||||||
|
|
||||||
|
|
@ -202,7 +202,6 @@ abstracts = {
|
||||||
# notices
|
# notices
|
||||||
ownnotice = "[%r$0%K(%R$1-%K)]%n ";
|
ownnotice = "[%r$0%K(%R$1-%K)]%n ";
|
||||||
notice = "%K-%M$*%K-%n ";
|
notice = "%K-%M$*%K-%n ";
|
||||||
pubnotice = "%K-%M$0$1-%K-%n %|";
|
|
||||||
pubnotice_channel = "%K:%m$*";
|
pubnotice_channel = "%K:%m$*";
|
||||||
pvtnotice_host = "%K(%m$*%K)";
|
pvtnotice_host = "%K(%m$*%K)";
|
||||||
servernotice = "%g!$*%n ";
|
servernotice = "%g!$*%n ";
|
||||||
|
|
@ -252,7 +251,6 @@ abstracts = {
|
||||||
# default background for all statusbars. You can also give
|
# default background for all statusbars. You can also give
|
||||||
# the default foreground color for statusbar items.
|
# the default foreground color for statusbar items.
|
||||||
sb_background = "%4%w";
|
sb_background = "%4%w";
|
||||||
window_border = "%4%w";
|
|
||||||
|
|
||||||
# default backround for "default" statusbar group
|
# default backround for "default" statusbar group
|
||||||
#sb_default_bg = "%4";
|
#sb_default_bg = "%4";
|
||||||
|
|
@ -263,8 +261,8 @@ abstracts = {
|
||||||
# background for topicbar (same default)
|
# background for topicbar (same default)
|
||||||
#sb_topic_bg = "%4";
|
#sb_topic_bg = "%4";
|
||||||
|
|
||||||
# text at the beginning of statusbars. "sb" already puts a space there,
|
# text at the beginning of statusbars. sb-item already puts
|
||||||
# so we don't use anything by default.
|
# space there,so we don't use anything by default.
|
||||||
sbstart = "";
|
sbstart = "";
|
||||||
# text at the end of statusbars. Use space so that it's never
|
# text at the end of statusbars. Use space so that it's never
|
||||||
# used for anything.
|
# used for anything.
|
||||||
19
docs/Makefile.am
Normal file
19
docs/Makefile.am
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
docdir = $(datadir)/doc/irssi
|
||||||
|
|
||||||
|
man_MANS = \
|
||||||
|
irssi.1
|
||||||
|
|
||||||
|
doc_DATA = \
|
||||||
|
design.txt \
|
||||||
|
formats.txt \
|
||||||
|
manual.txt \
|
||||||
|
faq.html \
|
||||||
|
faq.txt \
|
||||||
|
perl.txt \
|
||||||
|
signals.txt \
|
||||||
|
special_vars.txt \
|
||||||
|
startup-HOWTO.html
|
||||||
|
|
||||||
|
EXTRA_DIST = $(doc_DATA) $(man_MANS)
|
||||||
|
|
||||||
|
SUBDIRS = help
|
||||||
|
|
@ -1,110 +0,0 @@
|
||||||
<base href='https://irssi.org/New-users/'>
|
|
||||||
<h1>New users guide</h1>
|
|
||||||
<section id="new-to-irc">
|
|
||||||
<h2>New to IRC</h2>
|
|
||||||
<p>Internet Relay Chat was created in 1988 and has hardly changed. It can be used to exchange text messages (one message = single line) with other people, either privately (called query, PM, private message, MSG) or in a room (channel). Pictures are shared by uploading them to a temporary host like <a class="reference external" href="https://pomf.lain.la/">https://pomf.lain.la/</a> and then pasting the HTTP links. Code snippets or longer texts are shared by pasting them to a Pastebin like <a class="reference external" href="https://paste.opensuse.org/">https://paste.opensuse.org/</a> and then sharing the HTTP link.</p>
|
|
||||||
<p>IRC does not have message history. You can only receive replies while your computer is turned on and connected to the channel you want to follow. Some people run their IRC programs on remote servers for that reason.</p>
|
|
||||||
<p>IRC is organised into networks. Each network consists of many servers. It (mostly) does not matter which server you connect to as long as it belongs to the network you want to use. Irssi supports connections to many networks at the same time.</p>
|
|
||||||
<p>Each network contains many channels, rooms that are often dedicated to discussing a specific topic. You can find many channels on <a class="reference external" href="https://netsplit.de/">https://netsplit.de/</a> or using a search engine with the keyword “IRC”. Irssi supports joining many channels at the same time.</p>
|
|
||||||
<p>There is a rather large IRC network catering to free and open-source software and peer directed projects at <a class="reference external" href="https://libera.chat/">https://libera.chat/</a> and a smaller one at <a class="reference external" href="https://www.oftc.net/">https://www.oftc.net/</a> – many free software projects still have support channels on these IRC networks (although some have moved to Matrix or proprietary platforms like Discord).</p>
|
|
||||||
</section>
|
|
||||||
<section id="first-start">
|
|
||||||
<h2>First start</h2>
|
|
||||||
<p>After (compiling and) installing Irssi, to start it, open a shell (Terminal) and type:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>irssi
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>You should be greeted by a blinking cursor behind <code class="docutils literal notranslate">[(status)]</code>. You are now in the status window of Irssi. Window is the Irssi name for what you might nowadays call a “Web browser tab”.</p>
|
|
||||||
<p>If you’re confused about what you are seeing on the Irssi screen, you can find an annotated screenshot of it at <a class="reference internal" href="../User-interface/">User interface</a>.</p>
|
|
||||||
<p>If you want, you can pick a nick name (handle) that will be shown to others reading your messages now, by typing</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/set nick whatyouwant
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>Each command or message can be sent by pressing Enter. Commands in Irssi start with a <code class="docutils literal notranslate">/</code>. If there is no <code class="docutils literal notranslate">/</code>, then the line that you wrote will be sent as a message to the channel that you have open, for everyone to see.</p>
|
|
||||||
<section id="leaving">
|
|
||||||
<h3>Leaving</h3>
|
|
||||||
<p>Type <code class="docutils literal notranslate">/quit</code> to get out of Irssi.</p>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<section id="connecting-to-a-network">
|
|
||||||
<h2>Connecting to a network</h2>
|
|
||||||
<p>Irssi comes with some predefined networks. You can see the current list of networks by typing</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/network
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>(the list will be shown in your status window)</p>
|
|
||||||
<p>To connect to one of the networks in the list, type <code class="docutils literal notranslate">/connect networkname</code>, for example:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/connect liberachat
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>You should see several messages scroll by. After a while, you should be connected to the Libera Chat network.</p>
|
|
||||||
<div class="admonition attention">
|
|
||||||
<p class="admonition-title">Attention</p>
|
|
||||||
<p>Irssi version 1.2 or older may be lacking the liberachat network entry. See <a class="reference external" href="https://github.com/shabble/irssi-docs/wiki/liberachat">https://github.com/shabble/irssi-docs/wiki/liberachat</a> for how to add it.</p>
|
|
||||||
</div>
|
|
||||||
<section id="nickname-registration">
|
|
||||||
<h3>Nickname registration</h3>
|
|
||||||
<p>Many IRC networks (but not all) offer a way to register a user account. Sometimes (but not on all networks) the account registration also includes reserving a nick for you. <em>How</em> to register also differs by network. Some <em>channels</em> only allow users with registered accounts to join them, so it may be very important for you to register a user account.</p>
|
|
||||||
<p>User accounts are always specific to a network.</p>
|
|
||||||
<p>For the Libera Chat network, you can find instructions how to register and set up your account with Irssi on <a class="reference external" href="https://github.com/shabble/irssi-docs/wiki/liberachat#configure-sasl-automated-log-in">https://github.com/shabble/irssi-docs/wiki/liberachat#configure-sasl-automated-log-in</a></p>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<section id="joining-a-channel">
|
|
||||||
<h2>Joining a channel</h2>
|
|
||||||
<p>Once you are connected to a network, you can join channels by typing <code class="docutils literal notranslate">/join #channelname</code>, for example:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/join #irssi
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>Now, a new window will open and you can send messages to the channel.</p>
|
|
||||||
<section id="changing-windows">
|
|
||||||
<h3>Changing windows</h3>
|
|
||||||
<p>You can change between windows using the <code class="docutils literal notranslate">Ctrl</code>+<code class="docutils literal notranslate">n</code> or <code class="docutils literal notranslate">Ctrl</code>+<code class="docutils literal notranslate">p</code> keys, or–if your terminal is configured properly–using <code class="docutils literal notranslate">Alt</code>+<code class="docutils literal notranslate">1</code>, <code class="docutils literal notranslate">Alt</code>+<code class="docutils literal notranslate">2</code>, … See <a class="reference internal" href="../documentation/help/bind_-list/">bind -list</a> for a list of all default key bindings.</p>
|
|
||||||
</section>
|
|
||||||
<section id="removing-clutter">
|
|
||||||
<h3>Removing clutter</h3>
|
|
||||||
<p>By default, Irssi shows when someone joins or leaves a channel. These messages can waste a lot of lines and obscure the actual chat. To hide them, type</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/window hidelevel +joins +parts +quits
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>To get them back</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/window hidelevel -joins -parts -quits
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>If you want to hide them by default, <code class="docutils literal notranslate">/set window_default_hidelevel hidden joins parts quits</code></p>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<section id="adding-a-new-network">
|
|
||||||
<h2>Adding a new network</h2>
|
|
||||||
<p>If you want to join a network that is not there, you first need to find at least one server of that network. Let’s say you have found the room <a class="reference external" href="https://netsplit.de/channels/details.php?room=%23hackint&net=hackint">#hackint</a> on netsplit.de and want to join it. Then you can find that the <a class="reference external" href="https://netsplit.de/servers/?net=hackint">server</a> is irc.hackint.org, port 6697, SSL (TLS) on. To add it to Irssi, use the commands:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/network add hackint
|
|
||||||
/server add -tls -network hackint irc.hackint.org 6697
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>Then, you can connect to the newly added network with</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/connect hackint
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<section id="multiple-networks">
|
|
||||||
<h3>Multiple networks</h3>
|
|
||||||
<p>If you are connected to multiple networks, you can change which one you are “talking” to (which one to send commands) by using the <code class="docutils literal notranslate">Ctrl</code>+<code class="docutils literal notranslate">x</code> key in the status window.</p>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<section id="on-line-help">
|
|
||||||
<h2>On-line help</h2>
|
|
||||||
<p>Most /commands have a help page, you can read it with</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/help commandname
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>or <a class="reference internal" href="../documentation/help/">on-line</a>.</p>
|
|
||||||
<p>The settings that can be changed with /SET are described on <a class="reference internal" href="../documentation/settings/">Settings Documentation</a> – the settingshelp <a class="reference internal" href="#about-scripts">script</a> can be used to read it from within <code class="docutils literal notranslate">/help</code></p>
|
|
||||||
</section>
|
|
||||||
<section id="about-scripts">
|
|
||||||
<h2>About Scripts</h2>
|
|
||||||
<p>You can enhance your Irssi by installing scripts. Many Perl scripts written by other Irssi users can be found on <a class="reference external" href="https://scripts.irssi.org/">https://scripts.irssi.org/</a></p>
|
|
||||||
<p>Most of them should be compatible with Irssi 1.4 (but some may not, also see the Full Change log for some incompatible ones)</p>
|
|
||||||
</section>
|
|
||||||
<section id="about-themes">
|
|
||||||
<h2>About Themes</h2>
|
|
||||||
<p>Irssi’s look can be thoroughly changed with themes. Many themes created by other Irssi users can be found on <a class="reference external" href="https://themes.irssi.org/">https://themes.irssi.org/</a></p>
|
|
||||||
<p>If you want to modify the look of Irssi yourself, the <em>default</em> theme which can be found in your <code class="docutils literal notranslate">~/.irssi</code> folder is a good starting point. It also has a few comments explaining what some of the abstracts are used for</p>
|
|
||||||
</section>
|
|
||||||
|
|
@ -1,193 +0,0 @@
|
||||||
# New users guide #
|
|
||||||
|
|
||||||
## New to IRC ##
|
|
||||||
|
|
||||||
Internet Relay Chat was created in 1988 and has hardly changed. It can be used
|
|
||||||
to exchange text messages (one message = single line) with other people, either
|
|
||||||
privately (called query, PM, private message, MSG) or in a room (channel).
|
|
||||||
Pictures are shared by uploading them to a temporary host like [1]https://
|
|
||||||
pomf.lain.la/ and then pasting the HTTP links. Code snippets or longer texts
|
|
||||||
are shared by pasting them to a Pastebin like [2]https://paste.opensuse.org/
|
|
||||||
and then sharing the HTTP link.
|
|
||||||
|
|
||||||
IRC does not have message history. You can only receive replies while your
|
|
||||||
computer is turned on and connected to the channel you want to follow. Some
|
|
||||||
people run their IRC programs on remote servers for that reason.
|
|
||||||
|
|
||||||
IRC is organised into networks. Each network consists of many servers. It
|
|
||||||
(mostly) does not matter which server you connect to as long as it belongs to
|
|
||||||
the network you want to use. Irssi supports connections to many networks at the
|
|
||||||
same time.
|
|
||||||
|
|
||||||
Each network contains many channels, rooms that are often dedicated to
|
|
||||||
discussing a specific topic. You can find many channels on [3]https://
|
|
||||||
netsplit.de/ or using a search engine with the keyword “IRC”. Irssi supports
|
|
||||||
joining many channels at the same time.
|
|
||||||
|
|
||||||
There is a rather large IRC network catering to free and open-source software
|
|
||||||
and peer directed projects at [4]https://libera.chat/ and a smaller one at [5]
|
|
||||||
https://www.oftc.net/ – many free software projects still have support channels
|
|
||||||
on these IRC networks (although some have moved to Matrix or proprietary
|
|
||||||
platforms like Discord).
|
|
||||||
|
|
||||||
## First start ##
|
|
||||||
|
|
||||||
After (compiling and) installing Irssi, to start it, open a shell (Terminal)
|
|
||||||
and type:
|
|
||||||
|
|
||||||
irssi
|
|
||||||
|
|
||||||
You should be greeted by a blinking cursor behind [(status)]. You are now in
|
|
||||||
the status window of Irssi. Window is the Irssi name for what you might
|
|
||||||
nowadays call a “Web browser tab”.
|
|
||||||
|
|
||||||
If you’re confused about what you are seeing on the Irssi screen, you can find
|
|
||||||
an annotated screenshot of it at [6]User interface.
|
|
||||||
|
|
||||||
If you want, you can pick a nick name (handle) that will be shown to others
|
|
||||||
reading your messages now, by typing
|
|
||||||
|
|
||||||
/set nick whatyouwant
|
|
||||||
|
|
||||||
Each command or message can be sent by pressing Enter. Commands in Irssi start
|
|
||||||
with a /. If there is no /, then the line that you wrote will be sent as a
|
|
||||||
message to the channel that you have open, for everyone to see.
|
|
||||||
|
|
||||||
### Leaving ###
|
|
||||||
|
|
||||||
Type /quit to get out of Irssi.
|
|
||||||
|
|
||||||
## Connecting to a network ##
|
|
||||||
|
|
||||||
Irssi comes with some predefined networks. You can see the current list of
|
|
||||||
networks by typing
|
|
||||||
|
|
||||||
/network
|
|
||||||
|
|
||||||
(the list will be shown in your status window)
|
|
||||||
|
|
||||||
To connect to one of the networks in the list, type /connect networkname, for
|
|
||||||
example:
|
|
||||||
|
|
||||||
/connect liberachat
|
|
||||||
|
|
||||||
You should see several messages scroll by. After a while, you should be
|
|
||||||
connected to the Libera Chat network.
|
|
||||||
|
|
||||||
Attention
|
|
||||||
|
|
||||||
Irssi version 1.2 or older may be lacking the liberachat network entry. See [7]
|
|
||||||
https://github.com/shabble/irssi-docs/wiki/liberachat for how to add it.
|
|
||||||
|
|
||||||
### Nickname registration ###
|
|
||||||
|
|
||||||
Many IRC networks (but not all) offer a way to register a user account.
|
|
||||||
Sometimes (but not on all networks) the account registration also includes
|
|
||||||
reserving a nick for you. How to register also differs by network. Some
|
|
||||||
channels only allow users with registered accounts to join them, so it may be
|
|
||||||
very important for you to register a user account.
|
|
||||||
|
|
||||||
User accounts are always specific to a network.
|
|
||||||
|
|
||||||
For the Libera Chat network, you can find instructions how to register and set
|
|
||||||
up your account with Irssi on [8]https://github.com/shabble/irssi-docs/wiki/
|
|
||||||
liberachat#configure-sasl-automated-log-in
|
|
||||||
|
|
||||||
## Joining a channel ##
|
|
||||||
|
|
||||||
Once you are connected to a network, you can join channels by typing /join #
|
|
||||||
channelname, for example:
|
|
||||||
|
|
||||||
/join #irssi
|
|
||||||
|
|
||||||
Now, a new window will open and you can send messages to the channel.
|
|
||||||
|
|
||||||
### Changing windows ###
|
|
||||||
|
|
||||||
You can change between windows using the Ctrl+n or Ctrl+p keys, or–if your
|
|
||||||
terminal is configured properly–using Alt+1, Alt+2, … See [9]bind -list for a
|
|
||||||
list of all default key bindings.
|
|
||||||
|
|
||||||
### Removing clutter ###
|
|
||||||
|
|
||||||
By default, Irssi shows when someone joins or leaves a channel. These messages
|
|
||||||
can waste a lot of lines and obscure the actual chat. To hide them, type
|
|
||||||
|
|
||||||
/window hidelevel +joins +parts +quits
|
|
||||||
|
|
||||||
To get them back
|
|
||||||
|
|
||||||
/window hidelevel -joins -parts -quits
|
|
||||||
|
|
||||||
If you want to hide them by default, /set window_default_hidelevel hidden joins
|
|
||||||
parts quits
|
|
||||||
|
|
||||||
## Adding a new network ##
|
|
||||||
|
|
||||||
If you want to join a network that is not there, you first need to find at
|
|
||||||
least one server of that network. Let’s say you have found the room [10]#
|
|
||||||
hackint on netsplit.de and want to join it. Then you can find that the [11]
|
|
||||||
server is irc.hackint.org, port 6697, SSL (TLS) on. To add it to Irssi, use the
|
|
||||||
commands:
|
|
||||||
|
|
||||||
/network add hackint
|
|
||||||
/server add -tls -network hackint irc.hackint.org 6697
|
|
||||||
|
|
||||||
Then, you can connect to the newly added network with
|
|
||||||
|
|
||||||
/connect hackint
|
|
||||||
|
|
||||||
### Multiple networks ###
|
|
||||||
|
|
||||||
If you are connected to multiple networks, you can change which one you are
|
|
||||||
“talking” to (which one to send commands) by using the Ctrl+x key in the status
|
|
||||||
window.
|
|
||||||
|
|
||||||
## On-line help ##
|
|
||||||
|
|
||||||
Most /commands have a help page, you can read it with
|
|
||||||
|
|
||||||
/help commandname
|
|
||||||
|
|
||||||
or [12]on-line.
|
|
||||||
|
|
||||||
The settings that can be changed with /SET are described on [13]Settings
|
|
||||||
Documentation – the settingshelp [14]script can be used to read it from within
|
|
||||||
/help
|
|
||||||
|
|
||||||
## About Scripts ##
|
|
||||||
|
|
||||||
You can enhance your Irssi by installing scripts. Many Perl scripts written by
|
|
||||||
other Irssi users can be found on [15]https://scripts.irssi.org/
|
|
||||||
|
|
||||||
Most of them should be compatible with Irssi 1.4 (but some may not, also see
|
|
||||||
the Full Change log for some incompatible ones)
|
|
||||||
|
|
||||||
## About Themes ##
|
|
||||||
|
|
||||||
Irssi’s look can be thoroughly changed with themes. Many themes created by
|
|
||||||
other Irssi users can be found on [16]https://themes.irssi.org/
|
|
||||||
|
|
||||||
If you want to modify the look of Irssi yourself, the default theme which can
|
|
||||||
be found in your ~/.irssi folder is a good starting point. It also has a few
|
|
||||||
comments explaining what some of the abstracts are used for
|
|
||||||
|
|
||||||
|
|
||||||
References:
|
|
||||||
|
|
||||||
[1] https://pomf.lain.la/
|
|
||||||
[2] https://paste.opensuse.org/
|
|
||||||
[3] https://netsplit.de/
|
|
||||||
[4] https://libera.chat/
|
|
||||||
[5] https://www.oftc.net/
|
|
||||||
[6] https://irssi.org/User-interface/
|
|
||||||
[7] https://github.com/shabble/irssi-docs/wiki/liberachat
|
|
||||||
[8] https://github.com/shabble/irssi-docs/wiki/liberachat#configure-sasl-automated-log-in
|
|
||||||
[9] https://irssi.org/documentation/help/bind_-list/
|
|
||||||
[10] https://netsplit.de/channels/details.php?room=%23hackint&net=hackint
|
|
||||||
[11] https://netsplit.de/servers/?net=hackint
|
|
||||||
[12] https://irssi.org/documentation/help/
|
|
||||||
[13] https://irssi.org/documentation/settings/
|
|
||||||
[14] https://irssi.org/New-users/#about-scripts
|
|
||||||
[15] https://scripts.irssi.org/
|
|
||||||
[16] https://themes.irssi.org/
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
Capsicum is a lightweight OS capability and sandbox framework provided
|
|
||||||
by FreeBSD. When built with Capsicum support - which is the default under
|
|
||||||
FreeBSD - Irssi can enter a Capsicum capability mode (a sandbox), greatly
|
|
||||||
limiting possible consequences of a potential security hole in Irssi
|
|
||||||
or the libraries it depends on.
|
|
||||||
|
|
||||||
To make Irssi enter capability mode on startup, add
|
|
||||||
|
|
||||||
capsicum = "yes";
|
|
||||||
awaylog_file = "~/irclogs/away.log";
|
|
||||||
|
|
||||||
to your ~/.irssi/config in the settings/core section, and restart the
|
|
||||||
client. Alternatively you can enter it "by hand", using the
|
|
||||||
"/capsicum enter" command. From the security point of view it's strongly
|
|
||||||
preferable to use the former method, to avoid establishing connections
|
|
||||||
without the sandbox protection; the "/capsicum" command is only intended
|
|
||||||
for experimentation, and in cases where you need to do something that's not
|
|
||||||
possible in capability mode - run scripts, for example - before continuing.
|
|
||||||
|
|
||||||
There is no way to leave the capability mode, apart from exiting Irssi.
|
|
||||||
When running in capability mode, there are certain restrictions - Irssi
|
|
||||||
won't be able to access any files outside the directory pointed to by
|
|
||||||
capsicum_irclogs_path (which defaults to ~/irclogs/). If you change
|
|
||||||
the path when already in capability mode it won't be effective until
|
|
||||||
you restart Irssi. Capability mode also makes it impossible to use
|
|
||||||
the "/save" command.
|
|
||||||
|
|
||||||
Currently there is no way to use custom SSL certificates. As a workaround
|
|
||||||
you can establish connections and enter the capability mode afterwards
|
|
||||||
using the "/capsicum enter" command.
|
|
||||||
|
|
||||||
165
docs/design.html
165
docs/design.html
|
|
@ -1,165 +0,0 @@
|
||||||
<base href='https://irssi.org/documentation/design/'>
|
|
||||||
<h1>Design</h1>
|
|
||||||
<p>Irssi’s hierarchy is something like this:</p>
|
|
||||||
|
|
||||||
<pre class="repl" id="fig1"><code class="language-ascidia">
|
|
||||||
sub1 sub2
|
|
||||||
\ /
|
|
||||||
xxx IRC COMMON ICQ yyy
|
|
||||||
| | | | |
|
|
||||||
'----+-----:-----+----+----'
|
|
||||||
|
|
|
||||||
GUI (gtk/gnome, qt/kde, text, none)
|
|
||||||
|
|
|
||||||
sub1 sub2 |
|
|
||||||
\ / |
|
|
||||||
xxx IRC | COMMON ICQ yyy
|
|
||||||
'----+-----+-----+----+----'
|
|
||||||
|
|
|
||||||
COMMON UI
|
|
||||||
|
|
|
||||||
sub1 sub2 |
|
|
||||||
\ / |
|
|
||||||
xxx IRC | ICQ yyy
|
|
||||||
| | | | |
|
|
||||||
'----+-----+-----+----'
|
|
||||||
|
|
|
||||||
CORE
|
|
||||||
/
|
|
||||||
lib-config
|
|
||||||
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p>(IRC, ICQ, xxx and yyy are chat protocols ..)</p>
|
|
||||||
|
|
||||||
<p>(sub1 and sub2 are submodules of IRC module, like DCC and flood protect)</p>
|
|
||||||
|
|
||||||
<p>Chat protocols and frontends are kept in separate modules. Common UI
|
|
||||||
and GUI modules also have the common parts which don’t know anything
|
|
||||||
about the chat protocols. This should allow implementing modules to
|
|
||||||
whatever chat protocols and with whatever frontends easily.</p>
|
|
||||||
|
|
||||||
<h2 id="signals">Signals</h2>
|
|
||||||
|
|
||||||
<p>Communication between different modules are done with “signals”. They are
|
|
||||||
not related to UNIX signals in any way, you could more like think of them
|
|
||||||
as “events” - which might be a better name for them, but I don’t really
|
|
||||||
want to change it anymore :)</p>
|
|
||||||
|
|
||||||
<p>So, you send signal with <code>signal_emit()</code> and it’s sent to all modules that
|
|
||||||
have grabbed it by calling <code>signal_add()</code> in their init function. For
|
|
||||||
example:</p>
|
|
||||||
|
|
||||||
<div><div><pre><code>signal_emit("mysignal", 1, "hello");
|
|
||||||
</code></pre></div></div>
|
|
||||||
|
|
||||||
<p>Sends a “mysignal” function with one argument “hello” - before that, you
|
|
||||||
should have grabbed the signal somewhere else with:</p>
|
|
||||||
|
|
||||||
<div><div><pre><code>static void sig_mysignal(const char *arg1)
|
|
||||||
{
|
|
||||||
/* arg1 contains "hello" */
|
|
||||||
}
|
|
||||||
|
|
||||||
signal_add("mysignal", (SIGNAL_FUNC) sig_mysignal);
|
|
||||||
</code></pre></div></div>
|
|
||||||
|
|
||||||
<p>There are three different <code>signal_add()</code> functions which you can use to
|
|
||||||
specify if you want to grab the signal first, “normally” or last. You can
|
|
||||||
also stop the signal from going any further.</p>
|
|
||||||
|
|
||||||
<p>Emitting signal with it’s name creates a small overhead since it has to
|
|
||||||
look up the signal’s numeric ID first, after which it looks up the signal
|
|
||||||
structure. This is done because if you call a signal <em>really</em> often,
|
|
||||||
it’s faster to find it with it’s numeric ID instead of the string. You
|
|
||||||
can use <code>signal_get_uniq_id()</code> macro to convert the signal name into ID -
|
|
||||||
you’ll have to do this only once! - and use <code>signal_emit_id()</code> to emit the
|
|
||||||
signal. Don’t bother to do this unless your signal is sent (or could be
|
|
||||||
sent) several times in a second.</p>
|
|
||||||
|
|
||||||
<p>See <code>src/core/signals.h</code> for definition of the signal function, and
|
|
||||||
signals.txt for a list of signals.</p>
|
|
||||||
|
|
||||||
<h2 id="lib-config">lib-config</h2>
|
|
||||||
|
|
||||||
<p>Irssi depends on this for reading and saving configuration.
|
|
||||||
(created by me for irssi)</p>
|
|
||||||
|
|
||||||
<h2 id="core-module">CORE module</h2>
|
|
||||||
|
|
||||||
<p>Provides some functionality that all other modules can use:</p>
|
|
||||||
<ul>
|
|
||||||
<li>signal handling</li>
|
|
||||||
<li>keeping list of settings</li>
|
|
||||||
<li>keeping list of /commands</li>
|
|
||||||
<li>keeping track of loaded modules</li>
|
|
||||||
<li>networking functions (with nonblocking connects, IPv6 support)</li>
|
|
||||||
<li>handles connecting to servers</li>
|
|
||||||
<li>raw logging of server’s input/output data</li>
|
|
||||||
<li>/EVAL support</li>
|
|
||||||
<li>fgets() like function line_split() without any maximum line limits</li>
|
|
||||||
<li>command line parameter handling</li>
|
|
||||||
<li>miscellaneous useful little functions</li>
|
|
||||||
<li>handles logging</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="common-ui-module">COMMON UI module</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>knows basics about windows and window items (=channels, queries, ..)</li>
|
|
||||||
<li>printtext() - parsing texts and feeding it for GUI to print.</li>
|
|
||||||
<li>themes</li>
|
|
||||||
<li>translation tables</li>
|
|
||||||
<li>text hilighting</li>
|
|
||||||
<li>command history</li>
|
|
||||||
<li>user interface (/commands) for CORE’s functionality</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="gui-modules">GUI modules</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>all the rest of the functionality needed for a working client.</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="irc-module">IRC module</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>CORE
|
|
||||||
<ul>
|
|
||||||
<li>IRC specific /commands</li>
|
|
||||||
<li>flood protecting commands sent to server</li>
|
|
||||||
<li>creating IRC masks based on nick/address for bans, ignores, etc.</li>
|
|
||||||
<li>keeps list of channels, nicks, channel modes, bans, etc.</li>
|
|
||||||
<li>keeps list of servers, server settings, irc networks,
|
|
||||||
server reconnections and irc network splits</li>
|
|
||||||
<li>redirection of commands’ replies</li>
|
|
||||||
<li>lag detection</li>
|
|
||||||
<li>ctcp support and flood protection</li>
|
|
||||||
<li>Handles ignoring people</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>DCC
|
|
||||||
<ul>
|
|
||||||
<li>DCC chat, send and get</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>FLOOD
|
|
||||||
<ul>
|
|
||||||
<li>detects private or channel flooding and sends “flood” signal</li>
|
|
||||||
<li>automatic ignoring when flooding</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>NOTIFYLIST
|
|
||||||
<ul>
|
|
||||||
<li>handles notifylist</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="irc-ui-module">IRC UI module</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>placing channels and queries in windows</li>
|
|
||||||
<li>nick completion</li>
|
|
||||||
<li>printing infomation of some events</li>
|
|
||||||
</ul>
|
|
||||||
231
docs/design.txt
231
docs/design.txt
|
|
@ -1,139 +1,150 @@
|
||||||
Design
|
|
||||||
|
|
||||||
Irssi’s hierarchy is something like this:
|
Irssi's hierarchy is something like this:
|
||||||
|
|
||||||
sub1 sub2
|
|
||||||
\ /
|
|
||||||
xxx IRC COMMON ICQ yyy
|
|
||||||
| | | | |
|
|
||||||
'----+-----:-----+----+----'
|
|
||||||
|
|
|
||||||
GUI (gtk/gnome, qt/kde, text, none)
|
|
||||||
|
|
|
||||||
sub1 sub2 |
|
|
||||||
\ / |
|
|
||||||
xxx IRC | COMMON ICQ yyy
|
|
||||||
'----+-----+-----+----+----'
|
|
||||||
|
|
|
||||||
COMMON UI
|
|
||||||
|
|
|
||||||
sub1 sub2 |
|
|
||||||
\ / |
|
|
||||||
xxx IRC | ICQ yyy
|
|
||||||
| | | | |
|
|
||||||
'----+-----+-----+----'
|
|
||||||
|
|
|
||||||
CORE
|
|
||||||
/
|
|
||||||
lib-config
|
|
||||||
|
|
||||||
|
|
||||||
(IRC, ICQ, xxx and yyy are chat protocols ..)
|
sub1 sub2
|
||||||
|
\ /
|
||||||
|
xxx IRC COMMON ICQ yyy
|
||||||
|
|____|___________|____|____|
|
||||||
|
|
|
||||||
|
GUI (gtk/gnome, qt/kde, text, none)
|
||||||
|
|
|
||||||
|
sub1 sub2 |
|
||||||
|
\ / |
|
||||||
|
xxx IRC | COMMON ICQ yyy
|
||||||
|
|____|_____|_____|____|____|
|
||||||
|
|
|
||||||
|
COMMON UI
|
||||||
|
|
|
||||||
|
sub1 sub2 |
|
||||||
|
\ / |
|
||||||
|
xxx IRC | ICQ yyy
|
||||||
|
|____|_____|_____|____|
|
||||||
|
|
|
||||||
|
CORE
|
||||||
|
/
|
||||||
|
lib-config
|
||||||
|
|
||||||
(sub1 and sub2 are submodules of IRC module, like DCC and flood protect)
|
|
||||||
|
|
||||||
Chat protocols and frontends are kept in separate modules. Common UI and GUI
|
(IRC, ICQ, xxx and yyy are chat protocols ..)
|
||||||
modules also have the common parts which don’t know anything about the chat
|
(sub1 and sub2 are submodules of IRC module, like DCC and flood protect)
|
||||||
protocols. This should allow implementing modules to whatever chat protocols
|
|
||||||
and with whatever frontends easily.
|
|
||||||
|
|
||||||
Signals
|
|
||||||
|
|
||||||
Communication between different modules are done with “signals”. They are not
|
Chat protocols and frontends are kept in separate modules. Common UI
|
||||||
related to UNIX signals in any way, you could more like think of them as
|
and GUI modules also have the common parts which don't know anything
|
||||||
“events” - which might be a better name for them, but I don’t really want to
|
about the chat protocols. This should allow implementing modules to
|
||||||
change it anymore :)
|
whatever chat protocols and with whatever frontends easily.
|
||||||
|
|
||||||
So, you send signal with signal_emit() and it’s sent to all modules that have
|
** Signals
|
||||||
grabbed it by calling signal_add() in their init function. For example:
|
|
||||||
|
|
||||||
signal_emit("mysignal", 1, "hello");
|
Communication between different modules are done with "signals". They are
|
||||||
|
not related to UNIX signals in any way, you could more like think of them
|
||||||
|
as "events" - which might be a better name for them, but I don't really
|
||||||
|
want to change it anymore :)
|
||||||
|
|
||||||
Sends a “mysignal” function with one argument “hello” - before that, you should
|
So, you send signal with signal_emit() and it's sent to all modules that
|
||||||
have grabbed the signal somewhere else with:
|
have grabbed it by calling signal_add() in their init function. For
|
||||||
|
example:
|
||||||
|
|
||||||
static void sig_mysignal(const char *arg1)
|
signal_emit("mysignal", 1, "hello");
|
||||||
{
|
|
||||||
/* arg1 contains "hello" */
|
|
||||||
}
|
|
||||||
|
|
||||||
signal_add("mysignal", (SIGNAL_FUNC) sig_mysignal);
|
Sends a "mysignal" function with one argument "hello" - before that, you
|
||||||
|
should have grabbed the signal somewhere else with:
|
||||||
|
|
||||||
There are three different signal_add() functions which you can use to specify
|
static void sig_mysignal(const char *arg1)
|
||||||
if you want to grab the signal first, “normally” or last. You can also stop the
|
{
|
||||||
signal from going any further.
|
/* arg1 contains "hello" */
|
||||||
|
}
|
||||||
|
|
||||||
Emitting signal with it’s name creates a small overhead since it has to look up
|
signal_add("mysignal", (SIGNAL_FUNC) sig_mysignal);
|
||||||
the signal’s numeric ID first, after which it looks up the signal structure.
|
|
||||||
This is done because if you call a signal really often, it’s faster to find it
|
|
||||||
with it’s numeric ID instead of the string. You can use signal_get_uniq_id()
|
|
||||||
macro to convert the signal name into ID - you’ll have to do this only once! -
|
|
||||||
and use signal_emit_id() to emit the signal. Don’t bother to do this unless
|
|
||||||
your signal is sent (or could be sent) several times in a second.
|
|
||||||
|
|
||||||
See src/core/signals.h for definition of the signal function, and signals.txt
|
There are three different signal_add() functions which you can use to
|
||||||
for a list of signals.
|
specify if you want to grab the signal first, "normally" or last. You can
|
||||||
|
also stop the signal from going any further.
|
||||||
|
|
||||||
lib-config
|
Emitting signal with it's name creates a small overhead since it has to
|
||||||
|
look up the signal's numeric ID first, after which it looks up the signal
|
||||||
|
structure. This is done because if you call a signal _really_ often,
|
||||||
|
it's faster to find it with it's numeric ID instead of the string. You
|
||||||
|
can use signal_get_uniq_id() macro to convert the signal name into ID -
|
||||||
|
you'll have to do this only once! - and use signal_emit_id() to emit the
|
||||||
|
signal. Don't bother to do this unless your signal is sent (or could be
|
||||||
|
sent) several times in a second.
|
||||||
|
|
||||||
Irssi depends on this for reading and saving configuration. (created by me for
|
See src/core/signals.h for definition of the signal function, and
|
||||||
irssi)
|
signals.txt for a list of signals.
|
||||||
|
|
||||||
CORE module
|
|
||||||
|
|
||||||
Provides some functionality that all other modules can use:
|
** lib-config
|
||||||
|
|
||||||
• signal handling
|
Irssi depends on this for reading and saving configuration.
|
||||||
• keeping list of settings
|
(created by me for irssi)
|
||||||
• keeping list of /commands
|
|
||||||
• keeping track of loaded modules
|
|
||||||
• networking functions (with nonblocking connects, IPv6 support)
|
|
||||||
• handles connecting to servers
|
|
||||||
• raw logging of server’s input/output data
|
|
||||||
• /EVAL support
|
|
||||||
• fgets() like function line_split() without any maximum line limits
|
|
||||||
• command line parameter handling
|
|
||||||
• miscellaneous useful little functions
|
|
||||||
• handles logging
|
|
||||||
|
|
||||||
COMMON UI module
|
|
||||||
|
|
||||||
• knows basics about windows and window items (=channels, queries, ..)
|
** CORE module
|
||||||
• printtext() - parsing texts and feeding it for GUI to print.
|
|
||||||
• themes
|
|
||||||
• translation tables
|
|
||||||
• text hilighting
|
|
||||||
• command history
|
|
||||||
• user interface (/commands) for CORE’s functionality
|
|
||||||
|
|
||||||
GUI modules
|
Provides some functionality that all other modules can use:
|
||||||
|
- signal handling
|
||||||
|
- keeping list of settings
|
||||||
|
- keeping list of /commands
|
||||||
|
- keeping track of loaded modules
|
||||||
|
- networking functions (with nonblocking connects, IPv6 support)
|
||||||
|
- handles connecting to servers
|
||||||
|
- raw logging of server's input/output data
|
||||||
|
- /EVAL support
|
||||||
|
- fgets() like function line_split() without any maximum line limits
|
||||||
|
- command line parameter handling
|
||||||
|
- miscellaneous useful little functions
|
||||||
|
- handles logging
|
||||||
|
|
||||||
• all the rest of the functionality needed for a working client.
|
|
||||||
|
|
||||||
IRC module
|
** COMMON UI module
|
||||||
|
|
||||||
• CORE
|
- knows basics about windows and window items (=channels, queries, ..)
|
||||||
□ IRC specific /commands
|
- printtext() - parsing texts and feeding it for GUI to print.
|
||||||
□ flood protecting commands sent to server
|
- themes
|
||||||
□ creating IRC masks based on nick/address for bans, ignores, etc.
|
- translation tables
|
||||||
□ keeps list of channels, nicks, channel modes, bans, etc.
|
- text hilighting
|
||||||
□ keeps list of servers, server settings, irc networks, server
|
- command history
|
||||||
reconnections and irc network splits
|
- user interface (/commands) for CORE's functionality
|
||||||
□ redirection of commands’ replies
|
|
||||||
□ lag detection
|
|
||||||
□ ctcp support and flood protection
|
|
||||||
□ Handles ignoring people
|
|
||||||
• DCC
|
|
||||||
□ DCC chat, send and get
|
|
||||||
• FLOOD
|
|
||||||
□ detects private or channel flooding and sends “flood” signal
|
|
||||||
□ automatic ignoring when flooding
|
|
||||||
• NOTIFYLIST
|
|
||||||
□ handles notifylist
|
|
||||||
|
|
||||||
IRC UI module
|
|
||||||
|
|
||||||
• placing channels and queries in windows
|
** GUI modules
|
||||||
• nick completion
|
|
||||||
• printing infomation of some events
|
|
||||||
|
|
||||||
|
- all the rest of the functionality needed for a working client.
|
||||||
|
|
||||||
|
|
||||||
|
** IRC module
|
||||||
|
|
||||||
|
* CORE
|
||||||
|
|
||||||
|
- IRC specific /commands
|
||||||
|
- flood protecting commands sent to server
|
||||||
|
- creating IRC masks based on nick/address for bans, ignores, etc.
|
||||||
|
- keeps list of channels, nicks, channel modes, bans, etc.
|
||||||
|
- keeps list of servers, server settings, irc networks,
|
||||||
|
server reconnections and irc network splits
|
||||||
|
- redirection of commands' replies
|
||||||
|
- lag detection
|
||||||
|
- ctcp support and flood protection
|
||||||
|
- Handles ignoring people
|
||||||
|
|
||||||
|
* DCC
|
||||||
|
|
||||||
|
- DCC chat, send and get
|
||||||
|
|
||||||
|
* FLOOD
|
||||||
|
|
||||||
|
- detects private or channel flooding and sends "flood" signal
|
||||||
|
- automatic ignoring when flooding
|
||||||
|
|
||||||
|
* NOTIFYLIST
|
||||||
|
|
||||||
|
- handles notifylist
|
||||||
|
|
||||||
|
|
||||||
|
** IRC UI module
|
||||||
|
|
||||||
|
- placing channels and queries in windows
|
||||||
|
- nick completion
|
||||||
|
- printing infomation of some events
|
||||||
|
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
[binaries]
|
|
||||||
ar = 'aarch64-linux-android-ar'
|
|
||||||
c = 'aarch64-linux-android-clang'
|
|
||||||
cpp = 'aarch64-linux-android-clang++'
|
|
||||||
ld = 'aarch64-linux-android-ld'
|
|
||||||
pkgconfig = '/home/builder/.termux-build/_cache/android-r20-api-24-v3/bin/aarch64-linux-android-pkg-config'
|
|
||||||
strip = 'aarch64-linux-android-strip'
|
|
||||||
|
|
||||||
;; you have to substitute 5.30.2 with the Perl version, that can be
|
|
||||||
;; obtained by running ` miniperl -e 'print substr $^V, 1' `
|
|
||||||
|
|
||||||
perl = ['/home/builder/.termux-build/perl/src/miniperl', '-I/data/data/com.termux/files/usr/lib/perl5/5.30.2/aarch64-android', '-I/data/data/com.termux/files/usr/lib/perl5/5.30.2']
|
|
||||||
|
|
||||||
[properties]
|
|
||||||
needs_exe_wrapper = true
|
|
||||||
c_args = ['-fstack-protector-strong', '-Oz', '-I/data/data/com.termux/files/usr/include']
|
|
||||||
cpp_args = ['-fstack-protector-strong', '-Oz', '-I/data/data/com.termux/files/usr/include']
|
|
||||||
c_link_args = ['-L/data/data/com.termux/files/usr/lib', '-Wl,-rpath=/data/data/com.termux/files/usr/lib', '-Wl,--enable-new-dtags', '-Wl,--as-needed', '-Wl,-z,relro,-z,now', '-landroid-glob']
|
|
||||||
cpp_link_args = ['-L/data/data/com.termux/files/usr/lib', '-Wl,-rpath=/data/data/com.termux/files/usr/lib', '-Wl,--enable-new-dtags', '-Wl,--as-needed', '-Wl,-z,relro,-z,now', '-landroid-glob']
|
|
||||||
|
|
||||||
;; if you do not have a cross-perl like miniperl available, you have
|
|
||||||
;; to specify the required options by uncommenting the following
|
|
||||||
;; properties
|
|
||||||
|
|
||||||
;; you can get the proper values by running the commands on your
|
|
||||||
;; Android device:
|
|
||||||
|
|
||||||
;; ` perl -V::version: `
|
|
||||||
; perl_version = '5.30.2'
|
|
||||||
;; ` perl -MExtUtils::Embed -o ccopts `
|
|
||||||
; perl_ccopts = ['-I/data/data/com.termux/files/usr/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-I/data/data/com.termux/files/usr/lib/perl5/5.30.2/aarch64-android/CORE']
|
|
||||||
;; ` perl -MExtUtils::Embed -o ldopts `
|
|
||||||
; perl_ldopts = ['-Wl,-E', '-I/data/data/com.termux/files/usr/include', '-L/data/data/com.termux/files/usr/lib/perl5/5.30.2/aarch64-android/CORE', '-lperl', '-lm', '-ldl']
|
|
||||||
;; ` perl -V::archname: `
|
|
||||||
; perl_archname = 'aarch64-android'
|
|
||||||
;; ` perl -V::installsitearch: `
|
|
||||||
; perl_installsitearch = '/data/data/com.termux/files/usr/lib/perl5/site_perl/5.30.2/aarch64-android'
|
|
||||||
;; ` perl -V::installvendorarch: `
|
|
||||||
; perl_installvendorarch = ''
|
|
||||||
;; ` perl -E 'say for @INC' `
|
|
||||||
; perl_inc = ['/data/data/com.termux/files/usr/lib/perl5/site_perl/5.30.2/aarch64-android', '/data/data/com.termux/files/usr/lib/perl5/site_perl/5.30.2', '/data/data/com.termux/files/usr/lib/perl5/5.30.2/aarch64-android', '/data/data/com.termux/files/usr/lib/perl5/5.30.2']
|
|
||||||
|
|
||||||
[host_machine]
|
|
||||||
cpu_family = 'arm'
|
|
||||||
cpu = 'aarch64'
|
|
||||||
endian = 'little'
|
|
||||||
system = 'android'
|
|
||||||
151
docs/faq.html
151
docs/faq.html
|
|
@ -1,81 +1,152 @@
|
||||||
<base href='https://irssi.org/documentation/faq/'>
|
<h2>FAQ</h2>
|
||||||
<h1>Frequently Asked Questions</h1>
|
|
||||||
<h3 id="q-why-doesnt-irssi-display-colors-even-when-ircii-etc-displays-them">Q: Why doesn’t irssi display colors even when ircii etc. displays them?</h3>
|
|
||||||
|
|
||||||
<p>A: They force ANSI colors even if terminal doesn’t support them. By default, irssi uses colors only if terminfo/termcap so says. The correct way to fix this would be to change your TERM environment to a value where colors work, like xterm-256color or color_xterm (eg. <code>TERM=xterm-256color irssi</code>). If this doesn’t help, then use the evil way of <code>/SET term_force_colors ON</code>.</p>
|
<h3>Q: Why doesn't irssi display colors even when ircii etc. displays them?</h3>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-easily-write-text-to-channel-that-starts-with--character">Q: How do I easily write text to channel that starts with ‘/’ character?</h3>
|
<p>A: They force ANSI colors even if terminal doesn't support them. By
|
||||||
|
default, irssi uses colors only if terminfo/termcap so says. The correct
|
||||||
|
way to fix this would be to change your TERM environment to a value where
|
||||||
|
colors work, like xterm-color or color_xterm (eg. <code>TERM=xterm-color
|
||||||
|
irssi</code>). If this doesn't help, then use the evil way of <code>/SET
|
||||||
|
term_force_colors ON</code>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Q: How do I easily write text to channel that starts with '/' character?</h3>
|
||||||
|
|
||||||
<p>A: <code>/ /text</code></p>
|
<p>A: <code>/ /text</code></p>
|
||||||
|
|
||||||
<h3 id="q-why-doesnt-irssi-update-my-realname-or-whatever-after-i-change-it-with-set-realname-and-reconnect-with-reconnect-or-server">Q: Why doesn’t irssi update my realname (or whatever) after I change it with <code>/SET realname</code> and reconnect with <code>/RECONNECT</code> or <code>/SERVER</code>?</h3>
|
|
||||||
|
|
||||||
<p>A: Irssi is trying to be too smart. This will be fixed in future, but for now you should use <code>/DISCONNECT</code> and <code>/CONNECT</code>.</p>
|
<h3>Q: Why doesn't irssi update my realname (or whatever) after I change it
|
||||||
|
with <code>/SET realname</code> and reconnect with <code>/RECONNECT</code>
|
||||||
|
or <code>/SERVER</code>?</h3>
|
||||||
|
|
||||||
<h3 id="q-i-connected-to-some-server-which-isnt-responding-but-now-irssi-tries-to-connect-back-to-it-all-the-time-how-can-i-stop-it">Q: I connected to some server which isn’t responding but now irssi tries to connect back to it all the time! How can I stop it?</h3>
|
<p>A: Irssi is trying to be too smart. This will be fixed in future, but for
|
||||||
|
now you should use <code>/DISCONNECT</code> and <code>/CONNECT</code>.</p>
|
||||||
|
|
||||||
<p>A: Two ways. The “good way” to do it is with <code>/DISCONNECT</code>. Check the server tags first with <code>/SERVER</code> without giving it any parameters, reconnections are those that have tag starting with “recon” text. So most probably you’re going to do <code>/DISCONNECT recon-1</code>. The other way is to remove all the reconnections with <code>/RMRECONNS</code>, easier but may remove some connections you actually wanted to reconnect (if you used multiple servers..).</p>
|
|
||||||
|
|
||||||
<h3 id="q-how-do-i-add-seconds-to-timestamp">Q: How do I add seconds to timestamp?</h3>
|
<h3>Q: I connected to some server which isn't responding but now irssi tries
|
||||||
|
to connect back to it all the time! How can I stop it?</h3>
|
||||||
|
|
||||||
<p>A: <code>/FORMAT timestamp {timestamp %%H:%%M:%%S}</code> - and remember to add the trailing space :)</p>
|
<p>A: Two ways. The "good way" to do it is with <code>/DISCONNECT</code>.
|
||||||
|
Check the server tags first with <code>/SERVER</code> without giving it any
|
||||||
|
parameters, reconnections are those that have tag starting with "recon"
|
||||||
|
text. So most probably you're going to do <code>/DISCONNECT recon-1</code>.
|
||||||
|
The other way is to remove all the reconnections with
|
||||||
|
<code>/RMRECONNS</code>, easier but may remove some connections you actually
|
||||||
|
wanted to reconnect (if you used multiple servers..).</p>
|
||||||
|
|
||||||
<h3 id="q-why-does-irssi-say-irssi-channel-not-fully-synchronized-yet-try-again-after-a-while-when-i-try-to-use-ban-etc">Q: Why does irssi say “Irssi: Channel not fully synchronized yet, try again after a while” when I try to use /BAN etc?</h3>
|
|
||||||
|
|
||||||
<p>A: Possibly a bug in irssi, or ircd you’re using does something that irssi didn’t really notice. The new code should make this happen far less often than before, but one known reason for this is when irssi doesn’t notice that you were unable to join some channel. Currently however I don’t know of any such events irssi doesn’t know about.</p>
|
<h3>Q: How do I add seconds to timestamp?</h3>
|
||||||
|
|
||||||
<p>Anyway, if this does happen, do <code>/RAWLOG SAVE ~/rawlog</code> soon after joining to channel, and either try to figure out yourself why irssi didn’t get reply to WHO request, or open a Github issue with the full log included. Note that the rawlog is by default only 200 lines and it may not be enough to show all needed information, so you might want to do <code>/SET rawlog_lines 1000</code> or so.</p>
|
<p>A: <code>/FORMAT timestamp {timestamp %%H:%%M:%%S}</code> - and remember
|
||||||
|
to add the trailing space :)</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Q: Why does irssi say "Irssi: Channel not fully synchronized yet, try
|
||||||
|
again after a while" when I try to use /BAN etc?</h3>
|
||||||
|
|
||||||
|
<p>A: Possibly a bug in irssi, or ircd you're using does something that
|
||||||
|
irssi didn't really notice. The new code should make this happen far less
|
||||||
|
often than before, but one known reason for this is when irssi doesn't
|
||||||
|
notice that you were unable to join some channel. Currently however I don't
|
||||||
|
know of any such events irssi doesn't know about.</p>
|
||||||
|
|
||||||
|
<p>Anyway, if this does happen, do <code>/RAWLOG SAVE ~/rawlog</code> soon
|
||||||
|
after joining to channel, and either try to figure out yourself why irssi
|
||||||
|
didn't get reply to WHO request, or send the whole log to cras@irssi.org. Note
|
||||||
|
that the rawlog is by default only 200 lines and it may not be enough to
|
||||||
|
show all needed information, so you might want to do <code>/SET rawlog_lines
|
||||||
|
1000</code> or so.</p>
|
||||||
|
|
||||||
<p><code>MODE +b</code> still works fine though.</p>
|
<p><code>MODE +b</code> still works fine though.</p>
|
||||||
|
|
||||||
<h3 id="q-wheres-the-gui-version">Q: Where’s the GUI version?</h3>
|
|
||||||
|
|
||||||
<p>A: There was one on <a href="https://github.com/irssi-import/xirssi">irssi-import/xirssi</a> but it has not been maintained for a long time.</p>
|
<h3>Q: Where's the GUI version?</h3>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-autorejoin-channels-after-being-kicked">Q: How do I autorejoin channels after being kicked?</h3>
|
<p>A: Read
|
||||||
|
<a href="http://www.irssi.org/about">http://www.irssi.org/about</a></p>
|
||||||
|
|
||||||
<p>A: That’s evil and you shouldn’t do it. If you get kicked, you should stay out, at least until the channel forgot you existed :) Most channels I’ve joined just ban you if you autorejoin after kick. If you’re joined to channels who kick people for fun, try changing channels or something.</p>
|
|
||||||
|
|
||||||
<p>Anyway, if you REALLY want to do that, and you understand that you’re doing evilness, you can use the autorejoin.pl script that comes with irssi. You’ll still need to specify the channels you wish to rejoin with <code>/SET autorejoin_channels #chan1 #chan2 ...</code></p>
|
<h3>Q: How do I autorejoin channels after being kicked?</h3>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-announce-that-im-awayback-in-all-channels-ive-joined-or-how-do-i-change-my-nick-when-setting-myself-awayback">Q: How do I announce that I’m away/back in all channels I’ve joined? Or how do I change my nick when setting myself away/back?</h3>
|
<p>A: That's evil and you shouldn't do it. If you get kicked, you should stay
|
||||||
|
out, at least until the channel forgot you existed :) Most channels I've
|
||||||
|
joined just ban you if you autorejoin after kick. If you're joined to
|
||||||
|
channels who kick people for fun, try changing channels or something.</p>
|
||||||
|
|
||||||
<p>A: That’s even worse than autorejoin. Who could possibly care every time you come and go? Many channels will kick you for using this, and I for example have added several ignores so I’d never need to see these messages. Learn to use <code>/AWAY</code> command properly and tell its existence to people who don’t know about it. <code>/WII yournick</code> shows your away reason much better for people who actually want to know if you’re there or not.</p>
|
<p>Anyway, if you REALLY want to do that, and you understand that you're doing
|
||||||
|
evilness, you can use the autorejoin.pl script that comes with irssi. You'll
|
||||||
|
still need to specify the channels you wish to rejoin with <code>/SET
|
||||||
|
autorejoin_channels #chan1 #chan2 ...</code></p>
|
||||||
|
|
||||||
<h3 id="q-why-does-irssi-autojoin-on-invite-by-default">Q: Why does irssi autojoin on invite by default?</h3>
|
|
||||||
|
|
||||||
<p>A: The setting is /SET join_auto_chans_on_invite - it’s not the same as regular autojoin-on-invite, which irssi doesn’t even have. The only channels that are joined on invite, are the ones you’ve added to config with /CHANNEL ADD -auto. This is very useful with +i channels when you need to first send an invite request to bot, or if you get accidentally kicked from channel, the kicker can invite you back immediately.</p>
|
<h3>Q: How do I announce that I'm away/back in all channels I've joined? Or
|
||||||
|
how do I change my nick when setting myself away/back?</h3>
|
||||||
|
|
||||||
<p>I don’t see any bad side effects with this feature, so it’s ON by default. I guess someone could start kicking/inviting you all the time but server connection shouldn’t drop because of that, and you shouldn’t join channels whose operators are that evil.</p>
|
<p>A: That's even worse than autorejoin. Who could possibly care every time
|
||||||
|
you come and go? Many channels will kick you for using this, and I for example
|
||||||
|
have added several ignores so I'd never need to see these messages. Learn to
|
||||||
|
use <code>/AWAY</code> command properly and tell its existence to people
|
||||||
|
who don't know about it. <code>/WII yournick</code> shows your away reason
|
||||||
|
much better for people who actually want to know if you're there or not.</p>
|
||||||
|
|
||||||
<h3 id="q-how-to-make-utf-8-support-work-with-irssi">Q: How to make UTF-8 support work with irssi?</h3>
|
|
||||||
|
|
||||||
<p>A: Make sure your terminal supports UTF-8 (for example, <code>xterm -u8</code>). If you use screen, you may have to do <code>screen -U</code>. And in Irssi do <code>/SET term_charset utf-8</code>. (for 0.8.9 and older: <code>/SET term_type utf-8</code>)</p>
|
<h3>Q: Why does irssi autojoin on invite by default?</h3>
|
||||||
|
|
||||||
<h3 id="q-will-there-be-detach-like-feature">Q: Will there be /DETACH-like feature?</h3>
|
<p>A: The setting is /SET join_auto_chans_on_invite - it's not the same
|
||||||
|
as regular autojoin-on-invite, which irssi doesn't even have. The only
|
||||||
|
channels that are joined on invite, are the ones you've added to config
|
||||||
|
with /CHANNEL ADD -auto. This is very useful with +i channels when you
|
||||||
|
need to first send an invite request to bot, or if you get accidentally
|
||||||
|
kicked from channel, the kicker can invite you back immediately.</p>
|
||||||
|
|
||||||
<p>A: <a href="https://tmux.github.io/">tmux</a>, <a href="https://www.gnu.org/software/screen/screen.html">screen</a> and <a href="https://sourceforge.net/projects/dtach/">dtach</a> can be used to do it just fine.</p>
|
<p>I don't see any bad side effects with this feature, so it's ON by
|
||||||
|
default. I guess someone could start kicking/inviting you all the time
|
||||||
|
but server connection shouldn't drop because of that, and you shouldn't
|
||||||
|
join channels whose operators are that evil.</p>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-run-scripts-automatically-at-startup">Q: How do I run scripts automatically at startup?</h3>
|
|
||||||
|
|
||||||
<p>A: Put them into <code>~/.irssi/scripts/autorun/</code> directory. Or better would be if you placed them in <code>~/.irssi/scripts/</code> and created symlinks to autorun directory (eg. <code>cd ~/.irssi/scripts/autorun/ ; ln -s ../script.pl .</code>)</p>
|
<h3>Q: How to make UTF-8 support work with irssi?</h3>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-execute-commands-automatically-at-startup">Q: How do I execute commands automatically at startup?</h3>
|
<p>A: Make sure your terminal supports UTF-8 (for example, <code>xterm -u8</code>).
|
||||||
|
If you use screen, you may have to do <code>screen -U</code>. And in Irssi do
|
||||||
|
<code>/SET term_charset utf-8</code>. (for 0.8.9 and older: <code>/SET term_type utf-8</code>)</p>
|
||||||
|
|
||||||
<p>A: Put them into <code>~/.irssi/startup</code> file, each command on its own line. The preceding slash (/) is not necessary.</p>
|
|
||||||
|
|
||||||
<h3 id="q-how-do-i-easily-edit-existing-topic">Q: How do I easily edit existing topic?</h3>
|
<h3>Q: Will there be /DETACH-like feature?</h3>
|
||||||
|
|
||||||
<p>A: <code>/TOPIC <tab></code></p>
|
<p>A: Maybe. Detach code already is there, attach is just missing :) But I
|
||||||
|
don't have much interest in coding it,
|
||||||
|
<a href="http://www.gnu.org/software/screen/screen.html">screen</a> and
|
||||||
|
<a href="http://dtach.sf.net/">dtach</a> can be used to do it just fine.</p>
|
||||||
|
|
||||||
<h3 id="q-how-can-i-have-whois-replies-to-active-window">Q: How can I have /WHOIS replies to active window?</h3>
|
|
||||||
|
|
||||||
<p>A: You can disable the status window, or do <code>/WINDOW LEVEL -CRAP</code> in it which would also make several other messages show up in active window. You can also use a <a href="https://dgl.cx/irssi/hack-whois-in-current-window.pl">script</a>.</p>
|
<h3>Q: How do I run scripts automatically at startup?</h3>
|
||||||
|
|
||||||
<h3 id="q-how-do-i-add-the-active-network-to-the-statusbar">Q: How do I add the active network to the statusbar</h3>
|
<p>A: Put them into <code>~/.irssi/scripts/autorun/</code> directory. Or
|
||||||
|
better would be if you placed them in <code>~/.irssi/scripts/</code> and
|
||||||
|
created symlinks to autorun directory (eg. <code>cd
|
||||||
|
~/.irssi/scripts/autorun/ ; ln -s ../script.pl .</code>)</p>
|
||||||
|
|
||||||
<p>A: Modify the window-line in statusbar section in config file to <code>window = "{sb $winref:$tag/$T{sbmode $M}}";</code></p>
|
|
||||||
|
|
||||||
<h3 id="q-how-to-pronounce-irssi">Q: How to pronounce Irssi?</h3>
|
<h3>Q: How do I execute commands automatically at startup?</h3>
|
||||||
|
|
||||||
|
<p>A: Put them into <code>~/.irssi/startup</code> file, each command on its
|
||||||
|
own line. The preceding slash (/) is not necessary.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Q: How do I easily edit existing topic?</h3>
|
||||||
|
|
||||||
|
<p>A: /TOPIC <tab></p>
|
||||||
|
|
||||||
|
<h3>Q: How can I have /WHOIS replies to active window?</h3>
|
||||||
|
|
||||||
|
<p>A: You can disable the status window, or do <code>/WINDOW LEVEL
|
||||||
|
-CRAP</code> in it which would also make several other messages show up in
|
||||||
|
active window. You can also use a
|
||||||
|
<a href="http://dgl.cx/irssi/hack-whois-in-current-window.pl">script</a>.</p>
|
||||||
|
|
||||||
|
<h3>Q: How do I add the active network to the statusbar</h3>
|
||||||
|
|
||||||
|
<p>A: Modify the window-line in statusbar section in config file to
|
||||||
|
<code>window = "{sb $winref:$tag/$T{sbmode $M}}";</code></p>
|
||||||
|
|
||||||
<p>A: Check <a href="/assets/irssi.wav">here</a></p>
|
|
||||||
|
|
|
||||||
124
docs/faq.txt
124
docs/faq.txt
|
|
@ -1,124 +0,0 @@
|
||||||
Frequently Asked Questions
|
|
||||||
|
|
||||||
Q: Why doesn’t irssi display colors even when ircii etc. displays them?
|
|
||||||
A: They force ANSI colors even if terminal doesn’t support them. By default,
|
|
||||||
irssi uses colors only if terminfo/termcap so says. The correct way to fix this
|
|
||||||
would be to change your TERM environment to a value where colors work, like
|
|
||||||
xterm-256color or color_xterm (eg. TERM=xterm-256color irssi). If this doesn’t
|
|
||||||
help, then use the evil way of /SET term_force_colors ON.
|
|
||||||
|
|
||||||
Q: How do I easily write text to channel that starts with ‘/’ character?
|
|
||||||
A: / /text
|
|
||||||
|
|
||||||
Q: Why doesn’t irssi update my realname (or whatever) after I change it with /
|
|
||||||
SET realname and reconnect with /RECONNECT or /SERVER?
|
|
||||||
A: Irssi is trying to be too smart. This will be fixed in future, but for now
|
|
||||||
you should use /DISCONNECT and /CONNECT.
|
|
||||||
|
|
||||||
Q: I connected to some server which isn’t responding but now irssi tries to
|
|
||||||
connect back to it all the time! How can I stop it?
|
|
||||||
A: Two ways. The “good way” to do it is with /DISCONNECT. Check the server tags
|
|
||||||
first with /SERVER without giving it any parameters, reconnections are those
|
|
||||||
that have tag starting with “recon” text. So most probably you’re going to do /
|
|
||||||
DISCONNECT recon-1. The other way is to remove all the reconnections with /
|
|
||||||
RMRECONNS, easier but may remove some connections you actually wanted to
|
|
||||||
reconnect (if you used multiple servers..).
|
|
||||||
|
|
||||||
Q: How do I add seconds to timestamp?
|
|
||||||
A: /FORMAT timestamp {timestamp %%H:%%M:%%S} - and remember to add the trailing
|
|
||||||
space :)
|
|
||||||
|
|
||||||
Q: Why does irssi say “Irssi: Channel not fully synchronized yet, try again
|
|
||||||
after a while” when I try to use /BAN etc?
|
|
||||||
A: Possibly a bug in irssi, or ircd you’re using does something that irssi
|
|
||||||
didn’t really notice. The new code should make this happen far less often than
|
|
||||||
before, but one known reason for this is when irssi doesn’t notice that you
|
|
||||||
were unable to join some channel. Currently however I don’t know of any such
|
|
||||||
events irssi doesn’t know about.
|
|
||||||
|
|
||||||
Anyway, if this does happen, do /RAWLOG SAVE ~/rawlog soon after joining to
|
|
||||||
channel, and either try to figure out yourself why irssi didn’t get reply to
|
|
||||||
WHO request, or open a Github issue with the full log included. Note that the
|
|
||||||
rawlog is by default only 200 lines and it may not be enough to show all needed
|
|
||||||
information, so you might want to do /SET rawlog_lines 1000 or so.
|
|
||||||
|
|
||||||
MODE +b still works fine though.
|
|
||||||
|
|
||||||
Q: Where’s the GUI version?
|
|
||||||
A: There was one on [1]irssi-import/xirssi but it has not been maintained for a
|
|
||||||
long time.
|
|
||||||
|
|
||||||
Q: How do I autorejoin channels after being kicked?
|
|
||||||
A: That’s evil and you shouldn’t do it. If you get kicked, you should stay out,
|
|
||||||
at least until the channel forgot you existed :) Most channels I’ve joined just
|
|
||||||
ban you if you autorejoin after kick. If you’re joined to channels who kick
|
|
||||||
people for fun, try changing channels or something.
|
|
||||||
|
|
||||||
Anyway, if you REALLY want to do that, and you understand that you’re doing
|
|
||||||
evilness, you can use the autorejoin.pl script that comes with irssi. You’ll
|
|
||||||
still need to specify the channels you wish to rejoin with /SET
|
|
||||||
autorejoin_channels #chan1 #chan2 ...
|
|
||||||
|
|
||||||
Q: How do I announce that I’m away/back in all channels I’ve joined? Or how do
|
|
||||||
I change my nick when setting myself away/back?
|
|
||||||
A: That’s even worse than autorejoin. Who could possibly care every time you
|
|
||||||
come and go? Many channels will kick you for using this, and I for example have
|
|
||||||
added several ignores so I’d never need to see these messages. Learn to use /
|
|
||||||
AWAY command properly and tell its existence to people who don’t know about it.
|
|
||||||
/WII yournick shows your away reason much better for people who actually want
|
|
||||||
to know if you’re there or not.
|
|
||||||
|
|
||||||
Q: Why does irssi autojoin on invite by default?
|
|
||||||
A: The setting is /SET join_auto_chans_on_invite - it’s not the same as regular
|
|
||||||
autojoin-on-invite, which irssi doesn’t even have. The only channels that are
|
|
||||||
joined on invite, are the ones you’ve added to config with /CHANNEL ADD -auto.
|
|
||||||
This is very useful with +i channels when you need to first send an invite
|
|
||||||
request to bot, or if you get accidentally kicked from channel, the kicker can
|
|
||||||
invite you back immediately.
|
|
||||||
|
|
||||||
I don’t see any bad side effects with this feature, so it’s ON by default. I
|
|
||||||
guess someone could start kicking/inviting you all the time but server
|
|
||||||
connection shouldn’t drop because of that, and you shouldn’t join channels
|
|
||||||
whose operators are that evil.
|
|
||||||
|
|
||||||
Q: How to make UTF-8 support work with irssi?
|
|
||||||
A: Make sure your terminal supports UTF-8 (for example, xterm -u8). If you use
|
|
||||||
screen, you may have to do screen -U. And in Irssi do /SET term_charset utf-8.
|
|
||||||
(for 0.8.9 and older: /SET term_type utf-8)
|
|
||||||
|
|
||||||
Q: Will there be /DETACH-like feature?
|
|
||||||
A: [2]tmux, [3]screen and [4]dtach can be used to do it just fine.
|
|
||||||
|
|
||||||
Q: How do I run scripts automatically at startup?
|
|
||||||
A: Put them into ~/.irssi/scripts/autorun/ directory. Or better would be if you
|
|
||||||
placed them in ~/.irssi/scripts/ and created symlinks to autorun directory (eg.
|
|
||||||
cd ~/.irssi/scripts/autorun/ ; ln -s ../script.pl .)
|
|
||||||
|
|
||||||
Q: How do I execute commands automatically at startup?
|
|
||||||
A: Put them into ~/.irssi/startup file, each command on its own line. The
|
|
||||||
preceding slash (/) is not necessary.
|
|
||||||
|
|
||||||
Q: How do I easily edit existing topic?
|
|
||||||
A: /TOPIC <tab>
|
|
||||||
|
|
||||||
Q: How can I have /WHOIS replies to active window?
|
|
||||||
A: You can disable the status window, or do /WINDOW LEVEL -CRAP in it which
|
|
||||||
would also make several other messages show up in active window. You can also
|
|
||||||
use a [5]script.
|
|
||||||
|
|
||||||
Q: How do I add the active network to the statusbar
|
|
||||||
A: Modify the window-line in statusbar section in config file to window = "{sb
|
|
||||||
$winref:$tag/$T{sbmode $M}}";
|
|
||||||
|
|
||||||
Q: How to pronounce Irssi?
|
|
||||||
A: Check [6]here
|
|
||||||
|
|
||||||
|
|
||||||
References:
|
|
||||||
|
|
||||||
[1] https://github.com/irssi-import/xirssi
|
|
||||||
[2] https://tmux.github.io/
|
|
||||||
[3] https://www.gnu.org/software/screen/screen.html
|
|
||||||
[4] https://sourceforge.net/projects/dtach/
|
|
||||||
[5] https://dgl.cx/irssi/hack-whois-in-current-window.pl
|
|
||||||
[6] https://irssi.org/assets/irssi.wav
|
|
||||||
12
docs/help/Makefile.am.gen
Normal file
12
docs/help/Makefile.am.gen
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Makefile.am is autogenerated by autogen.sh from Makefile.am.gen
|
||||||
|
|
||||||
|
helpdir = $(datadir)/irssi/help
|
||||||
|
|
||||||
|
help_DATA = \
|
||||||
|
@HELPFILES@
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Makefile.am.gen \
|
||||||
|
$(help_DATA)
|
||||||
|
|
||||||
|
SUBDIRS = in
|
||||||
5
docs/help/in/Makefile.am.gen
Normal file
5
docs/help/in/Makefile.am.gen
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Makefile.am is autogenerated by autogen.sh from Makefile.am.gen
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Makefile.am.gen \
|
||||||
|
@HELPFILES@
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/ADMIN
|
/ADMIN
|
||||||
/ADMIN irc.libera.chat
|
/ADMIN orwell.freenode.net
|
||||||
/ADMIN mike
|
/ADMIN mike
|
||||||
|
|
||||||
%9See also:%9 INFO
|
%9See also:%9 INFO
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
-one: Marks yourself as away on the active server.
|
-one: Marks yourself as away on the active server.
|
||||||
-all: Marks yourself as away on all the servers you are connected to.
|
-all: Marks yourself as away on all the servers you are connected to.
|
||||||
|
|
||||||
Your away message; if no argument is given, your away status will be removed.
|
You away message; if no argument is given, your away status will be removed.
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Marks yourself as 'away'; this method is used to inform people that you
|
Marks yourself as 'away'; this method is used to inform people that you
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
-list: Displays a list of all the bindable commands.
|
-list: Displays a list of all the bindable commands.
|
||||||
-delete: Removes the binding.
|
-delete: Removes the binding,
|
||||||
-reset: Reset a key to its default binding.
|
|
||||||
|
|
||||||
A name of the binding and the command to perform; if no parameter is given,
|
A name of the binding and the command to perform; if no parameter is given,
|
||||||
the list of bindings will be displayed.
|
the list of bindings will be displayed.
|
||||||
|
|
@ -17,15 +16,13 @@ Details:
|
||||||
Adds or removes a binding; the binding itself is case-sensitive and may
|
Adds or removes a binding; the binding itself is case-sensitive and may
|
||||||
contain as many characters as you want.
|
contain as many characters as you want.
|
||||||
|
|
||||||
Key bindings are case sensitive so uppercase letters mean you also have
|
Uppercase characters usually indicate that you need to keep the shift-key
|
||||||
to use the shift key, except for ctrl which does not support shift but
|
pressed to use the binding.
|
||||||
the keys must always be typed in uppercase.
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/BIND
|
/BIND
|
||||||
/BIND meta-c /CLEAR
|
/BIND meta-c /CLEAR
|
||||||
/BIND meta-C /CYCLE
|
|
||||||
/BIND meta-q change_window 16
|
/BIND meta-q change_window 16
|
||||||
/BIND -delete meta-y
|
/BIND -delete meta-y
|
||||||
/BIND ^W^C /WINDOW NEW HIDE
|
/BIND ^W^C /WINDOW NEW HIDE
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,15 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
-window: Displays the output in the active window.
|
The file to display.
|
||||||
|
|
||||||
The file to display and optionally a position to seek in the file,
|
|
||||||
in bytes.
|
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Displays the contents of the specified file in the active window if -window
|
Displays the contents of the specified file into the active window.
|
||||||
is specified, otherwise to the closest matching window depending on levels.
|
|
||||||
|
|
||||||
The seek position parameter is used internally to display away logs, if
|
|
||||||
omitted the whole file is shown.
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/CAT -window /etc/network/interfaces
|
/CAT /etc/network/interfaces
|
||||||
/CAT /home/mike/resume.txt
|
/CAT /home/mike/resume.txt
|
||||||
/CAT contact_details.txt
|
/CAT contact_details.txt
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
LIST: Displays the list of configured channels.
|
LIST: Displays the list of configured channels.
|
||||||
ADD: Adds a channel to your configuration.
|
ADD: Adds a channel to your configuration.
|
||||||
MODIFY: Modifies a channel in your configuration.
|
|
||||||
REMOVE: Removes a channel from your configuration.
|
REMOVE: Removes a channel from your configuration.
|
||||||
|
|
||||||
-auto: Automatically join the channel.
|
-auto: Automatically join the channel.
|
||||||
|
|
@ -33,12 +32,11 @@
|
||||||
|
|
||||||
/CHANNEL
|
/CHANNEL
|
||||||
/CHANNEL LIST
|
/CHANNEL LIST
|
||||||
/CHANNEL ADD -auto #irssi liberachat
|
/CHANNEL ADD -auto #irssi Freenode
|
||||||
/CHANNEL ADD -auto #basementcat Quakenet secret_lair
|
/CHANNEL ADD -auto #basementcat Quakenet secret_lair
|
||||||
/CHANNEL ADD -auto -bots '*!@*.irssi.org *!bot@irssi.org' -botcmd 'msg $0 op WzerTrzq' #hideout liberachat
|
/CHANNEL ADD -auto -bots '*!@*.irssi.org *!bot@irssi.org' -botcmd 'msg $0 op WzerTrzq' #hideout Freenode
|
||||||
/CHANNEL ADD -auto -bots 'Q!TheQBot@CServe.quakenet.org' -botcmd '^MSG Q op #irssi' #irssi Quakenet
|
/CHANNEL ADD -auto -bots 'Q!TheQBot@CServe.quakenet.org' -botcmd '^MSG Q op #irssi' #irssi Quakenet
|
||||||
/CHANNEL MODIFY -noauto #irssi liberachat
|
/CHANNEL REMOVE #hideout Freenode
|
||||||
/CHANNEL REMOVE #hideout liberachat
|
|
||||||
|
|
||||||
%9Special Example:%9
|
%9Special Example:%9
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Scrolls up the text in the window and fills the window with blank lines; you
|
Clears the window of all text; you may use this to clear a windows that
|
||||||
may want to use this to make new text start at the top of the window again.
|
contains sensitive information or has rendered improperly.
|
||||||
|
|
||||||
%9See also:%9 REDRAW, SCROLLBACK CLEAR
|
%9See also:%9 REDRAW
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,25 +5,21 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
-4: Connects using IPv4.
|
-4: Connects using IPv4.
|
||||||
-6: Connects using IPv6.
|
-6: Connects using IPv6.
|
||||||
-tls: Connects using TLS encryption.
|
-ssl: Connects using SSL encryption.
|
||||||
-tls_cert: The TLS client certificate file.
|
-ssl_cert: The SSL client certificate file.
|
||||||
-tls_pkey: The TLS client private key, if not included in the certificate file.
|
-ssl_pkey: The SSL client private key, if not included in the
|
||||||
-tls_pass: The password for the TLS client private key or certificate.
|
certificate file.
|
||||||
-tls_verify: Verifies the TLS certificate of the server.
|
-ssl_verify: Verifies the SSL certificate of the server.
|
||||||
-tls_cafile: The file with the list of CA certificates.
|
-ssl_cafile: The file with the list of CA certificates.
|
||||||
-tls_capath: The directory which contains the CA certificates.
|
-ssl_capath: The directory which contains the CA certificates.
|
||||||
-tls_ciphers: TLS cipher suite preference lists.
|
-noproxy: Ignores the global proxy configuration.
|
||||||
-tls_pinned_cert: Pinned x509 certificate fingerprint.
|
-network: The network this connection belongs to.
|
||||||
-tls_pinned_pubkey: Pinned public key fingerprint.
|
-host: The hostname you would like to connect from.
|
||||||
-nocap: Disable CAPREQ during connect
|
-rawlog: Immediately open rawlog after connecting.
|
||||||
-noproxy: Ignores the global proxy configuration.
|
-!: Doesn't autojoin channels.
|
||||||
-network: The network this connection belongs to.
|
-noautosendcmd: Doesn't execute autosendcmd.
|
||||||
-host: The hostname you would like to connect from.
|
|
||||||
-rawlog: Immediately open rawlog after connecting.
|
|
||||||
-!: Doesn't autojoin channels.
|
|
||||||
-noautosendcmd: Doesn't execute autosendcmd.
|
|
||||||
|
|
||||||
A network or server to connect to; you can optionally specify a custom port,
|
A network or server to connect to; you can optionally specify a custom port,
|
||||||
password and nickname.
|
password and nickname.
|
||||||
|
|
@ -35,9 +31,9 @@
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/CONNECT liberachat
|
/CONNECT Freenode
|
||||||
/CONNECT -6 liberachat
|
/CONNECT -6 Freenode
|
||||||
/CONNECT -4 -! -host staff.irssi.org -network liberachat irc.libera.chat
|
/CONNECT -4 -! -host staff.irssi.org -network Freenode orwell.freenode.net
|
||||||
/CONNECT irc.irssi.org 6667 WzerT8zq mike
|
/CONNECT irc.irssi.org 6667 WzerT8zq mike
|
||||||
|
|
||||||
%9See also:%9 DISCONNECT, RMRECONNS, SERVER
|
%9See also:%9 DISCONNECT, RMRECONNS, SERVER
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
and file transfers.
|
and file transfers.
|
||||||
|
|
||||||
If you are behind NAT, or if the firewall is too restrictive, you might
|
If you are behind NAT, or if the firewall is too restrictive, you might
|
||||||
want to try if using the passive parameter resolves your connection
|
want to try if using the passive parameter resolved your connection
|
||||||
problem.
|
problem.
|
||||||
|
|
||||||
You can send files which contain special character or spaces by enclosing
|
You can send files which contain special character or spaces by enclosing
|
||||||
|
|
@ -36,10 +36,10 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/DCC CHAT mike
|
/DCC CHAT mike
|
||||||
/DCC GET bob "summer vacation.mkv"
|
/DCC GET bob 'summer vacation.mkv'
|
||||||
/DCC SEND sarah "summer vacation.mkv"
|
/DCC SEND sarah documents/resume.pdf
|
||||||
/DCC CLOSE get mike
|
/DCC CLOSE mike
|
||||||
/DCC CLOSE send bob "summer vacation.mkv"
|
/DCC CLOSE bob 'summer vacation.mkv'
|
||||||
|
|
||||||
%9See also:%9 CD
|
%9See also:%9 CD
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,14 @@
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Disconnects from an IRC server; the list of all the servers you are
|
Disconnects from one or more IRC servers; the list of all the servers you
|
||||||
connected to can be retrieved via the SERVER command.
|
are connected to can be retrieved via the SERVER command.
|
||||||
|
|
||||||
Use the wildcard character '*' if you want to disconnect from the active
|
Use the wildcard character '*' if you want to disconnect from all servers.
|
||||||
server.
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/DISCONNECT liberachat I'm off for today, take care!
|
/DISCONNECT Freenode I'm off for today, take care!
|
||||||
/DISCONNECT * Vacation time :D
|
/DISCONNECT * Vacation time :D
|
||||||
/DISCONNECT
|
/DISCONNECT
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
-window: Displays the output in the target window.
|
-current: Displays the output in the active window.
|
||||||
|
-window: Displays the ouput in the target window.
|
||||||
-level: Displays the output with a given message level.
|
-level: Displays the output with a given message level.
|
||||||
|
|
||||||
The text output; if no target is given, the active window will be used.
|
The text ouput; if no target is given, the active window will be used.
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/ECHO 1 + 1 = 2 :D
|
/ECHO 1 + 1 = 2 :D
|
||||||
/ECHO Testing the ECHO command
|
/ECHO -current Testing the ECHO command
|
||||||
/ECHO -window #irssi Special variables such as ${N} will not be expanded.
|
/ECHO -window #irssi Special variables such as ${N} will not be expanded.
|
||||||
|
|
||||||
%9See also:%9 CAT, EVAL, EXEC, LEVELS
|
%9See also:%9 CAT, EVAL, EXEC, LEVELS
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,13 @@
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Evaluates the given commands and executes them; you can use internal
|
Evaluates the given commands and executes them; you can use internal
|
||||||
variables and separate multiple commands by using the `;' character.
|
variables and separate multiple commands by using the ';' character.
|
||||||
If the command contains a string with `$', `\' or `;' those characters
|
|
||||||
need to be escaped:
|
|
||||||
|
|
||||||
`$' -> `$$'
|
|
||||||
`\' -> `\\' (or even `\\\\', depending on where they are used)
|
|
||||||
`;' -> `\;'
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/EVAL echo I am connected to ${S} on ${chatnet} as ${N}
|
/EVAL echo I am connected to ${S} on ${chatnet} as ${N}
|
||||||
/EVAL echo My user privileges are +${usermode}; echo Let's party!
|
/EVAL echo My user privileges are +${usermode}; echo Let's party!
|
||||||
|
|
||||||
to print `1;2$3\4':
|
|
||||||
|
|
||||||
/EVAL echo 1\;2$$3\\4
|
|
||||||
|
|
||||||
%9References:%9
|
%9References:%9
|
||||||
|
|
||||||
https://github.com/irssi/irssi/blob/master/docs/special_vars.txt
|
https://github.com/irssi/irssi/blob/master/docs/special_vars.txt
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
%9References:%9
|
%9References:%9
|
||||||
|
|
||||||
https://irssi.org
|
http://www.irssi.org
|
||||||
https://github.com/irssi
|
https://github.com/irssi
|
||||||
|
|
||||||
%9See also:%9 DIE, KILL, OPER
|
%9See also:%9 DIE, KILL, OPER
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
%9References:%9
|
%9References:%9
|
||||||
|
|
||||||
https://irssi.org
|
http://www.irssi.org
|
||||||
https://github.com/irssi
|
https://github.com/irssi
|
||||||
|
|
||||||
%9See also:%9 CONNECT, MSG, NETWORK, SERVER
|
%9See also:%9 CONNECT, MSG, NETWORK, SERVER
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,8 @@
|
||||||
-line: Highlights the whole line.
|
-line: Highlights the whole line.
|
||||||
-mask: Highlights all messages from users matching the mask.
|
-mask: Highlights all messages from users matching the mask.
|
||||||
-full: The text must match the full word.
|
-full: The text must match the full word.
|
||||||
-matchcase: The text must match case.
|
|
||||||
-regexp: The text is a regular expression.
|
-regexp: The text is a regular expression.
|
||||||
-color: The color to display the highlight in.
|
-color: The color the display the highlight in.
|
||||||
-actcolor: The color to mark the highlight activity in the statusbar.
|
-actcolor: The color to mark the highlight activity in the statusbar.
|
||||||
-level: Matches only on the given message level.
|
-level: Matches only on the given message level.
|
||||||
-network: Matches only on the given network.
|
-network: Matches only on the given network.
|
||||||
|
|
@ -32,7 +31,7 @@
|
||||||
/HILIGHT
|
/HILIGHT
|
||||||
/HILIGHT mike
|
/HILIGHT mike
|
||||||
/HILIGHT -regexp mi+ke+
|
/HILIGHT -regexp mi+ke+
|
||||||
/HILIGHT -mask -color %%G bob!*@*.irssi.org
|
/HILIGHT -mask bob!*@*.irssi.org -color %%G
|
||||||
/HILIGHT -full -color %%G -actcolor %%Y redbull
|
/HILIGHT -full -color %%G -actcolor %%Y redbull
|
||||||
|
|
||||||
%9References:%9
|
%9References:%9
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@
|
||||||
-network: Ignores only on a specific network.
|
-network: Ignores only on a specific network.
|
||||||
-channels: Ignores only on specific channels.
|
-channels: Ignores only on specific channels.
|
||||||
-time: The timeout to automatically remove the ignore.
|
-time: The timeout to automatically remove the ignore.
|
||||||
Accepts units specified in days, hours, minutes, seconds,
|
|
||||||
milliseconds, or no unit for seconds.
|
|
||||||
|
|
||||||
The mask, channels and levels to ignore; if no argument is provided, the
|
The mask, channels and levels to ignore; if no argument is provided, the
|
||||||
list of ignores will be displayed.
|
list of ignores will be displayed.
|
||||||
|
|
@ -27,10 +25,6 @@
|
||||||
The special level 'NO_ACT' can be used to ignore activity in the statusbar
|
The special level 'NO_ACT' can be used to ignore activity in the statusbar
|
||||||
without actually ignoring the message; this behavior is somewhat special
|
without actually ignoring the message; this behavior is somewhat special
|
||||||
because it is allowed in addition to other ignores for the same target.
|
because it is allowed in addition to other ignores for the same target.
|
||||||
The special level 'HIDDEN' can be used to hide matching messages that can
|
|
||||||
later be revealed using /WINDOW HIDELEVEL -HIDDEN
|
|
||||||
The special level 'NOHILIGHT' can be used to suppress hilights without actually
|
|
||||||
ignoring the message.
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
|
|
@ -41,15 +35,13 @@
|
||||||
/IGNORE #irssi ALL -PUBLIC -ACTIONS
|
/IGNORE #irssi ALL -PUBLIC -ACTIONS
|
||||||
/IGNORE -replies *!*@*.irssi.org ALL
|
/IGNORE -replies *!*@*.irssi.org ALL
|
||||||
/IGNORE -regexp -pattern (away|gone|back|playing|returned) * ACTIONS
|
/IGNORE -regexp -pattern (away|gone|back|playing|returned) * ACTIONS
|
||||||
/IGNORE -regexp -pattern (away|gone|back|playing|returned) #channel ACTIONS
|
|
||||||
/IGNORE *zzz* NICKS
|
/IGNORE *zzz* NICKS
|
||||||
/IGNORE *afk* NICKS
|
/IGNORE *afk* NICKS
|
||||||
/IGNORE *away* NICKS
|
/IGNORE *away* NICKS
|
||||||
/IGNORE #irssi NO_ACT JOINS PARTS QUITS
|
/IGNORE #irssi NO_ACT JOINS PARTS QUITS
|
||||||
/IGNORE mike NO_ACT -MSGS
|
/IGNORE mike NO_ACT -MSGS
|
||||||
/IGNORE mike HIDDEN PUBLIC JOINS PARTS QUITS
|
/IGNORE -regexp -pattern
|
||||||
/IGNORE -time 5days christmas PUBLICS
|
/IGNORE mike NO_ACT -MSGS
|
||||||
/IGNORE -time 300 mike PUBLICS
|
|
||||||
|
|
||||||
%9See also:%9 ACCEPT, SILENCE, UNIGNORE
|
%9See also:%9 ACCEPT, SILENCE, UNIGNORE
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/INFO
|
/INFO
|
||||||
/INFO irc.libera.chat
|
/INFO orwell.freenode.net
|
||||||
|
|
||||||
%9See also:%9 ADMIN
|
%9See also:%9 ADMIN
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
@SYNTAX:irssiproxy@
|
|
||||||
|
|
||||||
%9Description:%9
|
|
||||||
|
|
||||||
Displays the list of clients connected to irssiproxy.
|
|
||||||
|
|
||||||
%9Examples:%9
|
|
||||||
|
|
||||||
/IRSSIPROXY
|
|
||||||
/IRSSIPROXY STATUS
|
|
||||||
|
|
||||||
%9See also:%9 LOAD PROXY, SET irssiproxy
|
|
||||||
|
|
||||||
|
|
@ -16,5 +16,5 @@
|
||||||
/ISON mike
|
/ISON mike
|
||||||
/ISON sarah bob
|
/ISON sarah bob
|
||||||
|
|
||||||
%9See also:%9 NOTIFY, WHOWAS, WHOIS
|
%9See also:%9 NOTIFY, WHOAS, WHOIS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
/JOIN #irssi
|
/JOIN #irssi
|
||||||
/JOIN #basementcat secret_lair
|
/JOIN #basementcat secret_lair
|
||||||
/JOIN -invite
|
/JOIN -invite
|
||||||
/JOIN -liberachat #github,#libera,#irssi
|
/JOIN -freenode #github,#freenode,#irssi
|
||||||
|
|
||||||
%9See also:%9 KICK, PART
|
%9See also:%9 KICK, PART
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/KNOCK #irssi
|
/KNOCK #irssi
|
||||||
/KNOCK #libera
|
/KNOCK #freenode
|
||||||
/KNOCK #github
|
/KNOCK #github
|
||||||
|
|
||||||
%9See also:%9 INVITE, JOIN
|
%9See also:%9 INVITE, JOIN
|
||||||
|
|
|
||||||
|
|
@ -10,19 +10,15 @@
|
||||||
-window: Specifies the window to check.
|
-window: Specifies the window to check.
|
||||||
-new: Only displays results since the previous lastlog.
|
-new: Only displays results since the previous lastlog.
|
||||||
-away: Only displays results since you previous away status.
|
-away: Only displays results since you previous away status.
|
||||||
-<level>: Specifies the levels to check (e.g. -joins -quits -hilight)
|
-level: Specifies the levels to check.
|
||||||
-clear: Removes the previous results from the active window.
|
-clear: Removes the previous results from the active window.
|
||||||
-count: Displays how many lines match.
|
-count: Displays how many lines match.
|
||||||
-case: Performs a case-sensitive matching.
|
-case: Performs a case-sensitive matching.
|
||||||
-date: Prepends each row with the message's date
|
|
||||||
-regexp: The given text pattern is a regular expression.
|
-regexp: The given text pattern is a regular expression.
|
||||||
-word: The text must match full words.
|
-word: The text must match full words.
|
||||||
-force: Forces to display the lastlog, even if it exceeds 1000 lines.
|
-force: Forces to display the lastlog, even if it exceeds 1000 lines.
|
||||||
-after: Include this many lines of content after the match.
|
-after: Only displays results after the given line number.
|
||||||
-before: Include this many lines of content before the match.
|
-before: Only displays results before the given line number.
|
||||||
-<#>: Include this many lines of content around the match.
|
|
||||||
<count>: Display a maximum number of `count' lines.
|
|
||||||
<start>: Skip the last `start' lines.
|
|
||||||
|
|
||||||
The pattern to search for and the maximum of lines to display; if no
|
The pattern to search for and the maximum of lines to display; if no
|
||||||
parameter is given, the entire window buffer will be displayed.
|
parameter is given, the entire window buffer will be displayed.
|
||||||
|
|
@ -34,10 +30,8 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/LASTLOG holiday
|
/LASTLOG holiday
|
||||||
/LASTLOG 'is on vacation' 10
|
/LASTLOG 'is on vacation'
|
||||||
/LASTLOG -force -file ~/mike.log 'mike'
|
/LASTLOG -file -force ~/mike.log 'mike'
|
||||||
/LASTLOG -hilight
|
|
||||||
/LASTLOG -5 searchterm
|
|
||||||
|
|
||||||
%9See also:%9 HILIGHT, SCROLLBACK
|
%9See also:%9 HILIGHT, SCROLLBACK
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,9 @@
|
||||||
MODES A channel mode is modified.
|
MODES A channel mode is modified.
|
||||||
MSGS Private messages.
|
MSGS Private messages.
|
||||||
NICKS A nickname changes to another nickname.
|
NICKS A nickname changes to another nickname.
|
||||||
NOTICES Private notices.
|
NOTICES Notices sent from a nickname.
|
||||||
PARTS A nickname leaves a channel.
|
PARTS A nickname leaves a channel.
|
||||||
PUBLIC Public messages in a channel.
|
PUBLIC Public messages in a channel.
|
||||||
PUBNOTICES Public notices in a channel.
|
|
||||||
QUITS A nickname disconnects from IRC.
|
QUITS A nickname disconnects from IRC.
|
||||||
SNOTES Notices sent from a server.
|
SNOTES Notices sent from a server.
|
||||||
TOPICS A channel topic is modified.
|
TOPICS A channel topic is modified.
|
||||||
|
|
@ -33,10 +32,8 @@
|
||||||
|
|
||||||
HILIGHT The text is highlighted.
|
HILIGHT The text is highlighted.
|
||||||
NEVER Never ignores or logs the message.
|
NEVER Never ignores or logs the message.
|
||||||
HIDDEN Hides the message when window HIDELEVEL includes HIDDEN.
|
|
||||||
NO_ACT Doesn't trigger any activity in the statusbar.
|
NO_ACT Doesn't trigger any activity in the statusbar.
|
||||||
NOHILIGHT The text is not highlighted.
|
NOHILIGHT The text is not highlighted.
|
||||||
Suppresses hilights when used with /ignore.
|
|
||||||
|
|
||||||
When using levels from Irssi scripts, you need to prepend the level with
|
When using levels from Irssi scripts, you need to prepend the level with
|
||||||
'MSGLEVEL_'; for example 'CRAP' becomes 'MSGLEVEL_CRAP'.
|
'MSGLEVEL_'; for example 'CRAP' becomes 'MSGLEVEL_CRAP'.
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
-yes: Confirms that you want to receive a large amount of data.
|
-yes: Confirms that you want to receive a large amount of data.
|
||||||
|
|
||||||
If the exact name of a channel is given, the only information about this
|
The text a channel must match; if no argument is given, the list of all
|
||||||
channel is requested; otherwise, a list of all channels will be displayed.
|
channels will be displayed.
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
|
|
@ -19,20 +19,7 @@
|
||||||
|
|
||||||
/LIST
|
/LIST
|
||||||
/LIST -yes
|
/LIST -yes
|
||||||
/LIST #ubuntu
|
/LIST -yes *ubuntu*
|
||||||
/LIST #*ubuntu*,>1
|
|
||||||
|
|
||||||
%9Remarks:%9
|
%9See also:%9 QUOTE, STATS, WHOIS
|
||||||
|
|
||||||
Not all networks support server-side filtering. Some provide a network
|
|
||||||
service or service bot instead; on IRCnet, you may use the List service:
|
|
||||||
|
|
||||||
/SQUERY Alis HELP
|
|
||||||
|
|
||||||
Other networks with service bots (like ChanServ) may also provide a list
|
|
||||||
service bot (confirm with /WHOIS ALIS):
|
|
||||||
|
|
||||||
/MSG Alis HELP
|
|
||||||
|
|
||||||
%9See also:%9 STATS, SQUERY, WHOIS
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,10 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/LOG OPEN -targets mike ~/irclogs/mike.log MSGS
|
/LOG OPEN -targets mike ~/irclogs/mike.log MSGS
|
||||||
/LOG OPEN -targets #irssi ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
|
/LOG OPEN -targets #irssi-freenode ~/irclogs/freenode/irssi-%%Y-%%m-%%d
|
||||||
/LOG CLOSE ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
|
/LOG CLOSE ~/irclogs/freenode/irssi-%%Y-%%m-%%d
|
||||||
/LOG STOP ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
|
/LOG STOP ~/irclogs/freenode/irssi-%%Y-%%m-%%d
|
||||||
/LOG START ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
|
/LOG START ~/irclogs/freenode/irssi-%%Y-%%m-%%d
|
||||||
|
|
||||||
/SET autolog ON
|
/SET autolog ON
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
The server to search on and the remote server to search on; if no arguments
|
The server to search on and the remote sever to search on; if no arguments
|
||||||
are given, the active server will be used.
|
are given, the active server will be used.
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
# don't forget to add new help files to ../meson.build
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/MOTD
|
/MOTD
|
||||||
/MOTD irc.libera.chat
|
/MOTD orwel.freenode.org
|
||||||
/MOTD bob
|
/MOTD bob
|
||||||
|
|
||||||
%9See also:%9 ADMIN, INFO, LINKS, MAP
|
%9See also:%9 ADMIN, INFO, LINKS, MAP
|
||||||
|
|
|
||||||
|
|
@ -11,14 +11,6 @@
|
||||||
|
|
||||||
The target nickname or channel and the message to send.
|
The target nickname or channel and the message to send.
|
||||||
|
|
||||||
The target can be a comma delimited list of targets, ie
|
|
||||||
nick1,nick2 or #chan1,#chan2
|
|
||||||
|
|
||||||
Or one of the following special targets:
|
|
||||||
* : Use the active nickname or channel
|
|
||||||
, : Last person who sent you a /msg
|
|
||||||
. : Last person you sent a /msg to
|
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Sends a message to a nickname or channel.
|
Sends a message to a nickname or channel.
|
||||||
|
|
@ -27,7 +19,6 @@
|
||||||
|
|
||||||
/MSG mike Hi, what's up?
|
/MSG mike Hi, what's up?
|
||||||
/MSG #irssi I am awesome :)
|
/MSG #irssi I am awesome :)
|
||||||
/MSG * Do you want to build a snowman?
|
|
||||||
|
|
||||||
%9See also:%9 ACTION, DCC, JOIN
|
%9See also:%9 ACTION, DCC, JOIN
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/NAMES -ops
|
/NAMES -ops
|
||||||
/NAMES -voices #irssi,#libera
|
/NAMES -voices #irssi,#freenode
|
||||||
|
|
||||||
%9See also:%9 JOIN, PART, WHO, WHOIS
|
%9See also:%9 JOIN, PART, WHO, WHOIS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/NCTCP #irssi VERSION King of the Jungle v1.0
|
/NCTCP #irssi VERSION King of the Jungle v1.0
|
||||||
/NCTCP bob,#libera USERINFO I am bob :p
|
/NCTCP bob,#freenode USERINFO I am bob :p
|
||||||
|
|
||||||
%9See also:%9 CTCP
|
%9See also:%9 CTCP
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,16 @@
|
||||||
|
|
||||||
LIST: Displays the list of configured networks.
|
LIST: Displays the list of configured networks.
|
||||||
ADD: Adds a network to your configuration.
|
ADD: Adds a network to your configuration.
|
||||||
MODIFY: Modifies a network in your configuration.
|
|
||||||
REMOVE: Removes a network from your configuration.
|
REMOVE: Removes a network from your configuration.
|
||||||
|
|
||||||
-nick: Specifies the nickname to use.
|
-nick: Specifies the nickname to use.
|
||||||
-alternate_nick Specifies the alternate nickname to use.
|
|
||||||
-user: Specifies the user identity to use.
|
-user: Specifies the user identity to use.
|
||||||
-realname: Specifies the real name to use.
|
-realname: Specifies the real name to use.
|
||||||
-host: Specifies the hostname to use.
|
-host: Specifies the hostname to use.
|
||||||
-usermode: Specifies the user modes to set on yourself.
|
-usermode: Specifies the user modes to set on yourself.
|
||||||
-autosendcmd: Specifies the commands, separated by the ';' character,
|
-autosendcmd: Specifies the commands, separated by the ';' character,
|
||||||
and enclosed within two "'" characters, to perform after
|
and enclosed within two "'" characters, to perform after
|
||||||
connecting.
|
connecting.
|
||||||
(Some characters need to be escaped - see /help eval)
|
|
||||||
-querychans: Specifies the maximum number of channels to put in one MODE
|
-querychans: Specifies the maximum number of channels to put in one MODE
|
||||||
or WHO command when synchronizing.
|
or WHO command when synchronizing.
|
||||||
-whois: Specifies the maximum number of nicknames in one WHOIS
|
-whois: Specifies the maximum number of nicknames in one WHOIS
|
||||||
|
|
@ -35,13 +32,6 @@
|
||||||
additional commands to the server.
|
additional commands to the server.
|
||||||
-cmdmax: Specifies the maximum number of commands to perform before
|
-cmdmax: Specifies the maximum number of commands to perform before
|
||||||
starting the internal flood protection.
|
starting the internal flood protection.
|
||||||
-sasl_mechanism Specifies the mechanism to use for the SASL authentication.
|
|
||||||
Irssi supports: PLAIN, EXTERNAL, SCRAM-SHA-1, SCRAM-SHA-256
|
|
||||||
and SCRAM-SHA-512
|
|
||||||
Use '' to disable the authentication.
|
|
||||||
-sasl_username Specifies the username to use during the SASL authentication.
|
|
||||||
-sasl_password Specifies the password to use during the SASL authentication.
|
|
||||||
|
|
||||||
|
|
||||||
The name of the network to add, edit or remove; if no parameter is given,
|
The name of the network to add, edit or remove; if no parameter is given,
|
||||||
the list of networks will be displayed.
|
the list of networks will be displayed.
|
||||||
|
|
@ -60,11 +50,10 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/NETWORK ADD -usermode +giw EFnet
|
/NETWORK ADD -usermode +giw EFnet
|
||||||
/NETWORK ADD -usermode +iw -nick mike -realname 'The one and only mike!' -host staff.irssi.org liberachat
|
/NETWORK ADD -usermode +iw -nick mike -realname 'The one and only mike!' -host staff.irssi.org Freenode
|
||||||
/NETWORK ADD -autosendcmd '^MSG NickServ identify WzerT8zq' liberachat
|
/NETWORK ADD -autosendcmd '^MSG NickServ identify WzerT8zq' Freenode
|
||||||
/NETWORK ADD -autosendcmd '^MSG Q@CServe.quakenet.org AUTH mike WzerT8zq; WAIT 2000; OPER mike WzerT8zq; WAIT 2000; MODE mike +kXP' Quakenet
|
/NETWORK ADD -autosendcmd '^MSG Q@CServe.quakenet.org AUTH mike WzerT8zq; WAIT 2000; OPER mike WzerT8zq; WAIT 2000; MODE mike +kXP' Quakenet
|
||||||
/NETWORK MODIFY -usermode +gi EFnet
|
/NETWORK REMOVE Freenode
|
||||||
/NETWORK REMOVE liberachat
|
|
||||||
|
|
||||||
%9See also:%9 CHANNEL, CONNECT, SERVER
|
%9See also:%9 CHANNEL, CONNECT, SERVER
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,111 +0,0 @@
|
||||||
|
|
||||||
OTR %|[OPTION]
|
|
||||||
|
|
||||||
Command to control the OTR module. Without an option, /OTR INFO is printed.
|
|
||||||
|
|
||||||
This help contains three sections which are %9options, quickstart and files.%n
|
|
||||||
|
|
||||||
To add the OTR status bar (highly recommended):
|
|
||||||
|
|
||||||
%9/statusbar window add otr%n
|
|
||||||
|
|
||||||
%9Options:%n
|
|
||||||
|
|
||||||
AUTH <secret>
|
|
||||||
Start or respond to an authentication process.
|
|
||||||
|
|
||||||
AUTHQ <question> <secret>
|
|
||||||
Start a SMP authentication process.
|
|
||||||
|
|
||||||
Example: %9/otr authq "My question is" "this is the secret"%n
|
|
||||||
|
|
||||||
AUTHABORT
|
|
||||||
Abort an ongoing authentication process.
|
|
||||||
|
|
||||||
CONTEXTS
|
|
||||||
List known contexts which basically list the known fingerprints and their
|
|
||||||
state.
|
|
||||||
|
|
||||||
DEBUG
|
|
||||||
Turn on debugging.
|
|
||||||
|
|
||||||
DISTRUST <fingerprint>
|
|
||||||
Distrust a specific fingerprint. This command can be done inside a private
|
|
||||||
window for which the current fingerprint of the other person will be used
|
|
||||||
or else set fp to a human readable OTR fingerprint available with the above
|
|
||||||
contexts command.
|
|
||||||
|
|
||||||
Examples: %9/otr distrust 487FFADA 5073FEDD C5AB5C14 5BB6C1FF 6D40D48A%n
|
|
||||||
|
|
||||||
FINISH
|
|
||||||
End the OTR session. This MUST be done inside a private conversation
|
|
||||||
window.
|
|
||||||
|
|
||||||
FORGET <fingerprint>
|
|
||||||
Forget a specific fingerprint (deleted from the known fingerprints). The
|
|
||||||
behavior is the same as the distrust command explained above.
|
|
||||||
|
|
||||||
GENKEY <name>
|
|
||||||
Generate OTR keys for a given account name. This is done automatically
|
|
||||||
if someone tries to establish a secure session.
|
|
||||||
|
|
||||||
This process is done in a background worker and can take an arbitrary
|
|
||||||
amount of time. The completion is checked when another irssi event is
|
|
||||||
caught.
|
|
||||||
|
|
||||||
HELP
|
|
||||||
Print this help.
|
|
||||||
|
|
||||||
INFO
|
|
||||||
Display the OTR fingerprint(s) of all your account(s).
|
|
||||||
|
|
||||||
INIT
|
|
||||||
Initialize an OTR conversation within a private conversation window.
|
|
||||||
|
|
||||||
TRUST <fingerprint>
|
|
||||||
Trust a specific fingerprint. The behavior is the same as the forget and
|
|
||||||
distrust commands explained above.
|
|
||||||
|
|
||||||
VERSION
|
|
||||||
Print the version of the OTR module.
|
|
||||||
|
|
||||||
%9Quickstart:%n
|
|
||||||
|
|
||||||
Start a private conversation with the person you want to initiate a secure
|
|
||||||
session. Once in the private message window:
|
|
||||||
|
|
||||||
%9/otr init%n
|
|
||||||
|
|
||||||
Key generation should start if no key is found for your account name. Once the
|
|
||||||
process is done, either type a message which should automatically start the
|
|
||||||
session or redo the init command.
|
|
||||||
|
|
||||||
Time to authenticate the person. Either use a shared secret exchange through
|
|
||||||
phone or GPG-signed email or use the socialist millionaire problem mechanism
|
|
||||||
(SMP) which is basically to ask a question for which the answer can only be
|
|
||||||
known by the other person.
|
|
||||||
|
|
||||||
%9/otr auth <shared-secret>%n OR %9/otr authq "A question" <shared-secret>%n
|
|
||||||
|
|
||||||
Or to respond to an authentication:
|
|
||||||
|
|
||||||
%9/otr auth <secret>%n
|
|
||||||
|
|
||||||
%9Files:%n
|
|
||||||
|
|
||||||
This otr modules creates a directory in %9$HOME/.irssi/otr%n and creates three
|
|
||||||
files:
|
|
||||||
|
|
||||||
* %9otr.key%n
|
|
||||||
Contains your OTR private key(s). NEVER shared this directory with someone
|
|
||||||
else unless you know what you are doing.
|
|
||||||
|
|
||||||
* %9otr.fp%n
|
|
||||||
The known fingerprints with their _trust_ status.
|
|
||||||
|
|
||||||
* %9otr.instag
|
|
||||||
Instance tag of the libotr. This should NEVER be copied to an other
|
|
||||||
computer. If unsure, just ignore this file.
|
|
||||||
|
|
||||||
For more information on OTR, see https://otr.cypherpunks.ca/
|
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/PART #irssi
|
/PART #irssi
|
||||||
/PART #libera,#irssi
|
/PART #freenode,#irssi
|
||||||
|
|
||||||
%9See also:%9 JOIN, KICK
|
%9See also:%9 JOIN, KICK
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/QUERY mike
|
/QUERY mike
|
||||||
/QUERY -liberachat bob
|
/QUERY -freenode bob
|
||||||
/QUERY -liberachat -window sarah
|
/QUERY -freenode -window sarah
|
||||||
|
|
||||||
%9See also:%9 MSG, UNQUERY, WINDOW
|
%9See also:%9 MSG, UNQUERY, WINDOW
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/RECODE
|
/RECODE
|
||||||
/RECODE ADD liberachat/mike utf-8
|
/RECODE ADD Freenode/mike utf-8
|
||||||
/RECODE ADD #korea euc-kr
|
/RECODE ADD #korea euc-kr
|
||||||
/RECODE REMOVE #korea
|
/RECODE REMOVE #korea
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/RECONNECT
|
/RECONNECT
|
||||||
/RECONNECT liberachat
|
/RECONNECT Freenode
|
||||||
/RECONNECT EFnet BRB :)
|
/RECONNECT EFnet BRB :)
|
||||||
|
|
||||||
%9See also:%9 CONNECT, DISCONNECT, NETWORK, RMRECONNS, SERVER
|
%9See also:%9 CONNECT, DISCONNECT, NETWORK, RMRECONNS, SERVER
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
RESET: Unloads all the scripts.
|
RESET: Unloads all the scripts.
|
||||||
-permanent: In combination with EXEC, the code will be loaded into the
|
-permanent: In combination with EXEC, the code will be loaded into the
|
||||||
memory.
|
memory.
|
||||||
-autorun: When passed to RESET the scripts in the autorun folder are
|
|
||||||
reloaded.
|
|
||||||
|
|
||||||
If no argument is given, the list of active scripts will be displayed.
|
If no argument is given, the list of active scripts will be displayed.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Manipulate the text in the window to go to the given line number, or
|
Manipulate the text in the window to go to a to the given line number, or
|
||||||
clear the buffers.
|
clear the buffers.
|
||||||
|
|
||||||
The timestamp format is '[dd[.mm] | -<days ago>] hh:mi[:ss]'.
|
The timestamp format is format is '[dd[.mm] | -<days ago>] hh:mi[:ss]'.
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,74 +5,65 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
LIST: Displays the list of servers you have configured.
|
LIST: Displays the list of servers you are connected to.
|
||||||
CONNECT: Connects to the given server.
|
CONNECT: Connects to the given server.
|
||||||
ADD: Adds a server to your configuration.
|
ADD: Adds a server to your configuration.
|
||||||
MODIFY: Modifies a server in your configuration.
|
REMOVE: Removes a server from your configuration.
|
||||||
REMOVE: Removes a server from your configuration.
|
PURGE: Purges the commands queued to be sent to the server.
|
||||||
PURGE: Purges the commands queued to be sent to the server.
|
|
||||||
|
|
||||||
-!: Doesn't autojoin the channels.
|
-!: Doesn't autojoin the channels.
|
||||||
-4: Connects using IPv4.
|
-4: Connects using IPv4.
|
||||||
-6: Connects using IPv6.
|
-6: Connects using IPv6.
|
||||||
-tls: Connects using TLS encryption.
|
-ssl: Connects using SSL encryption.
|
||||||
-notls: Connect without TLS encrption.
|
-ssl_cert: The SSL client certificate file.
|
||||||
-tls_cert: The TLS client certificate file.
|
-ssl_pkey: The SSL client private key, if not included in the
|
||||||
-tls_pkey: The TLS client private key, if not included in the
|
certificate file.
|
||||||
certificate file.
|
-ssl_pass: Verifies the SSL certificate of the server.
|
||||||
-tls_pass: The password for the TLS client private key or certificate.
|
-ssl_verify: Verifies the SSL certificate of the server.
|
||||||
-tls_verify: Verifies the TLS certificate of the server.
|
-ssl_cafile: The file with the list of CA certificates.
|
||||||
-notls_verify: Doesn't verify the TLS certificate of the server.
|
-ssl_capath: The directory which contains the CA certificates.
|
||||||
-tls_cafile: The file with the list of CA certificates.
|
-auto: Automatically connects to the server on startup.
|
||||||
-tls_capath: The directory which contains the CA certificates.
|
-noauto: Doesn't connect to the server on startup.
|
||||||
-tls_ciphers: TLS cipher suite preference lists.
|
-network: The network the server belongs to.
|
||||||
-tls_pinned_cert: Pinned x509 certificate fingerprint.
|
-host: The hostname you would like to connect from.
|
||||||
-tls_pinned_pubkey: Pinned public key fingerprint.
|
-cmdspeed: Specifies the minimum amount of time, expressed in
|
||||||
-auto: Automatically connects to the server on startup.
|
milliseconds, that the client must wait before sending
|
||||||
-noauto: Doesn't connect to the server on startup.
|
additional commands to the server.
|
||||||
-cap: Enable CAPREQ for server.
|
-cmdmax: Specifies the maximum number of commands to perform
|
||||||
-nocap: Disable CAPREQ for server.
|
before starting the internal flood protection.
|
||||||
-network: The network the server belongs to.
|
-port: Specifies the port to connect to the server.
|
||||||
-host: The hostname you would like to connect from.
|
-noproxy: Ignores the global proxy configuration.
|
||||||
-cmdspeed: Specifies the minimum amount of time, expressed in
|
-rawlog: Immediately open rawlog after connecting.
|
||||||
milliseconds, that the client must wait before sending
|
-noautosendcmd: Doesn't execute autosendcmd.
|
||||||
additional commands to the server.
|
|
||||||
-cmdmax: Specifies the maximum number of commands to perform
|
|
||||||
before starting the internal flood protection.
|
|
||||||
-port: Specifies the port to connect to the server.
|
|
||||||
-noproxy: Ignores the global proxy configuration.
|
|
||||||
-rawlog: Immediately open rawlog after connecting.
|
|
||||||
-noautosendcmd: Doesn't execute autosendcmd.
|
|
||||||
|
|
||||||
The server, port and network to add, modify or remove; if no argument is
|
The server, port and network to add, modify or remove; if no argument is
|
||||||
given, the list of servers you are connected to will be returned.
|
given, the list of servers you are connected to will be returned.
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Displays, adds, modifies or removes the network configuration of IRC
|
Displays, adds, modifies or removes the network configuration of IRC
|
||||||
servers.
|
servers.
|
||||||
|
|
||||||
When using the ADD parameter on a server that already exists, the
|
When using the ADD parameter on a server that already exists, the
|
||||||
configuration will be merged with each other.
|
configuration will be merged with each other.
|
||||||
|
|
||||||
When using the CONNECT parameter, it will connect to the specified
|
When using the command without any of the given parameters, it will
|
||||||
server; the server in the active window will be disconnected
|
connect to the specified server; the server in the active window will be
|
||||||
unless you prepend the server with the '+' character.
|
disconnected unless you prepend the server with the '+' character; the same
|
||||||
|
method is applicable to the CONNECT parameter.
|
||||||
Specify '-' as password to remove a server password
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/SERVER
|
/SERVER
|
||||||
/SERVER CONNECT irc.libera.chat
|
/SERVER chat.freenode.net
|
||||||
/SERVER CONNECT +irc.libera.chat
|
/SERVER +chat.freenode.net
|
||||||
/SERVER ADD -network liberachat -noautosendcmd irc.libera.chat
|
/SERVER CONNECT chat.freenode.net
|
||||||
/SERVER ADD -! -auto -host staff.irssi.org -4 -network liberachat -noproxy irc.libera.chat 6667
|
/SERVER CONNECT +chat.freenode.net
|
||||||
/SERVER MODIFY -network liberachat -noauto irc.libera.chat
|
/SERVER ADD -network Freenode -noautosendcmd orwell.freenode.net
|
||||||
/SERVER MODIFY -network liberachat irc.libera.chat 6697 -
|
/SERVER ADD -! -auto -host staff.irssi.org -port 6667 -4 -network Freenode -noproxy orwell.freenode.net
|
||||||
/SERVER REMOVE irc.libera.chat 6667 liberachat
|
/SERVER REMOVE -network Freenode orwell.freenode.net
|
||||||
/SERVER PURGE
|
/SERVER PURGE
|
||||||
/SERVER PURGE irc.libera.chat
|
/SERVER PURGE orwell.freenode.net
|
||||||
|
|
||||||
%9See also:%9 CHANNEL, CONNECT, DISCONNECT, NETWORK, RECONNECT, RMRECONNS
|
%9See also:%9 CHANNEL, CONNECT, DISCONNECT, NETWORK, RECONNECT, RMRECONNS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
|
|
||||||
%9Syntax:%9
|
|
||||||
|
|
||||||
@SYNTAX:servlist@
|
|
||||||
|
|
||||||
%9Parameters:%9
|
|
||||||
|
|
||||||
<mask> limits the output to the services which names matches
|
|
||||||
the mask.
|
|
||||||
<type> limits the output to the services of the specified type.
|
|
||||||
|
|
||||||
%9Description:%9
|
|
||||||
|
|
||||||
List the network services currently present on the
|
|
||||||
IRC network.
|
|
||||||
|
|
||||||
%9Examples:%9
|
|
||||||
|
|
||||||
/SERVLIST *@javairc.*
|
|
||||||
/SERVLIST * 0xD000
|
|
||||||
|
|
||||||
%9See also:%9 SQUERY
|
|
||||||
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
-clear: Removes the setting's value from the configuration.
|
-clear: Removes the setting's value from the configuration.
|
||||||
-default: Restore the setting to its default value.
|
-default: Restore the setting to its default value.
|
||||||
-section: Print settings under the specified section
|
|
||||||
|
|
||||||
The setting and the value; if no value is given, the list of settings that
|
The setting and the value; if no value is given, the list of settings that
|
||||||
matched will be returned. If no arguments are given, all the settings will
|
matched will be returned. If no arguments are given, all the settings will
|
||||||
|
|
@ -28,7 +27,6 @@
|
||||||
/SET -clear nick
|
/SET -clear nick
|
||||||
/SET log_timestamp %%H:%%H:%%S
|
/SET log_timestamp %%H:%%H:%%S
|
||||||
/SET -default log_timestamp
|
/SET -default log_timestamp
|
||||||
/SET -section lookandfeel
|
|
||||||
/SET close
|
/SET close
|
||||||
|
|
||||||
%9See also:%9 SAVE, TOGGLE
|
%9See also:%9 SAVE, TOGGLE
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
|
|
||||||
%9Syntax:%9
|
|
||||||
|
|
||||||
@SYNTAX:squery@
|
|
||||||
|
|
||||||
%9Parameters:%9
|
|
||||||
|
|
||||||
<service> - Service nickname or full hostmask of service to query.
|
|
||||||
<message> - Message to send to the service.
|
|
||||||
|
|
||||||
%9Description:%9
|
|
||||||
|
|
||||||
/SQUERY sends a query to the specified service.
|
|
||||||
|
|
||||||
%9See also:%9 SERVLIST, LIST, MSG
|
|
||||||
|
|
||||||
|
|
@ -5,61 +5,32 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
ADD: Adds a statusbar to the list of statusbars.
|
ENABLE: Enables the statusbar.
|
||||||
MODIFY: Modifies the configuration of a statusbar.
|
DISABLE: Disabled the statusbar.
|
||||||
RESET: Restores the default statusbar configuration.
|
RESET: Restores the default statusbar configuration.
|
||||||
ADDITEM: Adds an item to the specified statusbar. It can be set to
|
TYPE: Identifies the type of statusbar.
|
||||||
appear before/after another item and left/right aligned
|
PLACEMENT: Identifies the placement of the statusbar.
|
||||||
on the screen.
|
POSITION: Identifies the position of the statusbar.
|
||||||
MODIFYITEM: Changes an item position inside a bar.
|
VISIBLE: Identifies the visibility of the statusbar.
|
||||||
REMOVEITEM: Removes an item from the specified statusbar.
|
ADD: Adds a statusbar into the configuration.
|
||||||
INFO: List the current details and items of the specified
|
REMOVE: Removes a statusbar from the configuration.
|
||||||
statusbar.
|
|
||||||
|
|
||||||
-disable: Removes a statusbar from the list.
|
The name of the statusbar; if no argument is given, the list of statusbars
|
||||||
-type: Sets the type of statusbar, for each split window or only
|
will be displayed.
|
||||||
once at the root (very top or bottom) of the screen.
|
|
||||||
-placement: Sets the placement of the statusbar, either at the top or
|
|
||||||
the bottom of the screen or split window.
|
|
||||||
-position: Sets the position of the statusbar. Represented as a
|
|
||||||
number, with smaller numbers implying a position further
|
|
||||||
to the top.
|
|
||||||
-visible: Sets the visibility of the statusbar. If set to always,
|
|
||||||
it is visible on all split windows, otherwise if set to
|
|
||||||
inactive or active then it is only visible on inactive or
|
|
||||||
active split windows, respectively.
|
|
||||||
-before: This item is added before the other item.
|
|
||||||
-after: This item is added after the other item.
|
|
||||||
-priority: When the statusbar items overflow, the item with the
|
|
||||||
lowest priority is removed or truncated first.
|
|
||||||
Priority can be negative, in which case it'll have to be
|
|
||||||
quoted (e.g. -priority "-1")
|
|
||||||
-alignment: Display the item on the right side.
|
|
||||||
|
|
||||||
Where statusbar refers to the name of the statusbar; if no
|
|
||||||
argument is given, or `LIST` is given, the entire list of
|
|
||||||
statusbars along with a quick overview of their properties will be
|
|
||||||
displayed.
|
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
Allows adjustment of the attributes and items of a statusbar, as well
|
Modified the attributes of the statusbar.
|
||||||
as where it is located and whether or not it is currently visible.
|
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
/STATUSBAR
|
/STATUSBAR
|
||||||
/STATUSBAR INFO window
|
/STATUSBAR window
|
||||||
/STATUSBAR REMOVEITEM time window
|
/STATUSBAR window REMOVE time
|
||||||
/STATUSBAR ADDITEM time window
|
/STATUSBAR window ADD time
|
||||||
/STATUSBAR RESET window
|
/STATUSBAR window RESET
|
||||||
/STATUSBAR MODIFY -disable topic
|
/STATUSBAR topic DISABLE
|
||||||
/STATUSBAR MODIFY -nodisable topic
|
/STATUSBAR topic ENABLE
|
||||||
|
|
||||||
%9Remarks:%9
|
|
||||||
|
|
||||||
Statusbar syntax was changed in Irssi 1.2. The old syntax is still
|
|
||||||
accepted for backward compatibility, but no longer documented.
|
|
||||||
|
|
||||||
%9See also:%9 WINDOW
|
%9See also:%9 WINDOW
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
%9Examples:%9
|
%9Examples:%9
|
||||||
|
|
||||||
|
/TOGGLE resolve_prefer_ipv6
|
||||||
/TOGGLE channels_rejoin_unavailable ON
|
/TOGGLE channels_rejoin_unavailable ON
|
||||||
|
|
||||||
%9See also:%9 SET
|
%9See also:%9 SET
|
||||||
|
|
|
||||||
|
|
@ -5,55 +5,49 @@
|
||||||
|
|
||||||
%9Parameters:%9
|
%9Parameters:%9
|
||||||
|
|
||||||
LOG: %|Turn on or off logging of the active window, optionally specifying the log file to use.
|
LOG: Modifies the logging status.
|
||||||
LOGFILE: %|Sets the location of the log file to use for window logging without starting to log.
|
LOGFILE: Modifies the location to the log file.
|
||||||
NEW: %|Creates a new hidden or split window.
|
NEW: Creates a new window.
|
||||||
CLOSE: %|Closes the current window, the specified one or all windows in the given range.
|
CLOSE: Closes a window.
|
||||||
REFNUM: %|Go to the window with the given number.
|
REFNUM: Go to the window with the given number.
|
||||||
GOTO: %|Go to the window with activity, with the given nickname, channel or with the specified number.
|
GOTO: Go to the window with the given nickname, channel or number.
|
||||||
NEXT: %|Go to the next window numerically.
|
NEXT: Go to the next window.
|
||||||
LAST: %|Go to the previously active window.
|
LAST: Go to the last window.
|
||||||
PREVIOUS: %|Go to the previous window numerically.
|
PREVIOUS: Go to the previous window.
|
||||||
LEVEL: %|Changes the text levels to display in the window, or query the current level.
|
LEVEL: Modifies the text levels to display in the window.
|
||||||
IMMORTAL: %|Modifies or queries the window mortality status. Immortal windows have an extra protection against WINDOW CLOSE.
|
IMMORTAL: Modifies the window mortality status.
|
||||||
SERVER: %|Change the active server of the window or the server stickyness. If the server is sticky, it cannot be cycled with next_window_item/previous_window_item
|
SERVER: Set the active server of the window.
|
||||||
ITEM PREV: %|Make the previous item in this window active.
|
ITEM PREV: Go to the previous item in the window.
|
||||||
ITEM NEXT: %|Make the next item in this window active.
|
ITEM NEXT: Go to the next item in the window.
|
||||||
ITEM GOTO: %|Change to the query with the specified nickname, channel with the given name or window item number.
|
ITEM GOTO: Go to the specified nickname, channel or window item number.
|
||||||
ITEM MOVE: %|Move the active window item to another window, or move the channel or query item specified by their name to the current window.
|
ITEM MOVE: Move the active window item to another window.
|
||||||
NUMBER: %|Change the active window number to the specified number, swapping the window already in that place if required. With -sticky, protect the window number from renumbering done by windows_auto_renumber. (To re-set the sticky attribute, use WINDOW NUMBER again without -sticky.)
|
NUMBER: Move the active window to another position.
|
||||||
NAME: %|Change or clear the window name. Window names must be unique.
|
NAME: Give the window a name.
|
||||||
HISTORY: %|Set or clear a specific named history to use for this window. All windows with the same named history will share a history.
|
HISTORY: Clears the window history buffer.
|
||||||
MOVE PREV: %|Move the window to the place of the numerically previous window. At the first position, move the window to the end and renumber the consecutive block that it was part of.
|
MOVE PREV: Move the window down.
|
||||||
MOVE NEXT: %|Move the window to the place of the numerically next window. At the last position, move the window to the first position and renumber the consecutive block at first position (if any)
|
MOVE NEXT: Move the window up.
|
||||||
MOVE FIRST: %|Move the window to the first position. Any windows inbetween are moved to their numerically next positions.
|
MOVE FIRST: Move the window to the first position.
|
||||||
MOVE LAST: %|Move the window to the last position. Any windows inbetween are moved to their numerically previous positions.
|
MOVE LAST: Move the window to the last position.
|
||||||
MOVE: %|Move the window to the specified number or the first number that is in use when moving the window in the direction of the specified position. Any windows inbetween are shifted towards the old position of the window (unused positions remain empty)
|
MOVE: Move the window.
|
||||||
LIST: %|List all the windows.
|
LIST: List all the windows.
|
||||||
THEME: %|Applies or removes a per-window theme.
|
THEME: Applies a theme to the windows.
|
||||||
GROW: %|Increase the size of the active split window by the specified number of lines.
|
GROW: Increase the window size when using split windows.
|
||||||
SHRINK: %|Decrease the size of the active split window by the specified number of lines.
|
SHRINK: Decrease the window size when using split windows.
|
||||||
SIZE: %|Set the current split window size to the specified number of lines.
|
SIZE: Modify the window size when using split windows.
|
||||||
BALANCE: %|Balance the heights of all split windows.
|
BALANCE: Balance the window locations when using split windows.
|
||||||
HIDE: %|Hides the current split window, or the split window specified by number or item name.
|
HIDE: Hide the window when using split windows.
|
||||||
SHOW: %|Show the window specified by number or item name as a new split windows. It is made sticky when autostick_split_windows is turned on.
|
SHOW: Show the window when using split windows.
|
||||||
UP: %|Set the split window left or above the current one active. At the top, wraps to the bottom.
|
UP: Go to the window above when using split windows.
|
||||||
DOWN: %|Set the split window right or below the current one active. At the bottom, wraps left.
|
DOWN: Go to the window below when using split windows.
|
||||||
LEFT: %|Go to the previous window numerically that is part of the current sticky group (or not part of any sticky group).
|
LEFT: Go to the previous window.
|
||||||
RIGHT: %|Go to the next window numerically that is part of the current sticky group (or not part of any sticky group).
|
RIGHT: Go to the next window.
|
||||||
STICK: %|Make the currently active window sticky, or stick the window specified by number to the currently visible split window. Or turn off stickyness of the currently active window or the window specified by number.
|
STICK: Make the window sticky.
|
||||||
HIDELEVEL: %|Changes the levels of text lines that should be hidden from view, or query the current hidden level.
|
MOVE LEFT: Move the window to the previous location.
|
||||||
MOVE LEFT: %|Move the window to the numerically previous location inside the current sticky group.
|
MOVE RIGHT: Move the window to the next location.
|
||||||
MOVE RIGHT: %|Move the window to the numerically next location inside the current sticky group.
|
MOVE UP: Move the window up when using split windows.
|
||||||
MOVE UP: %|Move the current window to the sticky group of the previous split window. If no sticky group remains, the split window collapses.
|
MOVE DOWN: Move the window down when using split windows.
|
||||||
MOVE DOWN: %|Move the current window to the sticky group of the next split window. If no sticky group remains, the split window collapses.
|
|
||||||
|
|
||||||
-right: %|Makes the command work on the width instead of height, or create the split window to the right instead of top.
|
Add the required arguments for the given command.
|
||||||
-directional: %|Set the split window in the given direction to the current one active, or move the current window to the sticky group of the split window in the given direction. (If no sticky group remains, the split window collapses.)
|
|
||||||
|
|
||||||
%|Add the required arguments for the given command. Without arguments, the details (size, immortality, levels, server, name and sticky group) of the currently active window are displayed. If used with a number as argument, same as WINDOW REFNUM.
|
|
||||||
|
|
||||||
%|LEVEL and HIDELEVEL modify the currently set level. Without arguments, the current level is displayed. Levels listed starting with `+' are added to the current levels. Levels listed starting with `-' are removed from the current levels. To clear the levels, start the new level setting with `NONE'. Levels listed starting with `^' are either removed or added from the current setting, depending on whether they were previously set or not (since Irssi 1.4.4). Levels listed as is are also added to the current levels. Afterwards, the new level setting is displayed.
|
|
||||||
|
|
||||||
%9Description:%9
|
%9Description:%9
|
||||||
|
|
||||||
|
|
@ -71,8 +65,7 @@
|
||||||
/WINDOW LOG OFF
|
/WINDOW LOG OFF
|
||||||
/WINDOW LOG ON ~/logs/debug.log
|
/WINDOW LOG ON ~/logs/debug.log
|
||||||
/WINDOW LEVEL -ALL +NOTICES
|
/WINDOW LEVEL -ALL +NOTICES
|
||||||
/WINDOW HIDELEVEL ^JOINS ^PARTS ^QUITS
|
|
||||||
/WINDOW LOGFILE ~/logs/notices.log
|
/WINDOW LOGFILE ~/logs/notices.log
|
||||||
|
|
||||||
%9See also:%9 JOIN, LEVELS, LOG, QUERY, SET window_default_level, SET window_default_hidelevel
|
%9See also:%9 JOIN, LEVELS, LOG, QUERY
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,122 +0,0 @@
|
||||||
install_data(
|
|
||||||
files(
|
|
||||||
'accept',
|
|
||||||
'action',
|
|
||||||
'admin',
|
|
||||||
'alias',
|
|
||||||
'away',
|
|
||||||
'ban',
|
|
||||||
'beep',
|
|
||||||
'bind',
|
|
||||||
'cat',
|
|
||||||
'cd',
|
|
||||||
'channel',
|
|
||||||
'clear',
|
|
||||||
'completion',
|
|
||||||
'connect',
|
|
||||||
'ctcp',
|
|
||||||
'cycle',
|
|
||||||
'dcc',
|
|
||||||
'dehilight',
|
|
||||||
'deop',
|
|
||||||
'devoice',
|
|
||||||
'die',
|
|
||||||
'disconnect',
|
|
||||||
'echo',
|
|
||||||
'eval',
|
|
||||||
'exec',
|
|
||||||
'flushbuffer',
|
|
||||||
'format',
|
|
||||||
'hash',
|
|
||||||
'help',
|
|
||||||
'hilight',
|
|
||||||
'ignore',
|
|
||||||
'info',
|
|
||||||
'invite',
|
|
||||||
'irssiproxy',
|
|
||||||
'ison',
|
|
||||||
'join',
|
|
||||||
'kick',
|
|
||||||
'kickban',
|
|
||||||
'kill',
|
|
||||||
'knock',
|
|
||||||
'knockout',
|
|
||||||
'lastlog',
|
|
||||||
'layout',
|
|
||||||
'levels',
|
|
||||||
'links',
|
|
||||||
'list',
|
|
||||||
'load',
|
|
||||||
'log',
|
|
||||||
'lusers',
|
|
||||||
'map',
|
|
||||||
'me',
|
|
||||||
'mircdcc',
|
|
||||||
'mode',
|
|
||||||
'motd',
|
|
||||||
'msg',
|
|
||||||
'names',
|
|
||||||
'nctcp',
|
|
||||||
'netsplit',
|
|
||||||
'network',
|
|
||||||
'nick',
|
|
||||||
'notice',
|
|
||||||
'notify',
|
|
||||||
'op',
|
|
||||||
'oper',
|
|
||||||
'otr',
|
|
||||||
'part',
|
|
||||||
'ping',
|
|
||||||
'query',
|
|
||||||
'quit',
|
|
||||||
'quote',
|
|
||||||
'rawlog',
|
|
||||||
'recode',
|
|
||||||
'reconnect',
|
|
||||||
'rehash',
|
|
||||||
'reload',
|
|
||||||
'restart',
|
|
||||||
'rmreconns',
|
|
||||||
'rmrejoins',
|
|
||||||
'save',
|
|
||||||
'sconnect',
|
|
||||||
'script',
|
|
||||||
'scrollback',
|
|
||||||
'server',
|
|
||||||
'servlist',
|
|
||||||
'set',
|
|
||||||
'silence',
|
|
||||||
'squery',
|
|
||||||
'squit',
|
|
||||||
'stats',
|
|
||||||
'statusbar',
|
|
||||||
'time',
|
|
||||||
'toggle',
|
|
||||||
'topic',
|
|
||||||
'trace',
|
|
||||||
'ts',
|
|
||||||
'unalias',
|
|
||||||
'unban',
|
|
||||||
'unignore',
|
|
||||||
'unload',
|
|
||||||
'unnotify',
|
|
||||||
'unquery',
|
|
||||||
'unsilence',
|
|
||||||
'upgrade',
|
|
||||||
'uptime',
|
|
||||||
'userhost',
|
|
||||||
'ver',
|
|
||||||
'version',
|
|
||||||
'voice',
|
|
||||||
'wait',
|
|
||||||
'wall',
|
|
||||||
'wallops',
|
|
||||||
'who',
|
|
||||||
'whois',
|
|
||||||
'whowas',
|
|
||||||
'window',
|
|
||||||
),
|
|
||||||
install_dir : helpdir,
|
|
||||||
)
|
|
||||||
|
|
||||||
# subdir('in')
|
|
||||||
65
docs/irssi.1
65
docs/irssi.1
|
|
@ -1,13 +1,12 @@
|
||||||
.TH Irssi 1 "June 2015" "Irssi IRC client"
|
.TH Irssi 1 "September 2002" "Irssi IRC client"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
Irssi \- a modular IRC client for UNIX
|
Irssi \- a modular IRC client for UNIX
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B irssi
|
.B irssi
|
||||||
[--config=PATH] [--home=PATH] [-dv!?] [-c server] [-p port] [-n nickname]
|
[-dv!?] [-c server] [-p port] [-n nickname] [-w password] [-h hostname]
|
||||||
[-w password] [-h hostname]
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B Irssi
|
.B Irssi
|
||||||
is a modular Internet Relay Chat client; it is highly extensible and
|
is a modular Internet Relay Chat client. It is highly extensible and
|
||||||
very secure. Being a fullscreen, termcap based client with many
|
very secure. Being a fullscreen, termcap based client with many
|
||||||
features,
|
features,
|
||||||
.B Irssi
|
.B Irssi
|
||||||
|
|
@ -17,15 +16,16 @@ is easily extensible through scripts and modules.
|
||||||
.BI "\-\-config="FILE
|
.BI "\-\-config="FILE
|
||||||
use
|
use
|
||||||
.I FILE
|
.I FILE
|
||||||
instead of ~/.irssi/config
|
instead of ~/.irssi/config.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-\-home="PATH
|
.BI "\-\-home="PATH
|
||||||
.I PATH
|
.I PATH
|
||||||
specifies the home directory of Irssi; default is
|
specifies the home directory of Irssi.
|
||||||
|
Default is
|
||||||
.BR ~/.irssi
|
.BR ~/.irssi
|
||||||
.TP
|
.TP
|
||||||
.BI "\-c, \-\-connect="SERVER
|
.BI "\-c, \-\-connect="SERVER
|
||||||
connect to
|
connects to
|
||||||
.I SERVER
|
.I SERVER
|
||||||
.TP
|
.TP
|
||||||
.BI "\-w, \-\-password="PASSWORD
|
.BI "\-w, \-\-password="PASSWORD
|
||||||
|
|
@ -39,50 +39,71 @@ automatically connect to
|
||||||
on server.
|
on server.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-!, \-\-noconnect"
|
.BI "\-!, \-\-noconnect"
|
||||||
disable autoconnecting of servers
|
disables autoconnecting.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-n, \-\-nick="NICKNAME
|
.BI "\-n, \-\-nick="NICKNAME
|
||||||
specify
|
specify
|
||||||
.I NICKNAME
|
.I NICKNAME
|
||||||
as your nick
|
as your nick.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-h, \-\-hostname="HOSTNAME
|
.BI "\-h, \-\-hostname="HOSTNAME
|
||||||
use
|
use
|
||||||
.I HOSTNAME
|
.I HOSTNAME
|
||||||
for your irc session
|
for your irc session.
|
||||||
|
.TP
|
||||||
|
.BI "\-d, \-\-dummy"
|
||||||
|
use dummy terminal mode.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-v, \-\-version"
|
.BI "\-v, \-\-version"
|
||||||
display the version of Irssi
|
display the version of Irssi.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-?, \-\-help"
|
.BI "\-?, \-\-help"
|
||||||
show a help message
|
show a help message.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.B Irssi
|
.B Irssi
|
||||||
has a solid amount of documentation available; check /HELP or look online
|
has been supplied with a huge amount of documentation. Check /help or look
|
||||||
at https://irssi.org
|
at the files contained by /usr/share/doc/irssi*
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.TP
|
||||||
|
.I /etc/irssi.conf
|
||||||
|
Global configuration file
|
||||||
|
.TP
|
||||||
.I ~/.irssi/config
|
.I ~/.irssi/config
|
||||||
personal configuration file
|
Personal configuration file
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/config.autosave
|
.I ~/.irssi/config.autosave
|
||||||
automatic save of the personal config file when it was changed externally
|
Automatic save of the personal config file when it was changed externally
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/default.theme
|
.I ~/.irssi/default.theme
|
||||||
default irssi theme
|
Default irssi theme
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/away.log
|
.I ~/.irssi/away.log
|
||||||
logged messages in away status
|
Logged messages in away status
|
||||||
|
.TP
|
||||||
|
.I /usr/share/irssi/help/
|
||||||
|
Directory including many help files
|
||||||
|
.TP
|
||||||
|
.I /usr/share/irssi/scripts/
|
||||||
|
Global scripts directory
|
||||||
|
.TP
|
||||||
|
.I /usr/share/irssi/themes/
|
||||||
|
Global themes directory
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/scripts/
|
.I ~/.irssi/scripts/
|
||||||
default scripts directory
|
Default scripts directory
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/scripts/autorun/
|
.I ~/.irssi/scripts/autorun/
|
||||||
directory containing links to scripts that should be loaded
|
Directory containing links to scripts that should be loaded
|
||||||
automatically on startup
|
automatically on startup
|
||||||
.TP
|
.TP
|
||||||
.I ~/.irssi/startup
|
.I ~/.irssi/startup
|
||||||
file containing a list of commands to execute on startup
|
File containing a list of commands to execute on startup
|
||||||
.SH AUTHORS/CREDITS
|
.SH AUTHORS/CREDITS
|
||||||
.B Irssi
|
.B Irssi
|
||||||
was written by Timo Sirainen; this manpage was written by Istvan Sebestyen, Stefan Tomanek, Geert Hauwaerts.
|
was written by Timo Sirainen
|
||||||
|
.B <cras@irssi.org>
|
||||||
|
.sp
|
||||||
|
This manpage was written by Istvan Sebestyen
|
||||||
|
.BR <stevee@alphanet.ch>
|
||||||
|
and Stefan Tomanek
|
||||||
|
.BR <stefan@pico.ruhr.de>
|
||||||
|
|
|
||||||
162
docs/manual.txt
162
docs/manual.txt
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
Irssi 0.8 documentation - https://irssi.org/
|
Irssi 0.8 documentation - http://www.irssi.org/
|
||||||
|
|
||||||
Copyright(c) 2000 Timo Sirainen <cras@irssi.org>
|
Copyright(c) 2000 Timo Sirainen <cras@irssi.org>
|
||||||
|
|
||||||
|
|
@ -18,16 +18,16 @@
|
||||||
9. Text highlighting
|
9. Text highlighting
|
||||||
10. Ignoring
|
10. Ignoring
|
||||||
11. Logging
|
11. Logging
|
||||||
12. Commands
|
|
||||||
14. Last log (currently text version only)
|
|
||||||
15. Word completion
|
|
||||||
16. Recode
|
|
||||||
18. Key bindings (text version)
|
|
||||||
19. Perl scripting
|
|
||||||
|
|
||||||
( not written yet: )
|
( not written yet: )
|
||||||
|
12. Commands
|
||||||
13. Themes
|
13. Themes
|
||||||
|
14. Last log (currently text version only)
|
||||||
|
15. Nick and word completion
|
||||||
|
16. Recode
|
||||||
17. Windowing system (text version)
|
17. Windowing system (text version)
|
||||||
|
18. Keyboard (text version)
|
||||||
|
19. Perl scripting
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -141,7 +141,44 @@
|
||||||
--hostname -h Specify what host name to use
|
--hostname -h Specify what host name to use
|
||||||
|
|
||||||
|
|
||||||
2. Message levels <https://irssi.org/documentation/help/levels/>
|
2. Message levels
|
||||||
|
|
||||||
|
|
||||||
|
Message levels (or in short, levels) are used almost everywhere.
|
||||||
|
They describe what kind of messages we're dealing with. Here's a
|
||||||
|
list of them all:
|
||||||
|
|
||||||
|
CRAP - Can be almost anything
|
||||||
|
MSGS - Private messages
|
||||||
|
PUBLIC - Public messages in channel
|
||||||
|
NOTICES - Notices
|
||||||
|
SNOTES - Server notices
|
||||||
|
CTCPS - CTCP messages
|
||||||
|
ACTIONS - Actions (/me) - usually ORed with PUBLIC or MSGS
|
||||||
|
JOINS - Someone joins a channel
|
||||||
|
PARTS - Someone parts a channel
|
||||||
|
QUITS - Someone quits IRC
|
||||||
|
KICKS - Someone gets kicked from channel
|
||||||
|
MODES - Channel mode is changed
|
||||||
|
TOPICS - Channel topic is changed
|
||||||
|
WALLOPS - Wallop is received
|
||||||
|
INVITES - Invite is received
|
||||||
|
NICKS - Someone changes nick
|
||||||
|
DCC - DCC related messages
|
||||||
|
DCCMSGS - DCC chat messages
|
||||||
|
CLIENTNOTICES - Irssi's notices
|
||||||
|
CLIENTERRORS - Irssi's error messages
|
||||||
|
CLIENTCRAP - Some other messages from Irssi
|
||||||
|
|
||||||
|
And a few special ones that could be included with the
|
||||||
|
levels above:
|
||||||
|
|
||||||
|
HILIGHT - Text is highlighted
|
||||||
|
NOHILIGHT - Don't check highlighting for this message
|
||||||
|
NO_ACT - Don't trigger channel activity when printing
|
||||||
|
this message
|
||||||
|
NEVER - Never ignore or log this message
|
||||||
|
|
||||||
|
|
||||||
3. Flood protection
|
3. Flood protection
|
||||||
|
|
||||||
|
|
@ -215,12 +252,47 @@
|
||||||
Currently only messages, notices and ctcps are checked for
|
Currently only messages, notices and ctcps are checked for
|
||||||
flooding.
|
flooding.
|
||||||
|
|
||||||
/SET flood_max_msgs <count>, default is 4
|
/SET flood_max_msgs = <count>, default is 4
|
||||||
/SET flood_timecheck <seconds>, default is 5 seconds
|
/SET flood_timecheck = <seconds>, default is 5 seconds
|
||||||
If either of these is 0, the flood checking is disabled.
|
If either of these is 0, the flood checking is disabled.
|
||||||
|
|
||||||
|
|
||||||
4. Configuration <https://irssi.org/documentation/manual/configuration/>
|
4. Configuration
|
||||||
|
|
||||||
|
4.1 Configuration files
|
||||||
|
|
||||||
|
The configuration is saved to ~/.irssi/config file. You can edit
|
||||||
|
it with text editor if you want, you can also add comments to it
|
||||||
|
and they stay there even if /SAVE is used. Comments are the lines
|
||||||
|
starting with # character. Any errors in config file are displayed
|
||||||
|
at startup.
|
||||||
|
|
||||||
|
Irssi uses it's own config library for handling the config file.
|
||||||
|
The format is pretty much the same as in libPropList and should be
|
||||||
|
easily understandable.
|
||||||
|
|
||||||
|
You can reload the config file on the fly with /RELOAD command, you
|
||||||
|
can also read a different config file with /RELOAD <filename>.
|
||||||
|
|
||||||
|
If you change any settings, they aren't saved to file until you use
|
||||||
|
/SAVE. You can save the config file to different place with
|
||||||
|
/SAVE <filename>.
|
||||||
|
|
||||||
|
4.2 Settings
|
||||||
|
|
||||||
|
You can view or change the settings with /SET command.
|
||||||
|
|
||||||
|
/SET without any arguments displays all the settings.
|
||||||
|
/SET <key> displays settings which key (partly) matches <key>
|
||||||
|
/SET <key> <value> sets <key> to <value>
|
||||||
|
|
||||||
|
Boolean settings accepts only values ON, OFF and TOGGLE. You can
|
||||||
|
also use /TOGGLE command to change them, so /TOGGLE <key> behaves
|
||||||
|
like /SET <key> TOGGLE. /TOGGLE also accepts arguments ON and OFF
|
||||||
|
when /TOGGLE behaves exactly like /SET.
|
||||||
|
|
||||||
|
Remember that changes are not saved until you use /SAVE!
|
||||||
|
|
||||||
|
|
||||||
5. Servers
|
5. Servers
|
||||||
|
|
||||||
|
|
@ -277,7 +349,7 @@
|
||||||
after connecting to the network. This is useful for automatically
|
after connecting to the network. This is useful for automatically
|
||||||
identifying yourself to NickServ, for example
|
identifying yourself to NickServ, for example
|
||||||
|
|
||||||
/NETWORK ADD -autosendcmd "/^msg NickServ identify secret" liberachat
|
/NETWORK ADD -autosendcmd "/^msg NickServ identify secret" freenode
|
||||||
|
|
||||||
/NETWORK REMOVE <name>
|
/NETWORK REMOVE <name>
|
||||||
|
|
||||||
|
|
@ -295,11 +367,11 @@
|
||||||
you setup the server using /SERVER ADD (see next section). If the
|
you setup the server using /SERVER ADD (see next section). If the
|
||||||
settings can't be found there either, Irssi will use the defaults:
|
settings can't be found there either, Irssi will use the defaults:
|
||||||
|
|
||||||
/SET default_nick <nick>, defaults to user_name
|
/SET default_nick = <nick>, defaults to user_name
|
||||||
/SET alternate_nick <nick>, defaults to <default_nick>_
|
/SET alternate_nick = <nick>, defaults to <default_nick>_
|
||||||
/SET user_name <user>, defaults to your login name
|
/SET user_name = <user>, defaults to your login name
|
||||||
/SET real_name <name>, taken from /etc/passwd by default
|
/SET real_name = <name>, taken from /etc/passwd by default
|
||||||
/SET hostname <host>, what host name to use when connecting
|
/SET hostname = <host>, what host name to use when connecting
|
||||||
/SET skip_motd ON|OFF|TOGGLE - Don't show server's MOTD
|
/SET skip_motd ON|OFF|TOGGLE - Don't show server's MOTD
|
||||||
|
|
||||||
NOTE: /CONNECT is also a command for IRC operators to connect IRC
|
NOTE: /CONNECT is also a command for IRC operators to connect IRC
|
||||||
|
|
@ -322,26 +394,10 @@
|
||||||
|
|
||||||
5.4 Server settings
|
5.4 Server settings
|
||||||
|
|
||||||
/SERVER ADD [-tls] [-tls_cert <cert>] [-tls_pkey <pkey>]
|
/SERVER ADD [-auto | -noauto] [-network <network>] [-host <hostname>]
|
||||||
[-tls_pass <password>] [-tls_verify] [-tls_cafile <cafile>]
|
|
||||||
[-tls_capath <capath>] [-tls_ciphers <list>]
|
|
||||||
[-tls_pinned_cert <fingerprint>] [-tls_pinned_pubkey <fingerprint>]
|
|
||||||
[-auto | -noauto] [-network <network>] [-host <hostname>]
|
|
||||||
[-cmdspeed <ms>] [-cmdmax <count>] [-port <port>]
|
[-cmdspeed <ms>] [-cmdmax <count>] [-port <port>]
|
||||||
<address> [<port> [<password>]]
|
<address> [<port> [<password>]]
|
||||||
|
|
||||||
-tls: Connects using TLS encryption.
|
|
||||||
-tls_cert: The TLS client certificate file.
|
|
||||||
-tls_pkey: The TLS client private key, if not included in the
|
|
||||||
certificate file.
|
|
||||||
-tls_pass: The password for the TLS client private key or
|
|
||||||
certificate.
|
|
||||||
-tls_verify: Verifies the TLS certificate of the server.
|
|
||||||
-tls_cafile: The file with the list of CA certificates.
|
|
||||||
-tls_capath: The directory which contains the CA certificates.
|
|
||||||
-tls_ciphers: TLS cipher suite preference lists.
|
|
||||||
-tls_pinned_cert: Pinned x509 certificate fingerprint.
|
|
||||||
-tls_pinned_pubkey: Pinned public key fingerprint.
|
|
||||||
-auto: Automatically connect to server at startup
|
-auto: Automatically connect to server at startup
|
||||||
-noauto: Don't connect to server at startup (default)
|
-noauto: Don't connect to server at startup (default)
|
||||||
-network: Specify what IRC network this server belongs to
|
-network: Specify what IRC network this server belongs to
|
||||||
|
|
@ -373,6 +429,9 @@
|
||||||
After connected to server, Irssi can automatically change your user
|
After connected to server, Irssi can automatically change your user
|
||||||
mode. You can set it with /SET usermode <mode>, default is +i.
|
mode. You can set it with /SET usermode <mode>, default is +i.
|
||||||
|
|
||||||
|
/SET resolve_prefer_ipv6 - If ON, prefer IPv6 for hosts that
|
||||||
|
have both v4 and v6 addresses.
|
||||||
|
|
||||||
5.5 Automatic reconnecting
|
5.5 Automatic reconnecting
|
||||||
|
|
||||||
If you get disconnected from server, Irssi will try to reconnect
|
If you get disconnected from server, Irssi will try to reconnect
|
||||||
|
|
@ -717,7 +776,13 @@
|
||||||
/SET massjoin_max_joins <count>.
|
/SET massjoin_max_joins <count>.
|
||||||
|
|
||||||
|
|
||||||
7. IRC commands and features <https://irssi.org/documentation/help/>
|
7. IRC commands and features (FIXME)
|
||||||
|
|
||||||
|
7.x Basic commands
|
||||||
|
|
||||||
|
7.x IRC operator commands
|
||||||
|
|
||||||
|
7.x Away features
|
||||||
|
|
||||||
8. Notify list
|
8. Notify list
|
||||||
|
|
||||||
|
|
@ -765,9 +830,9 @@
|
||||||
|
|
||||||
/HILIGHT without any arguments displays list of the hilights.
|
/HILIGHT without any arguments displays list of the hilights.
|
||||||
|
|
||||||
If <color> is a number, Irssi will treat it as a MIRC color
|
If <color> is a
|
||||||
code. You can also use bolds (^B), underlines (^_) etc. as
|
number, Irssi will treat it as a MIRC color code. You can also use
|
||||||
<color> if you like.
|
bolds (^B), underlines (^_) etc. as <color> if you like.
|
||||||
|
|
||||||
|
|
||||||
10. Ignoring
|
10. Ignoring
|
||||||
|
|
@ -912,24 +977,29 @@
|
||||||
|
|
||||||
You can disable this feature by setting awaylog_level to NONE.
|
You can disable this feature by setting awaylog_level to NONE.
|
||||||
|
|
||||||
12. Commands <https://irssi.org/documentation/manual/commands/>
|
12. Commands
|
||||||
|
|
||||||
13. Themes
|
Any char in the `cmdchars' setting can begin a command. The
|
||||||
|
syntax for a command is the following:
|
||||||
|
|
||||||
14. Last log <https://irssi.org/documentation/help/lastlog/>
|
<CMDCHAR>[<CMDCHAR>][^]<DATA>
|
||||||
|
|
||||||
15. Word completion <https://irssi.org/documentation/help/completion/>
|
If <CMDCHAR> is repeated two times, alias expansion is
|
||||||
|
disabled, enabled otherwise. If `^' is present, command output
|
||||||
|
is disabled. If <DATA> begins with a space, command lookup is
|
||||||
|
inhibited and the data is sent to the active window item
|
||||||
|
(useful to send a line that begins with <CMDCHAR>).
|
||||||
|
|
||||||
16. Recode
|
16. Recode
|
||||||
|
|
||||||
Irssi supports selective encoding of incoming/outgoing messages
|
irssi supports selective encoding of incoming/outgoing messages
|
||||||
through the recode system. All incoming/outgoing messages can be
|
through the recode system. All incoming/outgoing messages can be
|
||||||
optionally converted to/from the charset specified by the
|
optionally converted to/from the charset specified by the
|
||||||
`term_charset' variable (which defaults to the locale encoding and
|
`term_charset' variable (which defaults to the locale encoding and
|
||||||
should _not_ be changed in most cases), by setting the `recode'
|
should _not_ be changed in most cases), by setting the `recode'
|
||||||
variable to 'ON'.
|
variable to 'ON'.
|
||||||
Since there is no way in IRC to know the encoding associated to a
|
Since there is no way in IRC to know the encoding associated to a
|
||||||
message, for incoming messages Irssi uses the following algorithm:
|
message, for incoming messages irssi uses the following algorithm:
|
||||||
|
|
||||||
if `recode_autodetect_utf8' is 'ON' and the message is valid UTF-8 the
|
if `recode_autodetect_utf8' is 'ON' and the message is valid UTF-8 the
|
||||||
encoding is assumed to be UTF-8.
|
encoding is assumed to be UTF-8.
|
||||||
|
|
@ -946,9 +1016,5 @@
|
||||||
iconv specific extension to peform transliteration (locale dependent)
|
iconv specific extension to peform transliteration (locale dependent)
|
||||||
when a character is not representable in the destination encoding.
|
when a character is not representable in the destination encoding.
|
||||||
|
|
||||||
18. Key bindings <https://irssi.org/documentation/help/bind_-list/>
|
|
||||||
|
|
||||||
19. Scripting <https://irssi.org/documentation/scripting/>
|
|
||||||
|
|
||||||
.. no, the docs end here, I got bored of writing these after a few days and
|
.. no, the docs end here, I got bored of writing these after a few days and
|
||||||
haven't touched these since then.
|
haven't touched these since then.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
;; manual workaround for meson bug https://github.com/mesonbuild/meson/issues/11165
|
|
||||||
;; fixes compilation with meson on apple macos
|
|
||||||
;; usage: meson --native-file ./docs/meson-macos-ar.txt ...
|
|
||||||
|
|
||||||
[binaries]
|
|
||||||
ar = ['/bin/sh', '-c', 'ar=${AR:-ar}; ranlib=${RANLIB:-ranlib -c -}; case "x$1" in xcsr*) $ar "$@" && $ranlib "$2" || exit $?; ;; *) exec $ar "$@"; ;; esac;', 'ar']
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
install_data(
|
|
||||||
files(
|
|
||||||
'capsicum.txt',
|
|
||||||
'design.html',
|
|
||||||
'design.txt',
|
|
||||||
'faq.html',
|
|
||||||
'faq.txt',
|
|
||||||
'formats.txt',
|
|
||||||
'manual.txt',
|
|
||||||
'perl.txt',
|
|
||||||
'signals.txt',
|
|
||||||
'special_vars.txt',
|
|
||||||
'startup-HOWTO.html',
|
|
||||||
'startup-HOWTO.txt',
|
|
||||||
),
|
|
||||||
install_dir : docdir,
|
|
||||||
)
|
|
||||||
|
|
||||||
subdir('help')
|
|
||||||
|
|
@ -10,7 +10,7 @@ INSTALL file for information about perl problems.
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Scripts are run with /SCRIPT LOAD command, or the default /RUN alias.
|
Scripts are run with /SCRIPT LOAD command, or the default /RUN alias.
|
||||||
"/SCRIPT" shows list of running scripts, and /SCRIPT UNLOAD can unload
|
"/SCRIPT" shows list of running script, and /SCRIPT UNLOAD can unload
|
||||||
scripts.
|
scripts.
|
||||||
|
|
||||||
Scripts should be placed to ~/.irssi/scripts/ or
|
Scripts should be placed to ~/.irssi/scripts/ or
|
||||||
|
|
@ -178,9 +178,6 @@ listed after the generic ones.
|
||||||
Window active_win() - return active window
|
Window active_win() - return active window
|
||||||
Server active_server() - return server in active window
|
Server active_server() - return server in active window
|
||||||
|
|
||||||
get_irssi_dir() - returns the absolute path to the user configuration
|
|
||||||
directory - either the value passed to --home at startup, or ~/.irssi
|
|
||||||
|
|
||||||
windows() - return list of all windows
|
windows() - return list of all windows
|
||||||
servers() - return list of all servers
|
servers() - return list of all servers
|
||||||
reconnects() - return list of all server reconnections
|
reconnects() - return list of all server reconnections
|
||||||
|
|
@ -205,12 +202,6 @@ Window::command(cmd)
|
||||||
Windowitem::command(cmd)
|
Windowitem::command(cmd)
|
||||||
Send a command `cmd' (in current channel). The '/' char isn't needed.
|
Send a command `cmd' (in current channel). The '/' char isn't needed.
|
||||||
|
|
||||||
version() - return client release date and time (format YYYYMMDD.hhmm)
|
|
||||||
|
|
||||||
parse_special(cmd, data="", flags=0)
|
|
||||||
Server::parse_special(cmd, data="", flags=0)
|
|
||||||
Windowitem::parse_special(cmd, data="", flags=0)
|
|
||||||
evaluate a string with special vars
|
|
||||||
|
|
||||||
*** Themes
|
*** Themes
|
||||||
|
|
||||||
|
|
@ -522,8 +513,6 @@ Connect->{}
|
||||||
address - Address where we connected (irc.blah.org)
|
address - Address where we connected (irc.blah.org)
|
||||||
port - Port where we connected
|
port - Port where we connected
|
||||||
chatnet - Chat network
|
chatnet - Chat network
|
||||||
chosen_family - IP family chosen to connect to
|
|
||||||
ipaddr - IP address connected to
|
|
||||||
|
|
||||||
password - Password we used in connection.
|
password - Password we used in connection.
|
||||||
wanted_nick - Nick which we would prefer to use
|
wanted_nick - Nick which we would prefer to use
|
||||||
|
|
@ -807,7 +796,7 @@ Query->{}
|
||||||
address - Host address of the queries nick
|
address - Host address of the queries nick
|
||||||
server_tag - Server tag used for this nick (doesn't get erased if
|
server_tag - Server tag used for this nick (doesn't get erased if
|
||||||
server gets disconnected)
|
server gets disconnected)
|
||||||
unwanted - 1 if the other side closed or some error occurred (DCC chats)
|
unwanted - 1 if the other side closed or some error occured (DCC chats)
|
||||||
|
|
||||||
Query
|
Query
|
||||||
query_create(chat_type, server_tag, nick, automatic)
|
query_create(chat_type, server_tag, nick, automatic)
|
||||||
|
|
@ -1134,7 +1123,7 @@ Netsplit->{}
|
||||||
|
|
||||||
Netsplitserver->{}
|
Netsplitserver->{}
|
||||||
server - The server nick was in
|
server - The server nick was in
|
||||||
destserver - The other server where split occurred.
|
destserver - The other server where split occured.
|
||||||
count - Number of splits in server
|
count - Number of splits in server
|
||||||
|
|
||||||
Netsplitchannel->{}
|
Netsplitchannel->{}
|
||||||
|
|
@ -1196,16 +1185,3 @@ Client->{}
|
||||||
connected - whether the client is connected and ready
|
connected - whether the client is connected and ready
|
||||||
want_ctcp - whether the client wants to receive CTCPs
|
want_ctcp - whether the client wants to receive CTCPs
|
||||||
ircnet - network tag of the network we proxy
|
ircnet - network tag of the network we proxy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Bugs and Limitations
|
|
||||||
--------------------
|
|
||||||
* Calling die in 'script error' handler causes segfault (#101)
|
|
||||||
* Calling "script unload" from your own script causes segfault
|
|
||||||
* Storing and later using any Irssi object may result in use-after-free related crash
|
|
||||||
- Workaround: always acquire fresh objects
|
|
||||||
* Calling $dcc->close from the "dcc created" signal will cause unstable behaviour and crashes (#386)
|
|
||||||
- Workaround: use "dcc request" signal instead AND call
|
|
||||||
&Irssi::signal_continue(@_); as the first thing
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,6 @@ In irssi, say:
|
||||||
|
|
||||||
/LOAD proxy
|
/LOAD proxy
|
||||||
|
|
||||||
If you want the proxy to be loaded automatically at startup, add the
|
|
||||||
load command to ~/.irssi/startup:
|
|
||||||
|
|
||||||
echo "load proxy" >> ~/.irssi/startup
|
|
||||||
|
|
||||||
You really should set some password for the proxy with:
|
You really should set some password for the proxy with:
|
||||||
|
|
||||||
/SET irssiproxy_password secret
|
/SET irssiproxy_password secret
|
||||||
|
|
@ -24,37 +19,8 @@ You really should set some password for the proxy with:
|
||||||
Then you'll need to configure the ports/ircnets the proxy listens in,
|
Then you'll need to configure the ports/ircnets the proxy listens in,
|
||||||
something like:
|
something like:
|
||||||
|
|
||||||
/SET irssiproxy_ports IRCnet=2777 EFNet=2778 liberachat=2779
|
/SET irssiproxy_ports ircnet=2777 efnet=2778 freenode=2779
|
||||||
|
|
||||||
There we have 3 different irc networks answering in 3 ports. Note that
|
There we have 3 different irc networks answering in 3 ports. Note that
|
||||||
you'll have to make the correct /IRCNET ADD and /SERVER ADD commands to
|
you'll have to make the correct /IRCNET ADD and /SERVER ADD commands to
|
||||||
make it work properly.
|
make it work properly.
|
||||||
|
|
||||||
The special network name "?" allows the client to select the network
|
|
||||||
dynamically on connect:
|
|
||||||
|
|
||||||
/SET irssiproxy_ports ?=2777
|
|
||||||
|
|
||||||
Now the client can send <network>:<password> as the server password, e.g.
|
|
||||||
|
|
||||||
/CONNECT ... 2777 efnet:secret
|
|
||||||
|
|
||||||
to connect to efnet. If there is no irssiproxy_password set, you can
|
|
||||||
omit the ":" and just send the network name as the password.
|
|
||||||
|
|
||||||
By default, the proxy binds to all available interfaces. To make it
|
|
||||||
only listen on (for example) the loopback address:
|
|
||||||
|
|
||||||
/SET irssiproxy_bind 127.0.0.1
|
|
||||||
|
|
||||||
Note that bind address changes won't take effect until the proxy is
|
|
||||||
disabled and then reenabled.
|
|
||||||
|
|
||||||
Once everything is set up, you can enable / disable the proxy:
|
|
||||||
|
|
||||||
/TOGGLE irssiproxy
|
|
||||||
|
|
||||||
When the proxy is configured and running, the following command will
|
|
||||||
show all the currently connected clients:
|
|
||||||
|
|
||||||
/IRSSIPROXY status
|
|
||||||
|
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
<base href='https://irssi.org/documentation/qna/multi/'>
|
|
||||||
|
|
||||||
<h1>Right-aligned nicks</h1>
|
|
||||||
<p>To create a “tabular” effect of the chat view, or to align nick names in a column, you can use Irssi’s theme/format system. The basic commands are the following:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>/format own_msg {ownmsgnick $2 {ownnick $[-9]0}}$1
|
|
||||||
/format own_msg_channel {ownmsgnick $3 {ownnick $[-9]0}{msgchannel $1}}$2
|
|
||||||
/format pubmsg_me {pubmsgmenick $2 {menick $[-9]0}}$1
|
|
||||||
/format pubmsg_me_channel {pubmsgmenick $3 {menick $[-9]0}{msgchannel $1}}$2
|
|
||||||
/format pubmsg_hilight {pubmsghinick $0 $3 $[-9]1}$2
|
|
||||||
/format pubmsg_hilight_channel {pubmsghinick $0 $4 $[-9]1{msgchannel $2}}$3
|
|
||||||
/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1
|
|
||||||
/format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>These are copied from the default theme’s default values, which are responsible for displaying your own messages sent to a channel (<code class="docutils literal notranslate">own_msg</code>) as well as received messages (<code class="docutils literal notranslate">pubmsg</code>) and the two basic highlightings (<code class="docutils literal notranslate">me</code> and <code class="docutils literal notranslate">hilight</code>).</p>
|
|
||||||
<p>Then, in front of the argument that contains the nick name (<code class="docutils literal notranslate">$0</code> in most cases, but <code class="docutils literal notranslate">$1</code> in <code class="docutils literal notranslate">pubmsg_hilight</code>), an alignment modifier (see <a class="reference internal" href="../../settings/#a-b">Appendix B: Special Variables and Expandos</a>) has been added: <code class="docutils literal notranslate">[-9]</code>. This means that the nicks will be right-aligned and truncated to 9 characters.</p>
|
|
||||||
<p><strong>Note</strong>: Modifiers <em>only</em> work in the <code class="docutils literal notranslate">/format</code> section of a theme (this may change in the future)</p>
|
|
||||||
<p>There are also some scripts that try to do the alignment for you, like: <code class="docutils literal notranslate">nm</code>, <code class="docutils literal notranslate">nm2</code>.</p>
|
|
||||||
<p>There are also some nice themes that extend the alignment to further formats, like: <a class="reference external" href="https://github.com/ronilaukkarinen/weed">weed</a>.</p>
|
|
||||||
<h1>Automatic log-in to NickServ</h1>
|
|
||||||
<p>Please check here => <a class="reference internal" href="../../manual/automation/#automatic-log-in-to-nickserv">Automatic log-in to NickServ</a></p>
|
|
||||||
<h1>CertFP Log-in</h1>
|
|
||||||
<p>CertFP, short for Certificate Finger Print, is another method to log you in to NickServ. Instead of a password, it uses a <a class="reference external" href="https://en.wikipedia.org/wiki/Client_certificate">Client Certificate</a>.</p>
|
|
||||||
<p>In order to use it, you</p>
|
|
||||||
<ul class="simple">
|
|
||||||
<li><p>first need a certificate,</p></li>
|
|
||||||
<li><p>then configure Irssi to use this certificate,</p></li>
|
|
||||||
<li><p>and finally register the certificate with NickServ.</p></li>
|
|
||||||
</ul>
|
|
||||||
<p>Irssi does not have built-in certificate management commands, so you need to use an external tool like <code class="docutils literal notranslate">openssl</code> to create the certificate.</p>
|
|
||||||
<p>A step-by-step guide for the Libera Chat network can be found here => <a class="reference external" href="https://github.com/shabble/irssi-docs/wiki/liberachat_certfp">https://github.com/shabble/irssi-docs/wiki/liberachat_certfp</a></p>
|
|
||||||
<p>It is necessary that the certificate be available as a file; PKCS#11 is not supported.</p>
|
|
||||||
<h1>Tor (The Onion Router)</h1>
|
|
||||||
<p><a class="reference external" href="https://www.torproject.org/">Tor</a> is an overlay network for anonymous communication. It operates a local <a class="reference external" href="https://en.wikipedia.org/wiki/SOCKS">SOCKS</a> proxy for applications to use.</p>
|
|
||||||
<p>Unfortunately, Irssi currently does not support SOCKS proxies natively. As a workaround, you can install the <a class="reference external" href="https://github.com/rofl0r/proxychains-ng">ProxyChains-NG</a> program (note, it must be the NG version).</p>
|
|
||||||
<p>Afterwards, you can launch Irssi like this:</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>proxychains4 irssi
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>Now your connections will go through the Proxy configured in ProxyChains-NG (Tor by default).</p>
|
|
||||||
<p>IRC networks may have different requirements to be able to connect via Tor. For the Libera Chat network, you will first need to set up <a class="reference internal" href="../certfp/">CertFP Log-in</a> using a clearnet connection, and then connect to their <a class="reference external" href="https://libera.chat/guides/connect#accessing-liberachat-via-tor">Onion Service</a> <code class="docutils literal notranslate">palladium.libera.chat</code>. More detailed instructions can be found here => <a class="reference external" href="https://github.com/shabble/irssi-docs/wiki/liberator">https://github.com/shabble/irssi-docs/wiki/liberator</a></p>
|
|
||||||
<h1>The following signatures were invalid: EXPKEYSIG</h1>
|
|
||||||
<p>If you see such a message</p>
|
|
||||||
<div class="highlight-default notranslate"><div><pre>Err:4 home:/ailin_nemui:/irssi-an InRelease
|
|
||||||
The following signatures were invalid: EXPKEYSIG EDB7AED941EEDB57 home:ailin_nemui OBS Project <home:ailin_nemui@build.opensuse.org>
|
|
||||||
</pre></div>
|
|
||||||
</div>
|
|
||||||
<p>this means that the automatic signing key used by the Open Build Service expired. OBS renews the key periodically, but Debian does not support this.</p>
|
|
||||||
<section id="fix">
|
|
||||||
<h2>Fix</h2>
|
|
||||||
<p>Download the key again, following the regular OBS instructions. If it still does not work, verify if there is a second expired copy of the key in <code class="docutils literal notranslate">/etc/apt/trusted.gpg.d</code> or in <code class="docutils literal notranslate">apt-key list</code> and remove it as well.</p>
|
|
||||||
</section>
|
|
||||||
111
docs/qna.txt
111
docs/qna.txt
|
|
@ -1,111 +0,0 @@
|
||||||
# Right-aligned nicks #
|
|
||||||
|
|
||||||
To create a “tabular” effect of the chat view, or to align nick names in a
|
|
||||||
column, you can use Irssi’s theme/format system. The basic commands are the
|
|
||||||
following:
|
|
||||||
|
|
||||||
/format own_msg {ownmsgnick $2 {ownnick $[-9]0}}$1
|
|
||||||
/format own_msg_channel {ownmsgnick $3 {ownnick $[-9]0}{msgchannel $1}}$2
|
|
||||||
/format pubmsg_me {pubmsgmenick $2 {menick $[-9]0}}$1
|
|
||||||
/format pubmsg_me_channel {pubmsgmenick $3 {menick $[-9]0}{msgchannel $1}}$2
|
|
||||||
/format pubmsg_hilight {pubmsghinick $0 $3 $[-9]1}$2
|
|
||||||
/format pubmsg_hilight_channel {pubmsghinick $0 $4 $[-9]1{msgchannel $2}}$3
|
|
||||||
/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1
|
|
||||||
/format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2
|
|
||||||
|
|
||||||
These are copied from the default theme’s default values, which are responsible
|
|
||||||
for displaying your own messages sent to a channel (own_msg) as well as
|
|
||||||
received messages (pubmsg) and the two basic highlightings (me and hilight).
|
|
||||||
|
|
||||||
Then, in front of the argument that contains the nick name ($0 in most cases,
|
|
||||||
but $1 in pubmsg_hilight), an alignment modifier (see [1]Appendix B: Special
|
|
||||||
Variables and Expandos) has been added: [-9]. This means that the nicks will be
|
|
||||||
right-aligned and truncated to 9 characters.
|
|
||||||
|
|
||||||
Note: Modifiers only work in the /format section of a theme (this may change in
|
|
||||||
the future)
|
|
||||||
|
|
||||||
There are also some scripts that try to do the alignment for you, like: nm,
|
|
||||||
nm2.
|
|
||||||
|
|
||||||
There are also some nice themes that extend the alignment to further formats,
|
|
||||||
like: [2]weed.
|
|
||||||
|
|
||||||
# Automatic log-in to NickServ #
|
|
||||||
|
|
||||||
Please check here => [3]Automatic log-in to NickServ
|
|
||||||
|
|
||||||
# CertFP Log-in #
|
|
||||||
|
|
||||||
CertFP, short for Certificate Finger Print, is another method to log you in to
|
|
||||||
NickServ. Instead of a password, it uses a [4]Client Certificate.
|
|
||||||
|
|
||||||
In order to use it, you
|
|
||||||
|
|
||||||
• first need a certificate,
|
|
||||||
|
|
||||||
• then configure Irssi to use this certificate,
|
|
||||||
|
|
||||||
• and finally register the certificate with NickServ.
|
|
||||||
|
|
||||||
Irssi does not have built-in certificate management commands, so you need to
|
|
||||||
use an external tool like openssl to create the certificate.
|
|
||||||
|
|
||||||
A step-by-step guide for the Libera Chat network can be found here => [5]https:
|
|
||||||
//github.com/shabble/irssi-docs/wiki/liberachat_certfp
|
|
||||||
|
|
||||||
It is necessary that the certificate be available as a file; PKCS#11 is not
|
|
||||||
supported.
|
|
||||||
|
|
||||||
# Tor (The Onion Router) #
|
|
||||||
|
|
||||||
[6]Tor is an overlay network for anonymous communication. It operates a local
|
|
||||||
[7]SOCKS proxy for applications to use.
|
|
||||||
|
|
||||||
Unfortunately, Irssi currently does not support SOCKS proxies natively. As a
|
|
||||||
workaround, you can install the [8]ProxyChains-NG program (note, it must be the
|
|
||||||
NG version).
|
|
||||||
|
|
||||||
Afterwards, you can launch Irssi like this:
|
|
||||||
|
|
||||||
proxychains4 irssi
|
|
||||||
|
|
||||||
Now your connections will go through the Proxy configured in ProxyChains-NG
|
|
||||||
(Tor by default).
|
|
||||||
|
|
||||||
IRC networks may have different requirements to be able to connect via Tor. For
|
|
||||||
the Libera Chat network, you will first need to set up [9]CertFP Log-in using a
|
|
||||||
clearnet connection, and then connect to their [10]Onion Service
|
|
||||||
palladium.libera.chat. More detailed instructions can be found here => [11]
|
|
||||||
https://github.com/shabble/irssi-docs/wiki/liberator
|
|
||||||
|
|
||||||
# The following signatures were invalid: EXPKEYSIG #
|
|
||||||
|
|
||||||
If you see such a message
|
|
||||||
|
|
||||||
Err:4 home:/ailin_nemui:/irssi-an InRelease
|
|
||||||
The following signatures were invalid: EXPKEYSIG EDB7AED941EEDB57 home:ailin_nemui OBS Project <home:ailin_nemui@build.opensuse.org>
|
|
||||||
|
|
||||||
this means that the automatic signing key used by the Open Build Service
|
|
||||||
expired. OBS renews the key periodically, but Debian does not support this.
|
|
||||||
|
|
||||||
## Fix ##
|
|
||||||
|
|
||||||
Download the key again, following the regular OBS instructions. If it still
|
|
||||||
does not work, verify if there is a second expired copy of the key in /etc/apt/
|
|
||||||
trusted.gpg.d or in apt-key list and remove it as well.
|
|
||||||
|
|
||||||
|
|
||||||
References:
|
|
||||||
|
|
||||||
[1] https://irssi.org/documentation/settings/#a-b
|
|
||||||
[2] https://github.com/ronilaukkarinen/weed
|
|
||||||
[3] https://irssi.org/documentation/manual/automation/#automatic-log-in-to-nickserv
|
|
||||||
[4] https://en.wikipedia.org/wiki/Client_certificate
|
|
||||||
[5] https://github.com/shabble/irssi-docs/wiki/liberachat_certfp
|
|
||||||
[6] https://www.torproject.org/
|
|
||||||
[7] https://en.wikipedia.org/wiki/SOCKS
|
|
||||||
[8] https://github.com/rofl0r/proxychains-ng
|
|
||||||
[9] https://irssi.org/documentation/qna/certfp/
|
|
||||||
[10] https://libera.chat/guides/connect#accessing-liberachat-via-tor
|
|
||||||
[11] https://github.com/shabble/irssi-docs/wiki/liberator
|
|
||||||
|
|
@ -56,14 +56,15 @@ modules.c:
|
||||||
"module error", int error, char *text, char *rootmodule, char *submodule
|
"module error", int error, char *text, char *rootmodule, char *submodule
|
||||||
|
|
||||||
network-openssl.c:
|
network-openssl.c:
|
||||||
"tls handshake finished", SERVER_REC, TLS_REC
|
"tlsa available", SERVER_REC
|
||||||
|
"tlsa verification success", SERVER_REC
|
||||||
|
"tlsa verification failed", SERVER_REC
|
||||||
|
|
||||||
nicklist.c:
|
nicklist.c:
|
||||||
"nicklist new", CHANNEL_REC, NICK_REC
|
"nicklist new", CHANNEL_REC, NICK_REC
|
||||||
"nicklist remove", CHANNEL_REC, NICK_REC
|
"nicklist remove", CHANNEL_REC, NICK_REC
|
||||||
"nicklist changed", CHANNEL_REC, NICK_REC, char *old_nick
|
"nicklist changed", CHANNEL_REC, NICK_REC, char *old_nick
|
||||||
"nicklist host changed", CHANNEL_REC, NICK_REC
|
"nicklist host changed", CHANNEL_REC, NICK_REC
|
||||||
"nicklist account changed", CHANNEL_REC, NICK_REC, char *account
|
|
||||||
"nicklist gone changed", CHANNEL_REC, NICK_REC
|
"nicklist gone changed", CHANNEL_REC, NICK_REC
|
||||||
"nicklist serverop changed", CHANNEL_REC, NICK_REC
|
"nicklist serverop changed", CHANNEL_REC, NICK_REC
|
||||||
|
|
||||||
|
|
@ -130,28 +131,14 @@ irc-nicklist.c:
|
||||||
irc-servers.c:
|
irc-servers.c:
|
||||||
"event connected", SERVER_REC
|
"event connected", SERVER_REC
|
||||||
|
|
||||||
irc-cap.c
|
|
||||||
"server cap ack "<cmd>, SERVER_REC
|
|
||||||
"server cap nak "<cmd>, SERVER_REC
|
|
||||||
"server cap new "<cmd>, SERVER_REC
|
|
||||||
"server cap delete "<cmd>, SERVER_REC
|
|
||||||
"server cap end", SERVER_REC
|
|
||||||
"server cap req", SERVER_REC, char *caps
|
|
||||||
|
|
||||||
sasl.c
|
|
||||||
"server sasl failure", SERVER_REC, char *reason
|
|
||||||
"server sasl success", SERVER_REC
|
|
||||||
|
|
||||||
irc.c:
|
irc.c:
|
||||||
|
|
||||||
"server event", SERVER_REC, char *data, char *sender_nick, char *sender_address
|
"server event", SERVER_REC, char *data, char *sender_nick, char *sender_address
|
||||||
"server event tags", SERVER_REC, char *data, char *sender_nick, char *sender_address, char *tags
|
|
||||||
"event "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
|
"event "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
|
||||||
"default event", SERVER_REC, char *data, char *sender_nick, char *sender_address
|
"default event", SERVER_REC, char *data, char *sender_nick, char *sender_address
|
||||||
"whois default event", SERVER_REC, char *args, char *sender_nick, char *sender_address
|
"whois default event", SERVER_REC, char *args, char *sender_nick, char *sender_address
|
||||||
|
|
||||||
"server incoming", SERVER_REC, char *data
|
"server incoming", SERVER_REC, char *data
|
||||||
"server outgoing modify", SERVER_REC, GString *data, int crlf
|
|
||||||
|
|
||||||
(for perl parser..)
|
(for perl parser..)
|
||||||
"redir "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
|
"redir "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
|
||||||
|
|
@ -233,7 +220,6 @@ notifylist.c:
|
||||||
|
|
||||||
proxy/listen.c:
|
proxy/listen.c:
|
||||||
|
|
||||||
"proxy client connecting", CLIENT_REC
|
|
||||||
"proxy client connected", CLIENT_REC
|
"proxy client connected", CLIENT_REC
|
||||||
"proxy client disconnected", CLIENT_REC
|
"proxy client disconnected", CLIENT_REC
|
||||||
"proxy client command", CLIENT_REC, char *args, char *data
|
"proxy client command", CLIENT_REC, char *args, char *data
|
||||||
|
|
@ -247,12 +233,12 @@ FE common
|
||||||
"gui print text", WINDOW_REC, int fg, int bg, int flags, char *text, TEXT_DEST_REC
|
"gui print text", WINDOW_REC, int fg, int bg, int flags, char *text, TEXT_DEST_REC
|
||||||
|
|
||||||
(Can be used to determine when all "gui print text"s are sent (not required))
|
(Can be used to determine when all "gui print text"s are sent (not required))
|
||||||
"gui print text finished", WINDOW_REC, TEXT_DEST_REC
|
"gui print text finished", WINDOW_REC
|
||||||
|
|
||||||
* Provides signals:
|
* Provides signals:
|
||||||
|
|
||||||
completion.c:
|
completion.c:
|
||||||
"complete word", GList * of char *s, WINDOW_REC, char *word, char *linestart, int *want_space
|
"complete word", GList * of char*, WINDOW_REC, char *word, char *linestart, int *want_space
|
||||||
|
|
||||||
fe-common-core.c:
|
fe-common-core.c:
|
||||||
"irssi init read settings"
|
"irssi init read settings"
|
||||||
|
|
@ -264,21 +250,17 @@ fe-exec.c:
|
||||||
|
|
||||||
fe-messages.c:
|
fe-messages.c:
|
||||||
"message public", SERVER_REC, char *msg, char *nick, char *address, char *target
|
"message public", SERVER_REC, char *msg, char *nick, char *address, char *target
|
||||||
"message private", SERVER_REC, char *msg, char *nick, char *address, char *target
|
"message private", SERVER_REC, char *msg, char *nick, char *address
|
||||||
"message own_public", SERVER_REC, char *msg, char *target
|
"message own_public", SERVER_REC, char *msg, char *target
|
||||||
"message own_private", SERVER_REC, char *msg, char *target, char *orig_target
|
"message own_private", SERVER_REC, char *msg, char *target, char *orig_target
|
||||||
"message join", SERVER_REC, char *channel, char *nick, char *address, char *account, char *realname
|
"message join", SERVER_REC, char *channel, char *nick, char *address
|
||||||
"message part", SERVER_REC, char *channel, char *nick, char *address, char *reason
|
"message part", SERVER_REC, char *channel, char *nick, char *address, char *reason
|
||||||
"message quit", SERVER_REC, char *nick, char *address, char *reason
|
"message quit", SERVER_REC, char *nick, char *address, char *reason
|
||||||
"message kick", SERVER_REC, char *channel, char *nick, char *kicker, char *address, char *reason
|
"message kick", SERVER_REC, char *channel, char *nick, char *kicker, char *address, char *reason
|
||||||
"message nick", SERVER_REC, char *newnick, char *oldnick, char *address
|
"message nick", SERVER_REC, char *newnick, char *oldnick, char *address
|
||||||
"message own_nick", SERVER_REC, char *newnick, char *oldnick, char *address
|
"message own_nick", SERVER_REC, char *newnick, char *oldnick, char *address
|
||||||
"message invite", SERVER_REC, char *channel, char *nick, char *address
|
"message invite", SERVER_REC, char *channel, char *nick, char *address
|
||||||
"message invite_other", SERVER_REC, char *channel, char *invited, char *nick, char *address
|
|
||||||
"message topic", SERVER_REC, char *channel, char *topic, char *nick, char *address
|
"message topic", SERVER_REC, char *channel, char *topic, char *nick, char *address
|
||||||
"message host_changed", SERVER_REC, char *nick, char *newaddress, char *oldaddress
|
|
||||||
"message account_changed", SERVER_REC, char *nick, char *address, char *account
|
|
||||||
"message away_notify", SERVER_REC, char *nick, char *address, char *awaymsg
|
|
||||||
|
|
||||||
keyboard.c:
|
keyboard.c:
|
||||||
"keyinfo created", KEYINFO_REC
|
"keyinfo created", KEYINFO_REC
|
||||||
|
|
@ -286,8 +268,6 @@ keyboard.c:
|
||||||
|
|
||||||
printtext.c:
|
printtext.c:
|
||||||
"print text", TEXT_DEST_REC *dest, char *text, char *stripped
|
"print text", TEXT_DEST_REC *dest, char *text, char *stripped
|
||||||
"print format", THEME_REC *theme, char *module, TEXT_DEST_REC *dest, formatnum_args
|
|
||||||
"print noformat", TEXT_DEST_REC *dest, char *text
|
|
||||||
|
|
||||||
themes.c:
|
themes.c:
|
||||||
"theme created", THEME_REC
|
"theme created", THEME_REC
|
||||||
|
|
@ -295,7 +275,6 @@ themes.c:
|
||||||
|
|
||||||
window-activity.c:
|
window-activity.c:
|
||||||
"window hilight", WINDOW_REC
|
"window hilight", WINDOW_REC
|
||||||
"window hilight check", TEXT_DEST_REC, char *msg, int *data_level, int *should_ignore
|
|
||||||
"window dehilight", WINDOW_REC
|
"window dehilight", WINDOW_REC
|
||||||
"window activity", WINDOW_REC, int old_level
|
"window activity", WINDOW_REC, int old_level
|
||||||
"window item hilight", WI_ITEM_REC
|
"window item hilight", WI_ITEM_REC
|
||||||
|
|
@ -351,25 +330,15 @@ Text FE
|
||||||
|
|
||||||
gui-readline.c:
|
gui-readline.c:
|
||||||
"gui key pressed", int key
|
"gui key pressed", int key
|
||||||
"paste event", char *paste, char *arg
|
|
||||||
|
|
||||||
gui-printtext.c:
|
gui-printtext.c:
|
||||||
"beep"
|
"beep"
|
||||||
"gui print text after finished", WINDOW_REC, LINE_REC *line, LINE_REC *prev_line, TEXT_DEST_REC
|
"gui print text after finished", WINDOW_REC, LINE_REC *line, LINE_REC *prev_line
|
||||||
|
|
||||||
textbuffer-view.c
|
textbuffer-view.c
|
||||||
"gui textbuffer line removed", TEXTBUFFER_VIEW_REC *view, LINE_REC *line, LINE_REC *prev_line
|
"gui textbuffer line removed", TEXTBUFFER_VIEW_REC *view, LINE_REC *line, LINE_REC *prev_line
|
||||||
|
|
||||||
textbuffer-formats.c
|
|
||||||
"gui render line text", TEXT_DEST_REC, GString *str, LINE_INFO_META_REC
|
|
||||||
|
|
||||||
Perl
|
Perl
|
||||||
----
|
----
|
||||||
|
|
||||||
"script error", PERL_SCRIPT_REC, char *errormsg
|
"script error", PERL_SCRIPT_REC, char *errormsg
|
||||||
|
|
||||||
OTR Core
|
|
||||||
--------
|
|
||||||
|
|
||||||
otr.c:
|
|
||||||
"otr event", SERVER_REC, char *nick, char *status
|
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,6 @@ $A .. $Z is important.
|
||||||
$winname window name
|
$winname window name
|
||||||
$itemname like $T, but use item's visible_name which may be
|
$itemname like $T, but use item's visible_name which may be
|
||||||
different (eg. $T = !12345chan, $itemname = !chan)
|
different (eg. $T = !12345chan, $itemname = !chan)
|
||||||
$abiversion IRSSI_ABI_VERSION
|
|
||||||
https://github.com/irssi/irssi/wiki/irssi_abi_version
|
|
||||||
|
|
||||||
For example, assume you have the following alias:
|
For example, assume you have the following alias:
|
||||||
|
|
||||||
|
|
|
||||||
846
docs/startup-HOWTO-rus.html
Normal file
846
docs/startup-HOWTO-rus.html
Normal file
|
|
@ -0,0 +1,846 @@
|
||||||
|
<h2>Startup HOWTO</h2>
|
||||||
|
|
||||||
|
<h3>Новичкам в Irssi (а не IRC ..)</h3>
|
||||||
|
|
||||||
|
<p>© 2000-2002 by Timo Sirainen, распространяется под лицензией
|
||||||
|
<a href="http://www.gnu.org/licenses/fdl.html">GNU FDL</a> 1.1.<br/>
|
||||||
|
На русский язык переведено NiXoiD'ом (#xakep @ irc.wenet.ru)
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>Оглавление с некоторыми вопросами из FAQ, на которые дается ответ в параграфах:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li><a href="#c1">Для ленивых</a>
|
||||||
|
<ul>
|
||||||
|
<li>Управление окнами, аналогичное ircII</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c2">Основы пользовательского интерфейса</a>
|
||||||
|
<ul>
|
||||||
|
<li>Работа с "разделенными" окнами (я так перевёл "split windows")</li>
|
||||||
|
<li>Как я могу легко переключаться между окнами?</li>
|
||||||
|
<li>Но alt-1 и.т.д. не работает!</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c3">Автозаход на каналы и серверы</a>
|
||||||
|
<ul>
|
||||||
|
<li>Как автоматически подключаться к серверам при запуске?</li>
|
||||||
|
<li>Как автоматически заходить на каналы?</li>
|
||||||
|
<li>Как автоматически выполнять команды при подключении?</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c4">Настройка окон и автоматическое восстановление их при запуске</a></li>
|
||||||
|
<li><a href="#c5">Окна status и msgs & уровни сообщений</a>
|
||||||
|
<ul>
|
||||||
|
<li>Я хочу чтобы ответ на /WHOIS выводился в текущее окно</li>
|
||||||
|
<li>Я хочу чтобы все сообщения выводились в одном окне</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c6">Как в irssi работает многосерверная поддержка</a>
|
||||||
|
<ul>
|
||||||
|
<li>Я подключился к серверу, который не отвечает и теперь irssi пытается подключиться к нему снова и снова. Как мне остановить это??</li>
|
||||||
|
<li>Я хочу отдельное окно статуса и сообщений для каждого сервера</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c7">Команда /LASTLOG и прокрутка окон</a>
|
||||||
|
<ul>
|
||||||
|
<li>Как сохранить весь текст из окна в файл?</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c8">Ведение логов</a></li>
|
||||||
|
<li><a href="#c9">Изменение клавиатурных Сочетаний</a>
|
||||||
|
<ul>
|
||||||
|
<li>Как я могу заставить F1 делать что-то?</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c10">Прокси и боунсеры</a>
|
||||||
|
<ul>
|
||||||
|
<li>Что такое irssi-proxy?</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#c11">Настройки Irssi</a></li>
|
||||||
|
<li><a href="#c12">Статусбар</a>
|
||||||
|
<ul>
|
||||||
|
<li>Я загрузил скрипт для статусбара, но его нигде не видно!</li>
|
||||||
|
</ul></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h3><a id="c1">1. Для ленивых</a></h3>
|
||||||
|
|
||||||
|
<p>Несколько полезных настроек по умолчанию:</p>
|
||||||
|
|
||||||
|
<p>Если не работают цвета и вы не собираетесь использовать VT-несовместимый терминал, то просто введите:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET term_force_colors ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Если вы хотите чтобы все сообщения выводились в одном окне:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autocreate_own_query OFF
|
||||||
|
/SET autocreate_query_level DCCMSGS
|
||||||
|
/SET use_status_window OFF
|
||||||
|
/SET use_msgs_window ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Чтобы окна автоматически не закрывались когда вы покидаете канал(<code>/PART</code>)или приват
|
||||||
|
(<code>/UNQUERY</code>):</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autoclose_windows OFF
|
||||||
|
/SET reuse_unused_windows ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Чтобы управление окнами в irssi было похоже на ircII введите эти команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autocreate_own_query OFF
|
||||||
|
/SET autocreate_query_level NONE
|
||||||
|
/SET use_status_window OFF
|
||||||
|
/SET use_msgs_window OFF
|
||||||
|
/SET reuse_unused_windows ON
|
||||||
|
/SET windows_auto_renumber OFF
|
||||||
|
|
||||||
|
/SET autostick_split_windows OFF
|
||||||
|
/SET autoclose_windows OFF
|
||||||
|
/SET print_active_channel ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Вот пример добавления серверов:</p>
|
||||||
|
|
||||||
|
<p>(сеть OFTC, идентифицироваться через nickserv и ждать 2 секунды перед заходом на каналы)</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/IRCNET ADD -autosendcmd "/^msg nickserv identify pass;wait 2000" OFTC
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Теперь добавление нескольких серверов к разным сетям (IRC-сеть для них уже установлена),
|
||||||
|
irc.kpnqwest.fi используется по дефолту для IRCNet но если он не доступен, то irssi будет пытаться подключиться к
|
||||||
|
irc.funet.fi:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SERVER ADD -auto -ircnet ircnet irc.kpnqwest.fi 6667
|
||||||
|
/SERVER ADD -ircnet ircnet irc.funet.fi 6667
|
||||||
|
/SERVER ADD -auto -ircnet efnet efnet.cs.hut.fi 6667
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Автозаход на каналы при подключении к серверу и оп-запрос бота при заходе на efnet/#irssi:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/CHANNEL ADD -auto #irssi ircnet
|
||||||
|
/CHANNEL ADD -auto -bots *!*bot@host.org -botcmd "/^msg $0 op pass" #irssi efnet
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
Чтобы строки, содержащие Ваш ник подсвечивались:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/HILIGHT ваш_ник
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h3><a id="c2">2. Основы пользовательского интерфейса</a></h3>
|
||||||
|
|
||||||
|
<p>Для скроллинга содержимого окон используйте PgUp и PgDown. Если они не работают, используйте кнопки Meta-p и Meta-n.
|
||||||
|
Чтобы перескочить в начало или конец буфера используйте команды <code>/SB HOME</code> и <code>/SB END</code>.</p>
|
||||||
|
|
||||||
|
<p>По умолчанию irssi использует для всего "скрытые окна". Скрытое окно создается каждый раз когда вы заходите(<code>/JOIN</code>) на канал или создаете приват(<code>/QUERY</code>)
|
||||||
|
с кем-то. Есть несколько способов переключения между этими окнами:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
Meta-1, Meta-2, .. Meta-0 - Переключение между окнами 1-10
|
||||||
|
Meta-q .. Meta-o - Переключение между окнами 11-19
|
||||||
|
/WINDOW <номер> - Переключение на окно с заданным номером
|
||||||
|
Ctrl-P, Ctrl-N - Переключение к предыдущему/следующему окну
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Простейший способ переключения - это Meta-номер. Что такое Meta?
|
||||||
|
Для некоторых терминалов это ALT. Если у вас windows-совместимая клавиатура, то это так-же может быть левая кнопка windows. Если они не работают, то вам придется настроить некоторые X-ресурсы
|
||||||
|
(это работает как в xterm так и в rxvt):</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
XTerm*eightBitInput: false
|
||||||
|
XTerm*metaSendsEscape: true
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>В rxvt вы так-же можете указать какая кнопка соответствует кнопке meta, так что если вы хотите использовать Alt вместо Win допишите это в файл с ресурсами:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
rxvt*modifier: alt
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Вы так-же можете сделать это при помощи xmodmap:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
xmodmap -e "keysym Alt_L = Meta_L Alt_L"
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Так как-же установить эти X-ресурсы? Для Debian'а, это файл
|
||||||
|
<code>/etc/X11/Xresources/xterm</code>, в который вы можете их засунуть и они будут автоматически читаться при старте иксов. Файлы <code>~/.Xresources</code> и
|
||||||
|
<code>~/.Xdefaults</code> так-же должны работать. Если ничего из вышеперечисленного не работает, то просто скопируйте их в <code>~/.Xresources</code>
|
||||||
|
и загрузите командой <code>xrdb -merge ~/.Xresources</code>.
|
||||||
|
Изменения начинают действовать только в заново запущенном терминале.</p>
|
||||||
|
|
||||||
|
<p>Многие SSH клиенты под Windows так же не разрешают использовать кнопку ALT. Прекрасный клиент, который позволяет делать это - putty, вы можете скачать его с
|
||||||
|
<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">
|
||||||
|
http://www.chiark.greenend.org.uk/~sgtatham/putty/</a>.</p>
|
||||||
|
|
||||||
|
<p>Так-же поддерживает разделение окон. Вот команды, которые позволяют это сделать:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW NEW - Создать новое разделенное окно
|
||||||
|
/WINDOW NEW HIDE - Создать новое скрытое окно
|
||||||
|
/WINDOW CLOSE - Закрыть разделенное или скрытое окно
|
||||||
|
|
||||||
|
/WINDOW HIDE [<number>|<name>] - Сделать разделенное окно скрытым
|
||||||
|
/WINDOW SHOW <number>|<name> - Сделать скрытое окно разделенным
|
||||||
|
|
||||||
|
/WINDOW SHRINK [<lines>] - Уменьшить активное окно
|
||||||
|
/WINDOW GROW [<lines>] - Увеличить активное окно
|
||||||
|
/WINDOW BALANCE - Сбалансировать размеры всех разделенных окон
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>По умолчанию Irssi использует "приклеивание окон". Это подразумевает, что окно, созданное внутри разделенного окна не может быть перемещено без некоторого гемора :). Например у вас может быть следующее расположение окон:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
Split window 1: win#1 - Status window, win#2 - Окно сообщений
|
||||||
|
Split window 2: win#3 - ircnet/#channel1, win#4 - ircnet/#channel2
|
||||||
|
Split window 3: win#5 - efnet/#channel1, win#6 - efnet/#channel2
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Когда вы в окне win#1 нажимаете ALT-6, irssi переключается на разделенное окно
|
||||||
|
#3 и перемещает канал efnet/#channel2 в активное окно.</p>
|
||||||
|
|
||||||
|
<p>При "незакреплённом" варианте окна не имеют никакой связи с разделенными окнами
|
||||||
|
и нажатие ALT-6 в окне win#1 перемещает окно win#6 в разделенное окно 1
|
||||||
|
и делает его активным, исключение может быть когда окно win#6 уже видимо в каком-то другом
|
||||||
|
разделенном окне, irssi просто переключается к этому разделенному окну. Такой метод переключения между окнами применяется в ircII и если он вам понравился то вы можете активизировать его при помощи команды</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autostick_split_windows OFF
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Каждое окно внутри себя может содержать много каналов, приватов и других "вещей". Если вы вообще не любите окна, то вы можете отменить их командой</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autocreate_windows OFF [format c: надёжнее ;) - прим. перев.]
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>И если вы держите все каналы в одном окне, то вам наверное захочется чтобы имя канала выводилось в каждом сообщении:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET print_active_channel ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Если вы хотите сгруппировать в какое-то окно только некоторые каналы или приваты, то используйте эти команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/JOIN -window #channel
|
||||||
|
/QUERY -window nick
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h3><a id="c3">3. Автозаход на каналы и серверы</a></h3>
|
||||||
|
|
||||||
|
<p>В Irssi многосерверная поддержка ИМХО очень хорошая :). Даже если вы хотите общаться только в одной сети, то очень удобно сгруппировать все серверы этой сети в одну группу т.к. это помогает в случае невозможности соединения с главным сервером и в некоторых других случаях :).
|
||||||
|
Дополнительную информацию об эффективном использовании многосерверной поддержки смотрите в главе 6.</p>
|
||||||
|
|
||||||
|
<p>Для начала вам нужно установить свою IRC-сеть, для этого используйте команду <code>/IRCNET</code>,
|
||||||
|
чтобы убедится, что она ещё не установлена. Если она не установлена, то введите <code>/IRCNET ADD
|
||||||
|
имя_сети</code>. Если вы хотите, чтобы какие-то команды автоматически выполнялись при подключении к этой сети, то воспользуйтесь опцией <code>-autosendcmd</code>.
|
||||||
|
Вот некоторые примеры:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/IRCNET ADD -autosendcmd '^msg bot invite' ircnet
|
||||||
|
/IRCNET ADD -autosendcmd "/^msg nickserv identify pass;wait 2000" OFTC
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>После этого вы должны добавить к этой сети серверы. Например:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SERVER ADD -auto -ircnet ircnet irc.kpnqwest.fi 6667
|
||||||
|
/SERVER ADD -auto -ircnet worknet irc.mycompany.com 6667 пароль
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Опция <code>-auto</code> указывает, что к этому серверу нужно автоматически подключаться при запуске.
|
||||||
|
Вы не должны помечать другие серверы той-же сети опцией <code>-auto</code> - Irssi автоматически к ним подключится, если сервер помеченный <code>-auto</code> недоступен.</p>
|
||||||
|
|
||||||
|
<p>И наконец каналы:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/CHANNEL ADD -auto -bots *!*bot@host.org -botcmd "/^msg $0 op pass" #irssi efnet
|
||||||
|
/CHANNEL ADD -auto #secret ircnet password
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Опции <code>-bots</code> и <code>-botcmd</code> требуют небольшого пояснения.
|
||||||
|
Они используются для того, чтобы автоматически давать команды боту при заходе на канал,
|
||||||
|
обычно для автоматического получения опа. Вы можете задать много масок ботов при помощи опции
|
||||||
|
<code>-bots</code>, разделенной пробелами (не забудьте взять эту строку в кавычек). Переменная $0 в опции
|
||||||
|
<code>-botcmd</code> указывает на первого бота в списке найденных. Если вы не хотите использовать маски для ботов (например если бот всегда сидит под одним ником)
|
||||||
|
вы можете указать только опцию <code>-botcmd</code> и команду.</p>
|
||||||
|
|
||||||
|
<h3><a id="c4">4. Настройка окон и автоматическое восстановление при запуске</a></h3>
|
||||||
|
|
||||||
|
<p>Для начала создайте нужные окна(подключитесь к нужным серверам, каналам и.т.д.).
|
||||||
|
Для перемещения окон используйте следующие команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW MOVE LEFT/RIGHT/номер - переместить окно влево, вправо или на указанный номер
|
||||||
|
/WINDOW ITEM MOVE <номер>|<имя> - переместить канал или приват в другое окно
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Когда всё выглядит так, как вы хотите, используйте команду <code>/LAYOUT SAVE</code>
|
||||||
|
(и <code>/SAVE</code>, если не включено автосохранение) и когда вы в следующий раз запустите irssi, то он вспомнит позиции сохраненных окон.
|
||||||
|
Это "запоминание" не означает, что использование команды <code>/LAYOUT SAVE</code> будет приводить к автоматическому подключению к серверам и заходу на каналы,
|
||||||
|
для этого вы должны использовать команды <code>/SERVER ADD -auto</code> и <code>/CHANNEL ADD -auto</code>.</p>
|
||||||
|
|
||||||
|
<p>Чтобы изменить сохраненные настройки окон, расставьте их в нужные позиции и заново введите команду <code>/LAYOUT SAVE</code>.
|
||||||
|
Чтобы обнулить настройки используйте команду <code>/LAYOUT RESET.</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3><a id="c5">5. Окна status и msgs & уровни сообщений</a></h3>
|
||||||
|
|
||||||
|
<p>По умолчанию "дополнительные сообщения" выводятся в окно статуса. Под дополнительными подразумеваются сообщения, которые не принадлежат ни к одному каналу или привату(например ctcp-запросы).
|
||||||
|
Некоторых людей они раздражают, так что если вы хотите их скрыть, то введите</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET use_status_window OFF
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Этот параметр заработает только после перезапуска irssi. Если вы хотите удалить их немедленно, то просто закройте окно(<code>/WINDOW CLOSE</code>).</p>
|
||||||
|
|
||||||
|
<p>Другое основное окно - это "окно сообщений", куда идут все сообщения привата.
|
||||||
|
По умолчанию оно отключено и вместо этого для каждого привата создается новое окно. Чтобы все сообщения привата шли в одно окно используйте команду:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET use_msgs_window ON
|
||||||
|
/SET autocreate_query_level DCCMSGS (или если вы так-же не хотите
|
||||||
|
создавать новые окна для DCC-чата напишите NONE)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Этот параметр так-же не будет задействован до перезапуска irssi. Чтобы применить его немедленно введите:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW NEW HIDE - создать окно
|
||||||
|
/WINDOW NAME (msgs) - переименовать его в "(msgs)"
|
||||||
|
/WINDOW LEVEL MSGS - перенаправить все приватные сообщения в это окно
|
||||||
|
/WINDOW MOVE 1 - сделать это окно первым в списке
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Учтите, что ни use_msgs_window, ни use_status_window не будут работать если использована команда <code>/LAYOUT SAVE</code>.</p>
|
||||||
|
|
||||||
|
<p>Теперь мы подошли к уровням сообщений.. Что это? Все сообщения, которые выводит irssi имеют один или больше
|
||||||
|
"уровень сообщений". Вот основные уровни: PUBLIC - для сообщений на каналах,
|
||||||
|
MSGS - для приватных сообщений и CRAP для остальных сообщений, которые нельзя классифицировать. Вы можете получить полный список уровней при помощи команды</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/HELP levels
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Окну статуса присвоен уровень <code>ALL -MSGS</code>, который подразумевает, что все сообщения,
|
||||||
|
исключая приватные, для которых не назначено другое место идут в это окно. Благодаря опции <code>-MSGS</code> оно не конфликтует с окном сообщений.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3><a id="c6">6. Как в irssi работает многосерверная поддержка</a></h3>
|
||||||
|
|
||||||
|
<p>В ircII и некоторых других IRC-клиентах многосерверная поддержка реализована в виде помещения вкладки с сервером в список окон
|
||||||
|
. В IRSSI НЕТ. Нет никакой связи между окном и сервером. Вы можете подключиться к десяти серверам одновременно и управлять ими всеми из одного окна, или заходить на каналы на каждом из них
|
||||||
|
в одном окне, если вы действительно этого хотите. Как было сказано вы можете подключиться к новому серверу, не закрывая текущего соединения:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/CONNECT irc.server.org
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Вместо команды <code>/SERVER</code>, которая закрывает существующее
|
||||||
|
соединение. Чтобы посмотреть список осуществленных соединений используйте команду <code>/SERVER</code>
|
||||||
|
без параметров. Вы увидите примерно следующее:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
-!- IRCNet: irc.song.fi:6667 (IRCNet)
|
||||||
|
-!- OFTC: irc.oftc.net:6667 (OFTC)
|
||||||
|
-!- RECON-1: 192.168.0.1:6667 () (02:59 left before reconnecting)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Здесь видно, что мы подключены к сетям IRCNet и OFTC.
|
||||||
|
Надпись IRCNet в начале является "меткой сервера" а
|
||||||
|
(IRCnet) в конце показывает соответствующую IRC-сеть. Метка сервера соответствует уникальному имени, которое обычно совпадает с названием сети.
|
||||||
|
Когда IRC-сеть не известна это какая-то часть имени сервера.
|
||||||
|
Когда осуществлены несколько соединений с одной сетью или сервером, irssi
|
||||||
|
добавляет цифру после метки, так что это может быть ircnet, ircnet2, ircnet3
|
||||||
|
и.т.д.</p>
|
||||||
|
|
||||||
|
<p>Метка сервера, начинающаяся с <code>RECON-</code> обозначает переподключение.
|
||||||
|
В вышеприведенном примере мы видим, что подключение к серверу 192.168.0.1 было неудачным и
|
||||||
|
irssi попробует подключиться заново через 3 минуты.</p>
|
||||||
|
|
||||||
|
<p>Чтобы отключиться от сервера используйте следующие команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/DISCONNECT ircnet - отключиться от сервера с меткой "ircnet"
|
||||||
|
/DISCONNECT recon-1 - остановить попытки переподключения к серверу RECON-1
|
||||||
|
/RMRECONNS - остановить все попытки переподключения
|
||||||
|
|
||||||
|
/RECONNECT recon-1 - немедленно попробовать переподключиться к RECON-1
|
||||||
|
/RECONNECT ALL - немедленно попробовать переподключиться ко всем серверам
|
||||||
|
в очереди на подключение
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Теперь, когда вы подключены ко всем серверам вы должны знать как указать какой из них вы хотите использовать.
|
||||||
|
Единственный способ - это иметь пустое окно наподобе окна статуса. В нем вы можете выбрать какой сервер хотите сделать активным</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW SERVER tag - сделать сервер с меткой "tag" активным
|
||||||
|
Ctrl-X - Сделать следующий в списке сервер активным
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Когда сервер активный вы можете нормально его использовать. Когда вы подключены к нескольким серверам, irssi добавляет префикс [метка_сервера]
|
||||||
|
ко всем сообщениям, не относящимся к каналу или привату так что вы можете знать с какого сервера оно пришло.</p>
|
||||||
|
|
||||||
|
<p>Некоторые команды так-же позволяют использовать опцию <code>-метка_сервера</code>
|
||||||
|
чтобы указать для какого сервера вы хотите её использовать:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/MSG -метка ник сообщение
|
||||||
|
/JOIN -метка #канал
|
||||||
|
/QUERY -метка ник
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Автодополнение команды <code>/MSG</code> так-же автоматически добавляет метку сервера
|
||||||
|
когда ник не на активном сервере.</p>
|
||||||
|
|
||||||
|
<p>Окно сервера можно сделать закреплённым. Когда оно закреплено, то оно никогда автоматически не переключится на какое-то другое, и если произошло отключение от сервера,
|
||||||
|
то оно не будет иметь активного сервера. Когда к серверу снова произведено подключение,
|
||||||
|
то он автоматически становится активным в этом окне. Чтобы закрепить окно сервера используйте следующую команду:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW SERVER -sticky tag
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Это полезно если вы хотите иметь отдельные окна статуса и сообщений для каждого сервера. Вот как это можно сделать (повторите для каждого сервера):</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/WINDOW NEW HIDE
|
||||||
|
/WINDOW NAME (status)
|
||||||
|
/WINDOW LEVEL ALL -MSGS
|
||||||
|
/WINDOW SERVER -sticky ircnet
|
||||||
|
|
||||||
|
/WINDOW NEW HIDE
|
||||||
|
/WINDOW NAME (msgs)
|
||||||
|
/WINDOW LEVEL MSGS
|
||||||
|
/WINDOW SERVER -sticky ircnet
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h3><a id="c7">7. Команда /LASTLOG и прокрутка окон</a></h3>
|
||||||
|
|
||||||
|
<p>Команда <code>/LASTLOG</code> может быть использована для поиска текста в буфере окна. Вот простейшие примеры её использования:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/LASTLOG слово - вывести все строки, содержащие "слово"
|
||||||
|
/LASTLOG word 10 - вывести последние 10 строк, содержащих "word"
|
||||||
|
/LASTLOG -topics - вывести все изменения топика
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Если результатом вывода должны стать более 1000 строк, то irssi предположит, что вы допустили ошибку и выведет их только с опцией <code>-force</code>.
|
||||||
|
Чтобы сохранить содержимое буфера окна в файл, используйте следующую команду:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/LASTLOG -file ~/irc.log
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>При использовании опции <code>-file</code> опция <code>-force</code>
|
||||||
|
не требуется. У команды <code>/LASTLOG</code> есть много других опций. Чтобы получить более подробную справку по ней используйте <code>/HELP lastlog</code>.</p>
|
||||||
|
|
||||||
|
<p>Когда вы нашли интересовавшие вас строки, вам скорее всего захочется посмотреть другие прилегающие к ним сообщения. В Irssi есть команда <code>/SCROLLBACK</code> (или
|
||||||
|
её синоним - <code>/SB</code>) для перемещения по буферу окна.
|
||||||
|
Команда <code>/LASTLOG</code> выводит оригинальное время сообщения
|
||||||
|
и вы можете использовать команду <code>/SB GOTO чч:мм</code> чтобы "перепрыгнуть" к этому фрагменту дискуссии.
|
||||||
|
Чтобы переместиться обратно вниз используйте команду <code>/SB
|
||||||
|
END</code>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3><a id="c8">8. Ведение логов</a></h3>
|
||||||
|
|
||||||
|
<p>Irssi может автоматически вести лог всех важных сообщений когда вы в эвее
|
||||||
|
(<code>/AWAY причина</code>). когда вы вышли из эвея
|
||||||
|
(ещё раз введите <code>/AWAY</code>), новые сообщения в эвей-логе выводятся на экран.
|
||||||
|
Вы можете настроить его при помощи следующих команд:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET awaylog_level MSGS HILIGHT - Выбирает какое сообщения надо записывать в лог
|
||||||
|
/SET awaylog_file ~/.irssi/away.log - Выбирает файл для лога
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Простейший способ ведения логов при помощи Irssi - включение автолога.
|
||||||
|
Irssi будет вести логи всех сообщений в заданный каталог.
|
||||||
|
Вы можете включить его при помощи следующей команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autolog ON
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>По умолчанию в логи записывается почти всё кроме уровней CTCPS или CRAP
|
||||||
|
(<code>/WHOIS</code>-запросы и.т.д.). Вы можете задать уровни сообщений, которые надо писать в логи следующей командой:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autolog_level ALL -CRAP -CLIENTCRAP -CTCPS (this is the default)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>По умолчанию irssi пишет лог в ~/irclogs/<метка_сервера>/<цель>.log.
|
||||||
|
Это настраивается следующей командой:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autolog_path ~/irclogs/$tag/$0.log (вариант "по умолчанию")
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Если заданный каталог не существует, то он автоматически создается. В переменной $0
|
||||||
|
содержится цель(канал или ник). Вы можете настроить Irssi так, чтобы он автоматически добавлял дату/время к имени файла с логом.
|
||||||
|
Вормат даты - "man strftime" :). Вот пример:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET autolog_path ~/irclogs/%Y/$tag/$0.%m-%d.log
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Чтобы вести логи только по каким-то отдельным каналам или никам смотрите <code>/HELP
|
||||||
|
log</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3><a id="c9">9. Изменение клавиатурных сочетаний</a></h3>
|
||||||
|
|
||||||
|
<p>Вы можете изменить любое клавиатурное сочетание, о котором терминал даёт знать irssi.
|
||||||
|
То есть irssi "видит" не все клавиатурные сочетания, например он не будет реагировать на
|
||||||
|
shift-backspace если вы как-то не отредактируете соответствующие X-ресурсы.</p>
|
||||||
|
|
||||||
|
<p>Команда <code>/HELP bind</code> даёт намного больше информации о клавиатурных сочетаниях, чем приведено здесь.
|
||||||
|
Обычно проблеммой является "забивание" каких-то не стандартных клавиш.
|
||||||
|
Они немного различны для каждого терминала, так что вы должны будете узнать что именно даёт нажатие этой клавиши.
|
||||||
|
Простейший путь узнать это - выполнить в консоли <code>cat</code> и посмотреть что будет выводится при нажатии этой клавиши.
|
||||||
|
Вот пример нажатия клавиши F1:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
[cras@hurina] ~% cat
|
||||||
|
^[OP
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Так что в irssi чтобы "забить" что-то на F1 вы должны будете использовать команду <code>/BIND ^[OP /ECHO нажата клавиша F1</code>.
|
||||||
|
Если вы используете разные терминалы, которые по разному распознают нажатие одной и той-же клавиши, то вам лучше использовать что-то вроде этого:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/BIND ^[OP key F1
|
||||||
|
/BIND ^[11~ key F1
|
||||||
|
/BIND F1 /ECHO нажата клавиша F1.
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h3><a id="c10">10. Прокси и боунсеры</a></h3>
|
||||||
|
|
||||||
|
<p>Irssi поддерживает подключение к IRC-серверам через прокси. Если вы всё правильно сделаете, то все подключения будут осуществляться через него и вам не надо будет вводить никаких дополнительных команд.</p>
|
||||||
|
|
||||||
|
<p>Вот пример: У вас есть боунсер, висящий на
|
||||||
|
irc.bouncer.org 5000. Вы хотите использовать его для подключения к серверам irc.dal.net и irc.efnet.org. Для начала вы должны будете настроить боунсер:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET use_proxy ON (включить использование прокси)
|
||||||
|
/SET proxy_address irc.bouncer.org
|
||||||
|
/SET proxy_port 5000
|
||||||
|
|
||||||
|
/SET proxy_password ВАШ_ПАРОЛЬ
|
||||||
|
/SET -clear proxy_string
|
||||||
|
/SET proxy_string_after conn %s %d
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Потом вам нужно будет добавить нужные серверы. Это делается точно так-же, как если бы вы хотели подключиться к ним напрямую:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SERVER ADD -auto -ircnet dalnet irc.dal.net
|
||||||
|
/SERVER ADD -auto -ircnet efnet irc.efnet.org
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>После того, как вы сделали вышеперечисленные настройки все соединения irssi будет производить через проксю.</p>
|
||||||
|
|
||||||
|
<p>Если вы не хотите использовать проксю для какого-то сервера, то при его добавлении укажите опцию
|
||||||
|
<code>-noproxy</code>.</p>
|
||||||
|
|
||||||
|
<p><strong>Специфичные настройки для разных типов прокси:</strong></p>
|
||||||
|
|
||||||
|
<p>Обычные настройки:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET use_proxy ON
|
||||||
|
/SET proxy_address <Адрес прокси>
|
||||||
|
/SET proxy_port <Порт>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p><strong>HTTP proxy</strong></p>
|
||||||
|
|
||||||
|
<p>Используйте эти настройки для HTTP-прокси:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET -clear proxy_password
|
||||||
|
/EVAL SET proxy_string CONNECT %s:%d\n\n
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p><strong>BNC</strong></p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET proxy_password ваш_пароль
|
||||||
|
/SET -clear proxy_string
|
||||||
|
/SET proxy_string_after conn %s %d
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p><strong>dircproxy</strong></p>
|
||||||
|
|
||||||
|
<p>dircproxy производит подключения к серверам по паролям. Так что если например вы хотите подключиться к серверу ircnet с паролем ircpass
|
||||||
|
и к OFTC с паролем oftcpass, вы должны сделать примерно следующее:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET -clear proxy_password
|
||||||
|
/SET -clear proxy_string
|
||||||
|
|
||||||
|
/SERVER ADD -auto -ircnet ircnet fake.ircnet 6667 ircpass
|
||||||
|
/SERVER ADD -auto -ircnet OFTC fake.oftc 6667 oftcpass
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Имя сервера и порт, которые вы вводите нигде не используются, так что вы можете писать сюда всё что угодно.</p>
|
||||||
|
|
||||||
|
<p><strong>psyBNC</strong></p>
|
||||||
|
|
||||||
|
<p>psyBNC имеет внутреннюю многосерверную поддержку.
|
||||||
|
Это может доставлять небольшие неудобства и некоторые люди просто используют разные логины для подключения к нескольким серверам.
|
||||||
|
Вы очень просто можете делать это средствами Irssi:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET -clear proxy_password
|
||||||
|
/SET -clear proxy_string
|
||||||
|
|
||||||
|
/IRCNET ADD -user ircnetuser ircnet
|
||||||
|
/SERVER ADD -auto -ircnet ircnet fake.ircnet 6667 ircpass
|
||||||
|
/IRCNET ADD -user oftcuser OFTC
|
||||||
|
/SERVER ADD -auto -ircnet OFTC fake.oftc 6667 oftcpass
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Здесь при помощи команды <code>/IRCNET ADD</code> вы задаете имена пользователей
|
||||||
|
и пароли при помощи <code>/SERVER ADD</code>.</p>
|
||||||
|
|
||||||
|
<p><strong>Irssi proxy</strong></p>
|
||||||
|
|
||||||
|
<p>Irssi включает свою собственную проксю, которую вы можете собрать при помощи опции configure
|
||||||
|
<code>--with-proxy</code>. Чтобы её использовать вы должны оставлять irssi запущенным.</p>
|
||||||
|
|
||||||
|
<p>Irssi-прокся немного отличается от остальных прокси-серверов, нормальные прокси создают новые соединения с IRC-сервером когда вы хотите к нему подключиться, а
|
||||||
|
<strong>irssi-прокся использует уже существующее соединение(я) для всех клиентов</strong>. Или ещё понятнее: <strong>Вы можете использовать только одно соединение с IRC-сервером для неограниченного числа клиентов</strong>.</p>
|
||||||
|
|
||||||
|
<p>Irssi-прокся может распределять несколько соединений с серверами на разные порты, например на 2777-ом порту у вас может быть соединение с ircnet, а на 2778 с efnet.</p>
|
||||||
|
|
||||||
|
<p>Использование на стороне прокси:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/LOAD proxy
|
||||||
|
/SET irssiproxy_password <пароль>
|
||||||
|
/SET irssiproxy_ports <IRC_сеть>=<порт> ... (например ircnet=2777 efnet=2778)
|
||||||
|
</pre>
|
||||||
|
<p>Вы <strong>должны</strong> добавить все серверы, которые вы используете в списки серверов и сетей
|
||||||
|
при помощи команд <code>/SERVER ADD</code> и
|
||||||
|
<code>/IRCNET ADD</code>. ..разве что если вы хотите использовать только одно соединение, то вы можете указать:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET irssiproxy_ports *=2777
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Использование на стороне клиента:</p>
|
||||||
|
|
||||||
|
<p>Просто подключитесь к проксе как к нормальному серверу с паролем, заданным командой <code>/SET irssiproxy_password</code>. Пример:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SERVER ADD -ircnet ircnet my.irssi-proxy.org 2777 secret
|
||||||
|
/SERVER ADD -ircnet efnet my.irssi-proxy.org 2778 secret
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Irssi-прокся так-же нормально работает с другими irc-клиентами.</p>
|
||||||
|
|
||||||
|
<p><strong>SOCKS</strong></p>
|
||||||
|
|
||||||
|
Irssi может быть собран с поддержкой socks-прокси (опция configure <code>--with-socks</code>),
|
||||||
|
но я на самом деле не знаю как оно работает. Настройки <code>/SET
|
||||||
|
proxy</code> на эти прокси никак не действуют.
|
||||||
|
|
||||||
|
<p><strong>Другие прокси</strong></p>
|
||||||
|
|
||||||
|
<p>IRC-боунсеры обычно работают точно так-же как и IRC-серверы, но просят пароль. Вы можете дать им его при помощи следующей команды:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET proxy_password <пароль>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>CONNECT-строки по умолчанию:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/SET proxy_string CONNECT %s %d
|
||||||
|
/SET proxy_string_after
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>proxy_string отправляются перед командами NICK/USER, а
|
||||||
|
proxy_string_after отправляется после них. %s and %d can be used with both
|
||||||
|
of them.</p>
|
||||||
|
|
||||||
|
<h3><a id="c11">11. Настройки Irssi</a></h3>
|
||||||
|
|
||||||
|
<p>Вам могут не понравится настройки Irssi по умолчанию.
|
||||||
|
Вот некоторые из них, которые вы скорее всего захотите изменить(в примерах приведены "умолчальные" значения):</p>
|
||||||
|
|
||||||
|
<p><strong>Окна приватов</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET autocreate_own_query ON</dt>
|
||||||
|
<dd>Автоматически создавать окно привата когда вы отправляете кому-то сообщение при помощи команды <code>/MSG</code>.</dd>
|
||||||
|
|
||||||
|
<dt>/SET autocreate_query_level MSGS</dt>
|
||||||
|
<dd>При получении сообщений окно привата создается с этим уровнем сообщений. Сейчас работают только MSGS, DCCMSGS и NOTICES.
|
||||||
|
Вы можете отменить это при помощи команды <code>/SET -clear autocreate_query_level</code>.</dd>
|
||||||
|
|
||||||
|
<dt>/SET autoclose_query 0</dt>
|
||||||
|
<dd>Окна приватов могут быть автоматически закрыты после заданного "простоя". Активное окно и окна с непрочитанными сообщениями не закрываются. Значение задается в секундах.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p><strong>Окна</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET use_msgs_window OFF</dt>
|
||||||
|
<dd>Создавать окно сообщений при запуске. Все приватные сообщения будут направляться в это окно.
|
||||||
|
Это имеет смысл только если вы отменили автосоздание окон приватов.
|
||||||
|
Это окно так-же может быть создано вручную при помощи команды /WINDOW LEVEL
|
||||||
|
MSGS, /WINDOW NAME (msgs).</dd>
|
||||||
|
|
||||||
|
<dt>/SET use_status_window ON</dt>
|
||||||
|
<dd>Создавать окно статуса при запуске. Все сообщения, которые больше некуда отправить идут сюда, включая /WHOIS и.т.д.
|
||||||
|
Окно статуса тоже может быть создано вручную при помощи команд <code>/WINDOW LEVEL ALL -MSGS</code>,
|
||||||
|
<code>/WINDOW NAME (status)</code>.</dd>
|
||||||
|
|
||||||
|
<dt>/SET autocreate_windows ON</dt>
|
||||||
|
<dd>Если вы это отключите, то все сообщения будут помещаться в одно окно</dd>
|
||||||
|
|
||||||
|
<dt>/SET autoclose_windows ON</dt>
|
||||||
|
<dd>Автозакрытие окон (например при выходе с каналов(<code>/PART</code>)).</dd>
|
||||||
|
|
||||||
|
<dt>/SET reuse_unused_windows OFF</dt>
|
||||||
|
<dd>Когда ищется место для создания нового окна (канала или привата) Irssi
|
||||||
|
сначала пытается использовать уже существующие пустые окна. Если эта опция включена, то всегда будут создаваться новые окна.
|
||||||
|
Эта настройка игнорируется если autoclose_windows включен.</dd>
|
||||||
|
|
||||||
|
<dt>/SET window_auto_change OFF</dt>
|
||||||
|
<dd>Автоматически переключаться в автоматически созданные окна.</dd>
|
||||||
|
|
||||||
|
<dt>/SET print_active_channel OFF</dt>
|
||||||
|
<dd>Когда вы держите в одном окне больше чем один канал, Irssi выводит сообщения, приходящие на активный канал в форме <code><ник> текст</code>
|
||||||
|
а те, что приходят на другие каналы так: <code><ник:канал> текст</code>. Если эта опция включена, то сообщения, приходящие на активный канал будут так-же выводиться во втором варианте.</dd>
|
||||||
|
|
||||||
|
<dt>/SET window_history OFF</dt>
|
||||||
|
<dd>Хранить отдельную историю команд для каждого окна.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<p><strong>Информация о пользователе</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET nick</dt>
|
||||||
|
<dd>Ваш ник</dd>
|
||||||
|
|
||||||
|
<dt>/SET alternate_nick</dt>
|
||||||
|
<dd>Ваш альтернативный ник.</dd>
|
||||||
|
|
||||||
|
<dt>/SET user_name</dt>
|
||||||
|
<dd>Ваше имя пользователя. Если у вас включен ident, то оно ничего не даёт.</dd>
|
||||||
|
|
||||||
|
<dt>/SET real_name</dt>
|
||||||
|
<dd>Ваше настоящее имя.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<p><strong>Информация о сервере</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET skip_motd OFF</dt>
|
||||||
|
<dd>Пропускать motd при подключении к серверу.</dd>
|
||||||
|
|
||||||
|
<dt>/SET server_reconnect_time 300</dt>
|
||||||
|
<dd>Сколько секунд надо ждать перед повторной попыткой подключения к серверу.</dd>
|
||||||
|
|
||||||
|
<dt>/SET lag_max_before_disconnect 300</dt>
|
||||||
|
<dd>При каком лаге(в секундах) надо отключаться от сервера и предпринимать попытку переподключения.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<p><strong>Внешний вид</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET timestamps ON</dt>
|
||||||
|
<dd>Показывать время перед каждым сообщением.</dd>
|
||||||
|
|
||||||
|
<dt>/SET hide_text_style OFF</dt>
|
||||||
|
<dd>Скрыть оформление текста(жирный шрифт, цвета и.т.д.).</dd>
|
||||||
|
|
||||||
|
<dt>/SET show_nickmode ON</dt>
|
||||||
|
<dd>Показывать "режим ника" на каналах, например
|
||||||
|
<code><@nick></code> у опов, <code><+nick></code> у войсов и.т.д.</dd>
|
||||||
|
|
||||||
|
<dt>/SET show_nickmode_empty ON</dt>
|
||||||
|
<dd>Если у ника нет режима - выводить пробел на месте "символа режима".</dd>
|
||||||
|
|
||||||
|
<dt>/SET show_quit_once OFF</dt>
|
||||||
|
<dd>Показывать quit-сообщение только в одном окне, если человек вышел с нескольких каналов, на которых вы сидите.</dd>
|
||||||
|
|
||||||
|
<dt>/SET lag_min_show 100</dt>
|
||||||
|
<dd>Показывать в статус-баре лаг если он превышает заданное число юнитов. В одной секунде 100 юнитов.</dd>
|
||||||
|
|
||||||
|
<dt>/SET indent 10</dt>
|
||||||
|
<dd>Если строка, которую надо вывести не вмещается в одну строку, то она разбивается и выводится на следующих строках. Этот параметр показывает сколько места надо отступить перед началом вывода текста на следующих строках.
|
||||||
|
Это может быть переопределено в настройках форматирования текста при помощи формата <code>%|</code>.</dd>
|
||||||
|
|
||||||
|
<dt>/SET activity_hide_targets</dt>
|
||||||
|
<dd>Если вы не хотите видеть активность на каких-то каналах или приватах, то перечислите их здесь. Например <code>#boringchannel =bot1
|
||||||
|
=bot2</code>. Эта настройка игнорируется если встречается текст или сообщение, для которого вы настроили подсветку(highlight).</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p><strong>Автодополнение ников</strong></p>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>/SET completion_auto OFF</dt>
|
||||||
|
<dd>Автоматически дополнять ник если строка начинается с первых букв ника и "символа автодополнения".
|
||||||
|
Лучше всего использовать автодополнение табом.</dd>
|
||||||
|
|
||||||
|
<dt>/SET completion_char :</dt>
|
||||||
|
<dd>"Символ автодополнения".</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h3><a id="c12">12. Панель статуса</a></h3>
|
||||||
|
|
||||||
|
<p>Команда <code>/STATUSBAR</code> выводит список панелей статуса:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
Name Type Placement Position Visible
|
||||||
|
window window bottom 0 always
|
||||||
|
window_inact window bottom 1 inactive
|
||||||
|
prompt root bottom 100 always
|
||||||
|
topic root top 1 always
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p><code>/STATUSBAR <имя></code> выводит настройки панели статуса и её компоненты.
|
||||||
|
<code>/STATUSBAR <имя> ENABLE|DISABLE</code>
|
||||||
|
включает или отключает панель. <code>/STATUSBAR <имя> RESET</code>
|
||||||
|
устанавливает для панели статуса настройки по умолчанию, или если она была создана вами, то удаляет её.</p>
|
||||||
|
|
||||||
|
<p>Панель может иметь два типа: windows и root - это подразумевает, что она может быть видна для всех окон или только для одного.
|
||||||
|
Placement - это расположение панели: top - сверху, bottom - снизу.
|
||||||
|
Position - это число, чем больше значение которого, тем ниже на экране располагается панель.
|
||||||
|
Параметр Visible может принимать 3 значения: always, active и inactive. Режимы active/inactive полезны только для разделенных окон.
|
||||||
|
Эти настройки могут быть изменены следующими командами:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/STATUSBAR <имя> TYPE window|root
|
||||||
|
/STATUSBAR <имя> PLACEMENT top|bottom
|
||||||
|
/STATUSBAR <имя> POSITION <num>
|
||||||
|
/STATUSBAR <имя> VISIBLE always|active|inactive
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Когда вы загружаете новые скрипты для панелей статуса вам скорее всего придется выбрать где вы хотите их расположить.
|
||||||
|
Компоненты панелей могут быть изменены следующими командами:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
/STATUSBAR <имя> ADD [-before | -after <item>] [-priority #] [-alignment left|right] <компонента(item)>
|
||||||
|
/STATUSBAR <имя> REMOVE <компонента(item)>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Обычно для имя компоненты в скрипте для панели соответствует имени скрипта.
|
||||||
|
Об этом должно быть написано в документации к скрипту. Так что чтобы добавить скрипт mail.pl
|
||||||
|
перед списком активных окон (смотрите
|
||||||
|
<code>/STATUSBAR</code>), введите эту команду: <code>/STATUSBAR window ADD -before
|
||||||
|
act mail</code>.</p>
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,796 +0,0 @@
|
||||||
Startup How-To
|
|
||||||
|
|
||||||
To new Irssi users (not to new IRC users ..)
|
|
||||||
|
|
||||||
Copyright (c) 2000-2002 by Timo Sirainen, release under [1]GNU FDL 1.1 license.
|
|
||||||
|
|
||||||
Index with some FAQ questions that are answered in the chapter:
|
|
||||||
|
|
||||||
1. First steps
|
|
||||||
2. Basic user interface usage
|
|
||||||
□ Split windows work in weird way
|
|
||||||
□ How can I easily switch between windows?
|
|
||||||
□ But alt-1 etc. don’t work!
|
|
||||||
3. Server and channel automation
|
|
||||||
□ How do I automatically connect to servers at startup?
|
|
||||||
□ How do I automatically join to channels at startup?
|
|
||||||
□ How do I automatically send commands to server at connect?
|
|
||||||
4. Setting up windows and automatically restoring them at startup
|
|
||||||
5. Status and msgs windows & message levels
|
|
||||||
□ I want /WHOIS to print reply to current window
|
|
||||||
□ I want all messages to go to one window, not create new windows
|
|
||||||
6. How support for multiple servers works in irssi
|
|
||||||
□ I connected to some server that doesn’t respond and now irssi keeps
|
|
||||||
trying to reconnect to it again and again, how can I stop it??
|
|
||||||
□ I want to have own status and/or msgs window for each servers
|
|
||||||
7. /LASTLOG and jumping around in scrollback
|
|
||||||
□ How can I save all texts in a window to file?
|
|
||||||
8. Logging
|
|
||||||
9. Changing keyboard bindings
|
|
||||||
□ How do I make F1 key do something?
|
|
||||||
10. Proxies and IRC bouncers
|
|
||||||
11. Irssi’s settings
|
|
||||||
□ For all the ircII people
|
|
||||||
12. Statusbar
|
|
||||||
□ I loaded a statusbar script but it’s not visible anywhere!
|
|
||||||
|
|
||||||
1. First steps
|
|
||||||
|
|
||||||
IRC Networks are made of servers, and servers have channels. The default config
|
|
||||||
has a few predefined networks, to list them:
|
|
||||||
|
|
||||||
/NETWORK LIST
|
|
||||||
|
|
||||||
And to connect to one of those networks and join a channel:
|
|
||||||
|
|
||||||
/CONNECT liberachat
|
|
||||||
/JOIN #irssi
|
|
||||||
|
|
||||||
To add more networks:
|
|
||||||
|
|
||||||
/NETWORK ADD ExampleNet
|
|
||||||
|
|
||||||
Then add some servers (with -auto to automatically connect):
|
|
||||||
|
|
||||||
/SERVER ADD -auto -network ExampleNet irc.example.net
|
|
||||||
|
|
||||||
Automatically join to channels after connected to server:
|
|
||||||
|
|
||||||
/CHANNEL ADD -auto #lounge ExampleNet
|
|
||||||
|
|
||||||
To modify existing networks (or servers, or channels) just ADD again using the
|
|
||||||
same name as before. This configures a network to identify with nickserv and
|
|
||||||
wait for 2 seconds before joining channels:
|
|
||||||
|
|
||||||
/NETWORK ADD -autosendcmd "/^msg nickserv ident pass;wait 2000" ExampleNet
|
|
||||||
|
|
||||||
If you have irssi 0.8.18 or higher and the irc network supports it, you can use
|
|
||||||
SASL instead of nickserv, which is more reliable:
|
|
||||||
|
|
||||||
/NETWORK ADD -sasl_username yourname -sasl_password yourpassword -sasl_mechanism PLAIN liberachat
|
|
||||||
|
|
||||||
These commands have many more options, see their help for details:
|
|
||||||
|
|
||||||
/HELP NETWORK
|
|
||||||
/HELP SERVER
|
|
||||||
/HELP CHANNEL
|
|
||||||
/HELP
|
|
||||||
|
|
||||||
If you want lines containing your nick to hilight:
|
|
||||||
|
|
||||||
/HILIGHT nick
|
|
||||||
|
|
||||||
Or, for irssi 0.8.18 or higher:
|
|
||||||
|
|
||||||
/SET hilight_nick_matches_everywhere ON
|
|
||||||
|
|
||||||
To get beeps on private messages or highlights:
|
|
||||||
|
|
||||||
/SET beep_msg_level MSGS HILIGHT DCCMSGS
|
|
||||||
|
|
||||||
No other irssi settings are needed (don’t enable bell_beeps), but there may be
|
|
||||||
settings to change in your terminal multiplexer (screen/tmux), your terminal,
|
|
||||||
or your desktop environment.
|
|
||||||
|
|
||||||
2. Basic user interface usage
|
|
||||||
|
|
||||||
Windows can be scrolled up/down with PgUp and PgDown keys. If they don’t work
|
|
||||||
for you, use Meta-p and Meta-n keys. For jumping to beginning or end of the
|
|
||||||
buffer, use /SB HOME and /SB END commands.
|
|
||||||
|
|
||||||
By default, irssi uses “hidden windows” for everything. Hidden windows are
|
|
||||||
created every time you /JOIN a channel or /QUERY someone. There’s several ways
|
|
||||||
you can change between these windows:
|
|
||||||
|
|
||||||
Meta-1, Meta-2, .. Meta-0 - Jump directly between windows 1-10
|
|
||||||
Meta-q .. Meta-o - Jump directly between windows 11-19
|
|
||||||
/WINDOW <number> - Jump to any window with specified number
|
|
||||||
Ctrl-P, Ctrl-N - Jump to previous / next window
|
|
||||||
|
|
||||||
Clearly the easiest way is to use Meta-number keys. Meta usually means the ALT
|
|
||||||
key, but if that doesn’t work, you can use ESC.
|
|
||||||
|
|
||||||
Mac OS X users with ALT key issues might prefer using [2]iTerm2 instead of the
|
|
||||||
default terminal emulator.
|
|
||||||
|
|
||||||
Alt key as meta, for xterm/rxvt users
|
|
||||||
|
|
||||||
If you use xterm or rxvt, you may need to set a few X resources:
|
|
||||||
|
|
||||||
XTerm*eightBitInput: false
|
|
||||||
XTerm*metaSendsEscape: true
|
|
||||||
|
|
||||||
With rxvt, you can also specify which key acts as Meta key. So if you want to
|
|
||||||
use ALT instead of Windows key for it, use:
|
|
||||||
|
|
||||||
rxvt*modifier: alt
|
|
||||||
|
|
||||||
You could do this by changing the X key mappings:
|
|
||||||
|
|
||||||
xmodmap -e "keysym Alt_L = Meta_L Alt_L"
|
|
||||||
|
|
||||||
And how exactly do you set these X resources? For Debian, there’s /etc/X11/
|
|
||||||
Xresources/xterm file where you can put them and it’s read automatically when X
|
|
||||||
starts. ~/.Xresources and ~/.Xdefaults files might also work. If you can’t get
|
|
||||||
anything else to work, just copy and paste those lines to ~/.Xresources and
|
|
||||||
directly call xrdb -merge ~/.Xresources in some xterm. The resources affect
|
|
||||||
only the new xterms you start, not existing ones.
|
|
||||||
|
|
||||||
Split windows and window items
|
|
||||||
|
|
||||||
Note: [3]this guide might be a better introduction to window splits
|
|
||||||
|
|
||||||
Irssi also supports split windows, they’ve had some problems in past but I
|
|
||||||
think they should work pretty well now :) Here’s some commands related to them:
|
|
||||||
|
|
||||||
/WINDOW NEW - Create new split window
|
|
||||||
/WINDOW NEW HIDE - Create new hidden window
|
|
||||||
/WINDOW CLOSE - Close split or hidden window
|
|
||||||
|
|
||||||
/WINDOW HIDE [<number>|<name>] - Make the split window hidden window
|
|
||||||
/WINDOW SHOW <number>|<name> - Make the hidden window a split window
|
|
||||||
|
|
||||||
/WINDOW SHRINK [<lines>] - Shrink the split window
|
|
||||||
/WINDOW GROW [<lines>] - Grow the split window
|
|
||||||
/WINDOW BALANCE - Balance the sizes of all split windows
|
|
||||||
|
|
||||||
By default, irssi uses “sticky windowing” for split windows. This means that
|
|
||||||
windows created inside one split window cannot be moved to another split window
|
|
||||||
without some effort. For example you could have following window layout:
|
|
||||||
|
|
||||||
Split window 1: win#1 - Status window, win#2 - Messages window
|
|
||||||
Split window 2: win#3 - IRCnet/#channel1, win#4 - IRCnet/#channel2
|
|
||||||
Split window 3: win#5 - efnet/#channel1, win#6 - efnet/#channel2
|
|
||||||
|
|
||||||
When you are in win#1 and press ALT-6, irssi jumps to split window #3 and moves
|
|
||||||
the efnet/#channel2 the active window.
|
|
||||||
|
|
||||||
With non-sticky windowing the windows don’t have any relationship with split
|
|
||||||
windows, pressing ALT-6 in win#1 moves win#6 to split window 1 and sets it
|
|
||||||
active, except if win#6 was already visible in some other split window irssi
|
|
||||||
just changes to that split window. This it the way windows work with ircii, if
|
|
||||||
you prefer it you can set it with
|
|
||||||
|
|
||||||
/SET autostick_split_windows OFF
|
|
||||||
|
|
||||||
Each window can have multiple channels, queries and other “window items” inside
|
|
||||||
them. If you don’t like windows at all, you disable automatic creating of them
|
|
||||||
with
|
|
||||||
|
|
||||||
/SET autocreate_windows OFF
|
|
||||||
|
|
||||||
And if you keep all channels in one window, you most probably want the channel
|
|
||||||
name printed in each line:
|
|
||||||
|
|
||||||
/SET print_active_channel ON
|
|
||||||
|
|
||||||
If you want to group only some channels or queries in one window, use
|
|
||||||
|
|
||||||
/JOIN -window #channel
|
|
||||||
/QUERY -window nick
|
|
||||||
|
|
||||||
3. Server and channel automation
|
|
||||||
|
|
||||||
Irssi’s multiple IRC network support is IMHO very good - at least compared to
|
|
||||||
other clients :) Even if you’re only in one IRC network you should group all
|
|
||||||
your servers to be in the same IRC network as this helps with reconnecting if
|
|
||||||
your primary server breaks and is probably useful in some other ways too :) For
|
|
||||||
information how to actually use irssi correctly with multiple servers see the
|
|
||||||
chapter 6.
|
|
||||||
|
|
||||||
First you need to have your IRC network set, use /NETWORK command to see if
|
|
||||||
it’s already there. If it isn’t, use /NETWORK ADD yournetwork. If you want to
|
|
||||||
execute some commands automatically when you’re connected to some network, use
|
|
||||||
-autosendcmd option. Here’s some examples:
|
|
||||||
|
|
||||||
/NETWORK ADD -autosendcmd '^msg bot invite' IRCnet
|
|
||||||
/NETWORK ADD -autosendcmd "/^msg nickserv ident pass;wait 2000" OFTC
|
|
||||||
|
|
||||||
After that you need to add your servers. For example:
|
|
||||||
|
|
||||||
/SERVER ADD -auto -network IRCnet irc.kpnqwest.fi 6667
|
|
||||||
/SERVER ADD -auto -network worknet irc.mycompany.com 6667 password
|
|
||||||
|
|
||||||
The -auto option specifies that this server is automatically connected at
|
|
||||||
startup. You don’t need to make more than one server with -auto option to one
|
|
||||||
IRC network, other servers are automatically connected in same network if the
|
|
||||||
-auto server fails.
|
|
||||||
|
|
||||||
And finally channels:
|
|
||||||
|
|
||||||
/CHANNEL ADD -auto -bots *!*bot@host.org -botcmd "/^msg $0 op pass" #irssi efnet
|
|
||||||
/CHANNEL ADD -auto #secret IRCnet password
|
|
||||||
|
|
||||||
-bots and -botcmd should be the only ones needing a bit of explaining. They’re
|
|
||||||
used to send commands automatically to bot when channel is joined, usually to
|
|
||||||
get ops automatically. You can specify multiple bot masks with -bots option
|
|
||||||
separated with spaces (and remember to quote the string then). The $0 in
|
|
||||||
-botcmd specifies the first found bot in the list. If you don’t need the bot
|
|
||||||
masks (ie. the bot is always with the same nick, like chanserv) you can give
|
|
||||||
only the -botcmd option and the command is always sent.
|
|
||||||
|
|
||||||
4. Setting up windows and automatically restoring them at startup
|
|
||||||
|
|
||||||
First connect to all the servers, join the channels and create the queries you
|
|
||||||
want. If you want to move the windows or channels around use commands:
|
|
||||||
|
|
||||||
/WINDOW MOVE LEFT/RIGHT/number - move window elsewhere
|
|
||||||
/WINDOW ITEM MOVE <number>|<name> - move channel/query to another window
|
|
||||||
|
|
||||||
When everything looks the way you like, use /LAYOUT SAVE command (and /SAVE, if
|
|
||||||
you don’t have autosaving enabled) and when you start irssi next time, irssi
|
|
||||||
remembers the positions of the channels, queries and everything. This
|
|
||||||
“remembering” doesn’t mean that simply using /LAYOUT SAVE would automatically
|
|
||||||
make irssi reconnect to all servers and join all channels, you’ll need the /
|
|
||||||
SERVER ADD -auto and /CHANNEL ADD -auto commands to do that.
|
|
||||||
|
|
||||||
If you want to change the layout, you just rearrange the layout like you want
|
|
||||||
it and use /LAYOUT SAVE again. If you want to remove the layout for some
|
|
||||||
reason, use /LAYOUT RESET.
|
|
||||||
|
|
||||||
5. Status and msgs windows & message levels
|
|
||||||
|
|
||||||
By default, all the “extra messages” go to status window. This means pretty
|
|
||||||
much all messages that don’t clearly belong to some channel or query. Some
|
|
||||||
people like it, some don’t. If you want to remove it, use
|
|
||||||
|
|
||||||
/SET use_status_window OFF
|
|
||||||
|
|
||||||
This doesn’t have any effect until you restart irssi. If you want to remove it
|
|
||||||
immediately, just /WINDOW CLOSE it.
|
|
||||||
|
|
||||||
Another common window is “messages window”, where all private messages go. By
|
|
||||||
default it’s disabled and query windows are created instead. To make all
|
|
||||||
private messages go to msgs window, say:
|
|
||||||
|
|
||||||
/SET use_msgs_window ON
|
|
||||||
/SET autocreate_query_level DCCMSGS (or if you don't want queries to
|
|
||||||
dcc chats either, say NONE)
|
|
||||||
|
|
||||||
use_msgs_window either doesn’t have any effect until restarting irssi. To
|
|
||||||
create it immediately say:
|
|
||||||
|
|
||||||
/WINDOW NEW HIDE - create the window
|
|
||||||
/WINDOW NAME (msgs) - name it to "(msgs)"
|
|
||||||
/WINDOW LEVEL MSGS - make all private messages go to this window
|
|
||||||
/WINDOW MOVE 1 - move it to first window
|
|
||||||
|
|
||||||
Note that neither use_msgs_window nor use_status_window have any effect at all
|
|
||||||
if /LAYOUT SAVE has been used.
|
|
||||||
|
|
||||||
This brings us to message levels.. What are they? All messages that irssi
|
|
||||||
prints have one or more “message levels”. Most common are PUBLIC for public
|
|
||||||
messages in channels, MSGS for private messages and CRAP for all sorts of
|
|
||||||
messages with no real classification. You can get a whole list of levels with
|
|
||||||
|
|
||||||
/HELP levels
|
|
||||||
|
|
||||||
Status window has message level ALL -MSGS, meaning that all messages, except
|
|
||||||
private messages, without more specific place go to status window. The -MSGS is
|
|
||||||
there so it doesn’t conflict with messages window.
|
|
||||||
|
|
||||||
6. How support for multiple servers works in irssi
|
|
||||||
|
|
||||||
ircii and several other clients support multiple servers by placing the
|
|
||||||
connection into some window. IRSSI DOES NOT. There is no required relationship
|
|
||||||
between window and server. You can connect to 10 servers and manage them all in
|
|
||||||
just one window, or join channel in each one of them to one single window if
|
|
||||||
you really want to. That being said, here’s how you do connect to new server
|
|
||||||
without closing the old connection:
|
|
||||||
|
|
||||||
/CONNECT irc.server.org
|
|
||||||
|
|
||||||
Instead of the /SERVER which disconnects the existing connection. To see list
|
|
||||||
of all active connections, use /SERVER without any parameters. You should see a
|
|
||||||
list of something like:
|
|
||||||
|
|
||||||
-!- IRCNet: irc.song.fi:6667 (IRCNet)
|
|
||||||
-!- OFTC: irc.oftc.net:6667 (OFTC)
|
|
||||||
-!- RECON-1: 192.168.0.1:6667 () (02:59 left before reconnecting)
|
|
||||||
|
|
||||||
Here you see that we’re connected to IRCNet and OFTC networks. The IRCNet at
|
|
||||||
the beginning is called the “server tag” while the (IRCnet) at the end shows
|
|
||||||
the IRC network. Server tag specifies unique tag to refer to the server,
|
|
||||||
usually it’s the same as the IRC network. When the IRC network isn’t known it’s
|
|
||||||
some part of the server name. When there’s multiple connections to same IRC
|
|
||||||
network or server, irssi adds a number after the tag so there could be network,
|
|
||||||
network2, network3 etc.
|
|
||||||
|
|
||||||
Server tags beginning with RECON- mean server reconnections. Above we see that
|
|
||||||
connection to server at 192.168.0.1 wasn’t successful and irssi will try to
|
|
||||||
connect it again in 3 minutes.
|
|
||||||
|
|
||||||
To disconnect one of the servers, or to stop irssi from reconnecting, use
|
|
||||||
|
|
||||||
/DISCONNECT network - disconnect server with tag "network"
|
|
||||||
/DISCONNECT recon-1 - stop trying to reconnect to RECON-1 server
|
|
||||||
/RMRECONNS - stop all server reconnections
|
|
||||||
|
|
||||||
/RECONNECT recon-1 - immediately try reconnecting back to RECON-1
|
|
||||||
/RECONNECT ALL - immediately try reconnecting back to all
|
|
||||||
servers in reconnection queue
|
|
||||||
|
|
||||||
Now that you’re connected to all your servers, you’ll have to know how to
|
|
||||||
specify which one of them you want to use. One way is to have an empty window,
|
|
||||||
like status or msgs window. In it, you can specify which server to set active
|
|
||||||
with
|
|
||||||
|
|
||||||
/WINDOW SERVER tag - set server "tag" active
|
|
||||||
Ctrl-X - set the next server in list active
|
|
||||||
|
|
||||||
When the server is active, you can use it normally. When there’s multiple
|
|
||||||
connected servers, irssi adds [servertag] prefix to all messages in non-channel
|
|
||||||
/query messages so you’ll know where it came from.
|
|
||||||
|
|
||||||
Several commands also accept -servertag option to specify which server it
|
|
||||||
should use:
|
|
||||||
|
|
||||||
/MSG -tag nick message
|
|
||||||
/JOIN -tag #channel
|
|
||||||
/QUERY -tag nick
|
|
||||||
|
|
||||||
/MSG tab completion also automatically adds the -tag option when nick isn’t in
|
|
||||||
active server.
|
|
||||||
|
|
||||||
Window’s server can be made sticky. When sticky, it will never automatically
|
|
||||||
change to anything else, and if server gets disconnected, the window won’t have
|
|
||||||
any active server. When the server gets connected again, it is automatically
|
|
||||||
set active in the window. To set the window’s server sticky use
|
|
||||||
|
|
||||||
/WINDOW SERVER -sticky tag
|
|
||||||
|
|
||||||
This is useful if you wish to have multiple status or msgs windows, one for
|
|
||||||
each server. Here’s how to do them (repeat for each server)
|
|
||||||
|
|
||||||
/WINDOW NEW HIDE
|
|
||||||
/WINDOW NAME (status)
|
|
||||||
/WINDOW LEVEL ALL -MSGS
|
|
||||||
/WINDOW SERVER -sticky network
|
|
||||||
|
|
||||||
/WINDOW NEW HIDE
|
|
||||||
/WINDOW NAME (msgs)
|
|
||||||
/WINDOW LEVEL MSGS
|
|
||||||
/WINDOW SERVER -sticky network
|
|
||||||
|
|
||||||
7. /LASTLOG and jumping around in scrollback
|
|
||||||
|
|
||||||
/LASTLOG command can be used for searching texts in scrollback buffer. Simplest
|
|
||||||
usages are
|
|
||||||
|
|
||||||
/LASTLOG word - print all lines with "word" in them
|
|
||||||
/LASTLOG word 10 - print last 10 occurances of "word"
|
|
||||||
/LASTLOG -topics - print all topic changes
|
|
||||||
|
|
||||||
If there’s more than 1000 lines to be printed, irssi thinks that you probably
|
|
||||||
made some mistake and won’t print them without -force option. If you want to
|
|
||||||
save the full lastlog to file, use
|
|
||||||
|
|
||||||
/LASTLOG -file ~/irc.log
|
|
||||||
|
|
||||||
With -file option you don’t need -force even if there’s more than 1000 lines. /
|
|
||||||
LASTLOG has a lot of other options too, see /HELP lastlog for details.
|
|
||||||
|
|
||||||
Once you’ve found the lines you were interested in, you might want to check the
|
|
||||||
discussion around them. Irssi has /SCROLLBACK (or alias /SB) command for
|
|
||||||
jumping around in scrollback buffer. Since /LASTLOG prints the timestamp when
|
|
||||||
the message was originally printed, you can use /SB GOTO hh:mm to jump directly
|
|
||||||
there. To get back to the bottom of scrollback, use /SB END command.
|
|
||||||
|
|
||||||
8. Logging
|
|
||||||
|
|
||||||
Irssi can automatically log important messages when you’re set away (/AWAY
|
|
||||||
reason). When you set yourself unaway (/AWAY), the new messages in away log are
|
|
||||||
printed to screen. You can configure it with:
|
|
||||||
|
|
||||||
/SET awaylog_level MSGS HILIGHT - Specifies what messages to log
|
|
||||||
/SET awaylog_file ~/.irssi/away.log - Specifies the file to use
|
|
||||||
|
|
||||||
Easiest way to start logging with Irssi is to use autologging. With it Irssi
|
|
||||||
logs all channels and private messages to specified directory. You can turn it
|
|
||||||
on with
|
|
||||||
|
|
||||||
/SET autolog ON
|
|
||||||
|
|
||||||
By default it logs pretty much everything execept CTCPS or CRAP (/WHOIS
|
|
||||||
requests, etc). You can specify the logging level yourself with
|
|
||||||
|
|
||||||
/SET autolog_level ALL -CRAP -CLIENTCRAP -CTCPS (this is the default)
|
|
||||||
|
|
||||||
By default irssi logs to ~/irclogs/<servertag>/<target>.log. You can change
|
|
||||||
this with
|
|
||||||
|
|
||||||
/SET autolog_path ~/irclogs/$tag/$0.log (this is the default)
|
|
||||||
|
|
||||||
The path is automatically created if it doesn’t exist. $0 specifies the target
|
|
||||||
(channel/nick). You can make irssi automatically rotate the logs by adding date
|
|
||||||
/time formats to the file name. The formats are in “man strftime” format. For
|
|
||||||
example
|
|
||||||
|
|
||||||
/SET autolog_path ~/irclogs/%Y/$tag/$0.%m-%d.log
|
|
||||||
|
|
||||||
For logging only some specific channels or nicks, see /HELP log
|
|
||||||
|
|
||||||
9. Changing keyboard bindings
|
|
||||||
|
|
||||||
You can change any keyboard binding that terminal lets irssi know about. It
|
|
||||||
doesn’t let irssi know everything, so for example shift-backspace can’t be
|
|
||||||
bound unless you modify xterm resources somehow.
|
|
||||||
|
|
||||||
/HELP bind tells pretty much everything there is to know about keyboard
|
|
||||||
bindings. However, there’s the problem of how to bind some non-standard keys.
|
|
||||||
They might differ a bit with each terminal, so you’ll need to find out what
|
|
||||||
exactly the keypress produces. Easiest way to check that would be to see what
|
|
||||||
it prints in cat. Here’s an example for pressing F1 key:
|
|
||||||
|
|
||||||
[cras@hurina] ~% cat
|
|
||||||
^[OP
|
|
||||||
|
|
||||||
So in irssi you would use /BIND ^[OP /ECHO F1 pressed. If you use multiple
|
|
||||||
terminals which have different bindings for the key, it would be better to use
|
|
||||||
eg.:
|
|
||||||
|
|
||||||
/BIND ^[OP key F1
|
|
||||||
/BIND ^[11~ key F1
|
|
||||||
/BIND F1 /ECHO F1 pressed.
|
|
||||||
|
|
||||||
10. Proxies and IRC bouncers
|
|
||||||
|
|
||||||
Irssi supports connecting to IRC servers via a proxy. All server connections
|
|
||||||
are then made through it, and if you’ve set up everything properly, you don’t
|
|
||||||
need to do any /QUOTE SERVER commands manually.
|
|
||||||
|
|
||||||
Here’s an example: You have your bouncer (lets say, BNC or BNC-like) listening
|
|
||||||
in irc.bouncer.org port 5000. You want to use it to connect to servers
|
|
||||||
irc.dal.net and irc.efnet.org. First you’d need to setup the bouncer:
|
|
||||||
|
|
||||||
/SET use_proxy ON
|
|
||||||
/SET proxy_address irc.bouncer.org
|
|
||||||
/SET proxy_port 5000
|
|
||||||
|
|
||||||
/SET proxy_password YOUR_BNC_PASSWORD_HERE
|
|
||||||
/SET -clear proxy_string
|
|
||||||
/SET proxy_string_after conn %s %d
|
|
||||||
|
|
||||||
Then you’ll need to add the server connections. These are done exactly as if
|
|
||||||
you’d want to connect directly to them. Nothing special about them:
|
|
||||||
|
|
||||||
/SERVER ADD -auto -network dalnet irc.dal.net
|
|
||||||
/SERVER ADD -auto -network efnet irc.efnet.org
|
|
||||||
|
|
||||||
With the proxy /SETs however, irssi now connects to those servers through your
|
|
||||||
BNC. All server connections are made through them so you can just forget that
|
|
||||||
your bouncer even exists.
|
|
||||||
|
|
||||||
If you don’t want to use the proxy for some reason, there’s -noproxy option
|
|
||||||
which you can give to /SERVER and /SERVER ADD commands.
|
|
||||||
|
|
||||||
Proxy specific settings:
|
|
||||||
|
|
||||||
All proxies except irssi proxy and socks proxy have these settings in common:
|
|
||||||
|
|
||||||
/SET use_proxy ON
|
|
||||||
/SET proxy_address <Proxy host address>
|
|
||||||
/SET proxy_port <Proxy port>
|
|
||||||
|
|
||||||
HTTP proxy
|
|
||||||
|
|
||||||
Use these settings with HTTP proxies:
|
|
||||||
|
|
||||||
/SET -clear proxy_password
|
|
||||||
/EVAL SET proxy_string CONNECT %s:%d HTTP/1.0\n\n
|
|
||||||
|
|
||||||
BNC
|
|
||||||
|
|
||||||
/SET proxy_password your_pass
|
|
||||||
/SET -clear proxy_string
|
|
||||||
/SET proxy_string_after conn %s %d
|
|
||||||
|
|
||||||
dircproxy
|
|
||||||
|
|
||||||
dircproxy separates the server connections by passwords. So, if you for example
|
|
||||||
have network connection with password ircpass and OFTC connection with
|
|
||||||
oftcpass, you would do something like this:
|
|
||||||
|
|
||||||
/SET -clear proxy_password
|
|
||||||
/SET -clear proxy_string
|
|
||||||
|
|
||||||
/SERVER ADD -auto -network IRCnet fake.network 6667 ircpass
|
|
||||||
/SERVER ADD -auto -network OFTC fake.oftc 6667 oftcpass
|
|
||||||
|
|
||||||
The server name and port you give isn’t used anywhere, so you can put anything
|
|
||||||
you want in there.
|
|
||||||
|
|
||||||
psyBNC
|
|
||||||
|
|
||||||
psyBNC has internal support for multiple servers. However, it could be a bit
|
|
||||||
annoying to use, and some people just use different users for connecting to
|
|
||||||
different servers. You can manage this in a bit same way as with dircproxy, by
|
|
||||||
creating fake connections:
|
|
||||||
|
|
||||||
/SET -clear proxy_password
|
|
||||||
/SET -clear proxy_string
|
|
||||||
|
|
||||||
/NETWORK ADD -user networkuser IRCnet
|
|
||||||
/SERVER ADD -auto -network IRCnet fake.network 6667 ircpass
|
|
||||||
/NETWORK ADD -user oftcuser OFTC
|
|
||||||
/SERVER ADD -auto -network OFTC fake.oftc 6667 oftcpass
|
|
||||||
|
|
||||||
So, you’ll specify the usernames with /NETWORK ADD command, and the user’s
|
|
||||||
password with /SERVER ADD.
|
|
||||||
|
|
||||||
Irssi proxy
|
|
||||||
|
|
||||||
Irssi contains it’s own proxy which you can build giving \--with-proxy option
|
|
||||||
to configure. You’ll still need to run irssi in a screen to use it though.
|
|
||||||
|
|
||||||
Irssi proxy is a bit different than most proxies, normally proxies create a new
|
|
||||||
connection to IRC server when a new client connects to it, but irssi proxy
|
|
||||||
shares your existing IRC connection(s) to multiple clients. And even more
|
|
||||||
clearly: You can use only one IRC server connection of the irssi proxy to IRC
|
|
||||||
with as many clients as you want. Can anyone figure out even more easier ways
|
|
||||||
to say this, so I wouldn’t need to try to explain this thing for minutes every
|
|
||||||
time? :)
|
|
||||||
|
|
||||||
Irssi proxy supports sharing multiple server connections in different ports,
|
|
||||||
like you can share network in port 2777 and efnet in port 2778.
|
|
||||||
|
|
||||||
Usage in proxy side:
|
|
||||||
|
|
||||||
/LOAD proxy
|
|
||||||
/SET irssiproxy_password <password>
|
|
||||||
/SET irssiproxy_ports <network>=<port> ... (eg. IRCnet=2777 efnet=2778)
|
|
||||||
|
|
||||||
NOTE: you MUST add all the servers you are using to server and network lists
|
|
||||||
with /SERVER ADD and /NETWORK ADD. ..Except if you really don’t want to for
|
|
||||||
some reason, and you only use one server connection, you may simply set:
|
|
||||||
|
|
||||||
/SET irssiproxy_ports *=2777
|
|
||||||
|
|
||||||
Usage in client side:
|
|
||||||
|
|
||||||
Just connect to the irssi proxy like it is a normal server with password
|
|
||||||
specified in /SET irssiproxy_password. For example:
|
|
||||||
|
|
||||||
/SERVER ADD -network IRCnet my.irssi-proxy.org 2777 secret
|
|
||||||
/SERVER ADD -network efnet my.irssi-proxy.org 2778 secret
|
|
||||||
|
|
||||||
Irssi proxy works fine with other IRC clients as well.
|
|
||||||
|
|
||||||
SOCKS
|
|
||||||
|
|
||||||
Using [4]proxychains-ng is recommended for using irssi with a socks proxy.
|
|
||||||
|
|
||||||
Irssi does not support socks proxy natively.
|
|
||||||
|
|
||||||
Note that /SET proxy settings don’t have anything to do with socks.
|
|
||||||
|
|
||||||
Others
|
|
||||||
|
|
||||||
IRC bouncers usually work like IRC servers, and want a password. You can give
|
|
||||||
it with:
|
|
||||||
|
|
||||||
/SET proxy_password <password>
|
|
||||||
|
|
||||||
Irssi’s defaults for connect strings are
|
|
||||||
|
|
||||||
/SET proxy_string CONNECT %s %d
|
|
||||||
/SET proxy_string_after
|
|
||||||
|
|
||||||
The proxy_string is sent before NICK/USER commands, the proxy_string_after is
|
|
||||||
sent after them. %s and %d can be used with both of them.
|
|
||||||
|
|
||||||
11. Irssi’s settings
|
|
||||||
|
|
||||||
Here’s some settings you might want to change (the default value is shown):
|
|
||||||
Also check the [5]Settings Documentation
|
|
||||||
|
|
||||||
Queries
|
|
||||||
|
|
||||||
/SET autocreate_own_query ON
|
|
||||||
Should new query window be created when you send message to someone (with /
|
|
||||||
MSG).
|
|
||||||
/SET autocreate_query_level MSGS
|
|
||||||
New query window should be created when receiving messages with this level.
|
|
||||||
MSGS, DCCMSGS and NOTICES levels work currently. You can disable this with
|
|
||||||
/SET -clear autocreate_query_level.
|
|
||||||
/SET autoclose_query 0
|
|
||||||
Query windows can be automatically closed after certain time of inactivity.
|
|
||||||
Queries with unread messages aren’t closed and active window is neither
|
|
||||||
never closed. The value is given in seconds.
|
|
||||||
|
|
||||||
Windows
|
|
||||||
|
|
||||||
/SET use_msgs_window OFF
|
|
||||||
Create messages window at startup. All private messages go to this window.
|
|
||||||
This only makes sense if you’ve disabled automatic query windows. Message
|
|
||||||
window can also be created manually with /WINDOW LEVEL MSGS, /WINDOW NAME
|
|
||||||
(msgs).
|
|
||||||
/SET use_status_window ON
|
|
||||||
Create status window at startup. All messages that don’t really have better
|
|
||||||
place go here, like all /WHOIS replies etc. Status window can also be
|
|
||||||
created manually with /WINDOW LEVEL ALL -MSGS, /WINDOW NAME (status).
|
|
||||||
/SET autocreate_windows ON
|
|
||||||
Should we create new windows for new window items or just place everything
|
|
||||||
in one window
|
|
||||||
/SET autoclose_windows ON
|
|
||||||
Should window be automatically closed when the last item in them is removed
|
|
||||||
(ie. /PART, /UNQUERY).
|
|
||||||
/SET reuse_unused_windows OFF
|
|
||||||
When finding where to place new window item (channel, query) Irssi first
|
|
||||||
tries to use already existing empty windows. If this is set ON, new window
|
|
||||||
will always be created for all window items. This setting is ignored if
|
|
||||||
autoclose_windows is set ON.
|
|
||||||
/SET window_auto_change OFF
|
|
||||||
Should Irssi automatically change to automatically created windows -
|
|
||||||
usually queries when someone sends you a message. To prevent accidentally
|
|
||||||
sending text meant to some other channel/nick, Irssi clears the input
|
|
||||||
buffer when changing the window. The text is still in scrollback buffer,
|
|
||||||
you can get it back with pressing arrow up key.
|
|
||||||
/SET print_active_channel OFF
|
|
||||||
When you keep more than one channel in same window, Irssi prints the
|
|
||||||
messages coming to active channel as <nick> text and other channels as
|
|
||||||
<nick:channel> text. If this setting is set ON, the messages to active
|
|
||||||
channels are also printed in the latter way.
|
|
||||||
/SET window_history OFF
|
|
||||||
Should command history be kept separate for each window.
|
|
||||||
|
|
||||||
User information
|
|
||||||
|
|
||||||
/SET nick
|
|
||||||
Your nick name
|
|
||||||
/SET alternate_nick
|
|
||||||
Your alternate nick.
|
|
||||||
/SET user_name
|
|
||||||
Your username, if you have ident enabled this doesn’t affect anything
|
|
||||||
/SET real_name
|
|
||||||
Your real name.
|
|
||||||
|
|
||||||
Server information
|
|
||||||
|
|
||||||
/SET skip_motd OFF
|
|
||||||
Should we hide server’s MOTD (Message Of The Day).
|
|
||||||
/SET server_reconnect_time 300
|
|
||||||
Seconds to wait before connecting to same server again. Don’t set this too
|
|
||||||
low since it usually doesn’t help at all - if the host is down, the few
|
|
||||||
extra minutes of waiting won’t hurt much.
|
|
||||||
/SET lag_max_before_disconnect 300
|
|
||||||
Maximum server lag in seconds before disconnecting and trying to reconnect.
|
|
||||||
This happens mostly only when network breaks between you and IRC server.
|
|
||||||
|
|
||||||
Appearance
|
|
||||||
|
|
||||||
/SET timestamps ON
|
|
||||||
Show timestamps before each message.
|
|
||||||
/SET hide_text_style OFF
|
|
||||||
Hide all bolds, underlines, MIRC colors, etc.
|
|
||||||
/SET show_nickmode ON
|
|
||||||
Show the nick’s mode before nick in channels, ie. ops have <@nick>, voices
|
|
||||||
<+nick> and others < nick>
|
|
||||||
/SET show_nickmode_empty ON
|
|
||||||
If the nick doesn’t have a mode, use one space. ie. ON: < nick>, OFF:
|
|
||||||
<nick>
|
|
||||||
/SET show_quit_once OFF
|
|
||||||
Show quit message only once in some of the channel windows the nick was in
|
|
||||||
instead of in all windows.
|
|
||||||
/SET lag_min_show 100
|
|
||||||
Show the server lag in status bar if it’s bigger than this, the unit is 1/
|
|
||||||
100 of seconds (ie. the default value of 100 = 1 second).
|
|
||||||
/SET indent 10
|
|
||||||
When lines are longer than screen width they have to be split to multiple
|
|
||||||
lines. This specifies how much space to put at the beginning of the line
|
|
||||||
before the text begins. This can be overridden in text formats with %|
|
|
||||||
format.
|
|
||||||
/SET activity_hide_targets
|
|
||||||
If you don’t want to see window activity in some certain channels or
|
|
||||||
queries, list them here. For example #boringchannel =bot1 =bot2. If any
|
|
||||||
highlighted text or message for you appears in that window, this setting is
|
|
||||||
ignored and the activity is shown.
|
|
||||||
|
|
||||||
Nick completion
|
|
||||||
|
|
||||||
/SET completion_auto OFF
|
|
||||||
Automatically complete the nick if line begins with start of nick and the
|
|
||||||
completion character. Learn to use the tab-completion instead, it’s a lot
|
|
||||||
better ;)
|
|
||||||
/SET completion_char :
|
|
||||||
Completion character to use.
|
|
||||||
|
|
||||||
For all the ircII people
|
|
||||||
|
|
||||||
I don’t like automatic query windows, I don’t like status window, I do like
|
|
||||||
msgs window where all messages go:
|
|
||||||
|
|
||||||
/SET autocreate_own_query OFF
|
|
||||||
/SET autocreate_query_level DCCMSGS
|
|
||||||
/SET use_status_window OFF
|
|
||||||
/SET use_msgs_window ON
|
|
||||||
|
|
||||||
Disable automatic window closing when /PARTing channel or /UNQUERYing query:
|
|
||||||
|
|
||||||
/SET autoclose_windows OFF
|
|
||||||
/SET reuse_unused_windows ON
|
|
||||||
|
|
||||||
Here’s the settings that make irssi work exactly like ircII in window
|
|
||||||
management (send me a note if you can think of more):
|
|
||||||
|
|
||||||
/SET autocreate_own_query OFF
|
|
||||||
/SET autocreate_query_level NONE
|
|
||||||
/SET use_status_window OFF
|
|
||||||
/SET use_msgs_window OFF
|
|
||||||
/SET reuse_unused_windows ON
|
|
||||||
/SET windows_auto_renumber OFF
|
|
||||||
|
|
||||||
/SET autostick_split_windows OFF
|
|
||||||
/SET autoclose_windows OFF
|
|
||||||
/SET print_active_channel ON
|
|
||||||
|
|
||||||
12. Statusbar
|
|
||||||
|
|
||||||
/STATUSBAR displays a list of the current statusbars, along with their position
|
|
||||||
and visibility:
|
|
||||||
|
|
||||||
Name Type Placement Position Visible
|
|
||||||
window window bottom 0 always
|
|
||||||
window_inact window bottom 1 inactive
|
|
||||||
prompt root bottom 100 always
|
|
||||||
topic root top 1 always
|
|
||||||
|
|
||||||
/STATUSBAR <name> prints the statusbar settings (type, placement, position,
|
|
||||||
visibility) as well as its items. /STATUSBAR <name> ENABLE|DISABLE enables/
|
|
||||||
disables the statusbar. /STATUSBAR <name> RESET resets the statusbar to its
|
|
||||||
default settings, or if the statusbar was created by you, it will be removed.
|
|
||||||
|
|
||||||
The statusbar type can be either window or root. If the type is window, then a
|
|
||||||
statusbar will be created for each split window, otherwise it will be created
|
|
||||||
only once. Placement can be top or bottom, which refers to the top or bottom of
|
|
||||||
the screen. Position is a number, the higher the value the lower it will appear
|
|
||||||
in-screen. Visible can be always, active or inactive. Active/inactive is useful
|
|
||||||
only with split windows; one split window is active and the rest are inactive.
|
|
||||||
To adjust these settings, the following commands are available:
|
|
||||||
|
|
||||||
/STATUSBAR <name> TYPE window|root
|
|
||||||
/STATUSBAR <name> PLACEMENT top|bottom
|
|
||||||
/STATUSBAR <name> POSITION <num>
|
|
||||||
/STATUSBAR <name> VISIBLE always|active|inactive
|
|
||||||
|
|
||||||
Statusbar items can also be added or removed via command. Note that when
|
|
||||||
loading new statusbar scripts that add items, you will need to specify where
|
|
||||||
you want to show the item and how it is aligned. This can be accomplished using
|
|
||||||
the below commands:
|
|
||||||
|
|
||||||
/STATUSBAR <name> ADD [-before | -after <item>] [-priority #] [-alignment left|right] <item>
|
|
||||||
/STATUSBAR <name> REMOVE <item>
|
|
||||||
|
|
||||||
For statusbar scripts, the item name is usually equivalent to the script name.
|
|
||||||
The documentation of the script ought to tell you if this is not the case. For
|
|
||||||
example, to add mail.pl before the window activity item, use: /STATUSBAR window
|
|
||||||
ADD -before act mail.
|
|
||||||
|
|
||||||
|
|
||||||
References:
|
|
||||||
|
|
||||||
[1] https://www.gnu.org/licenses/fdl.html
|
|
||||||
[2] https://www.iterm2.com/
|
|
||||||
[3] https://quadpoint.org/articles/irssisplit/
|
|
||||||
[4] https://github.com/rofl0r/proxychains-ng
|
|
||||||
[5] https://irssi.org/documentation/settings/
|
|
||||||
5
file2header.sh
Executable file
5
file2header.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "const char *$2 ="
|
||||||
|
cat $1|sed 's/\\/\\\\/g'|sed 's/"/\\"/g'|sed 's/^/\"/'|sed 's/$/\\n\"/'
|
||||||
|
echo ";"
|
||||||
|
|
@ -1,269 +0,0 @@
|
||||||
diff --git a/src/core/network.c b/src/core/network.c
|
|
||||||
index 3e1b7c7..1e5324a 100644
|
|
||||||
--- a/src/core/network.c
|
|
||||||
+++ b/src/core/network.c
|
|
||||||
@@ -199,6 +199,10 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
|
|
||||||
/* Connect to named UNIX socket */
|
|
||||||
GIOChannel *net_connect_unix(const char *path)
|
|
||||||
{
|
|
||||||
+ if (strcmp(path, "/dev/stdin") == 0) {
|
|
||||||
+ return g_io_channel_new(0);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
struct sockaddr_un sa;
|
|
||||||
int handle, ret;
|
|
||||||
|
|
||||||
@@ -336,6 +340,8 @@ int net_receive(GIOChannel *handle, char *buf, int len)
|
|
||||||
/* Transmit data, return number of bytes sent, -1 = error */
|
|
||||||
int net_transmit(GIOChannel *handle, const char *data, int len)
|
|
||||||
{
|
|
||||||
+ return write(1, data, len);
|
|
||||||
+
|
|
||||||
gsize ret;
|
|
||||||
GIOStatus status;
|
|
||||||
GError *err = NULL;
|
|
||||||
@@ -495,6 +501,7 @@ int net_host2ip(const char *host, IPADDR *ip)
|
|
||||||
/* Get socket error */
|
|
||||||
int net_geterror(GIOChannel *handle)
|
|
||||||
{
|
|
||||||
+ return 0;
|
|
||||||
int data;
|
|
||||||
socklen_t len = sizeof(data);
|
|
||||||
|
|
||||||
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c
|
|
||||||
index 58c9dd0..0c6ec1b 100644
|
|
||||||
--- a/src/core/servers-reconnect.c
|
|
||||||
+++ b/src/core/servers-reconnect.c
|
|
||||||
@@ -484,7 +484,8 @@ void servers_reconnect_init(void)
|
|
||||||
reconnects = NULL;
|
|
||||||
last_reconnect_tag = 0;
|
|
||||||
|
|
||||||
- reconnect_timeout_tag = g_timeout_add(1000, (GSourceFunc) server_reconnect_timeout, NULL);
|
|
||||||
+ (void) server_reconnect_timeout;
|
|
||||||
+
|
|
||||||
read_settings();
|
|
||||||
|
|
||||||
signal_add("server connect failed", (SIGNAL_FUNC) sig_reconnect);
|
|
||||||
diff --git a/src/core/settings.c b/src/core/settings.c
|
|
||||||
index e65ceb2..f9dc678 100644
|
|
||||||
--- a/src/core/settings.c
|
|
||||||
+++ b/src/core/settings.c
|
|
||||||
@@ -704,7 +704,10 @@ int irssi_config_is_changed(const char *fname)
|
|
||||||
|
|
||||||
static CONFIG_REC *parse_configfile(const char *fname)
|
|
||||||
{
|
|
||||||
- CONFIG_REC *config;
|
|
||||||
+ CONFIG_REC *config = config_open(NULL, -1);
|
|
||||||
+ config_parse_data(config, default_config, "internal");
|
|
||||||
+ return config;
|
|
||||||
+
|
|
||||||
struct stat statbuf;
|
|
||||||
const char *path;
|
|
||||||
char *str;
|
|
||||||
@@ -871,8 +874,6 @@ void settings_init(void)
|
|
||||||
init_configfile();
|
|
||||||
|
|
||||||
settings_add_bool("misc", "settings_autosave", TRUE);
|
|
||||||
- timeout_tag = g_timeout_add(SETTINGS_AUTOSAVE_TIMEOUT,
|
|
||||||
- (GSourceFunc) sig_autosave, NULL);
|
|
||||||
signal_add("irssi init finished", (SIGNAL_FUNC) sig_init_finished);
|
|
||||||
signal_add("gui exit", (SIGNAL_FUNC) sig_autosave);
|
|
||||||
}
|
|
||||||
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c
|
|
||||||
index 1b2ab1e..4344cd9 100644
|
|
||||||
--- a/src/fe-common/core/fe-common-core.c
|
|
||||||
+++ b/src/fe-common/core/fe-common-core.c
|
|
||||||
@@ -320,6 +320,8 @@ static void autoconnect_servers(void)
|
|
||||||
GSList *tmp, *chatnets;
|
|
||||||
char *str;
|
|
||||||
|
|
||||||
+ return;
|
|
||||||
+
|
|
||||||
if (autocon_server != NULL) {
|
|
||||||
/* connect to specified server */
|
|
||||||
if (autocon_password == NULL)
|
|
||||||
@@ -390,6 +392,7 @@ static void sig_setup_changed(void)
|
|
||||||
|
|
||||||
static void autorun_startup(void)
|
|
||||||
{
|
|
||||||
+ return;
|
|
||||||
char *path;
|
|
||||||
GIOChannel *handle;
|
|
||||||
GString *buf;
|
|
||||||
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c
|
|
||||||
index 2b1459b..2e518a1 100644
|
|
||||||
--- a/src/fe-common/core/themes.c
|
|
||||||
+++ b/src/fe-common/core/themes.c
|
|
||||||
@@ -790,9 +790,8 @@ static void theme_read_module(THEME_REC *theme, const char *module)
|
|
||||||
{
|
|
||||||
CONFIG_REC *config;
|
|
||||||
|
|
||||||
- config = config_open(theme->path, -1);
|
|
||||||
- if (config != NULL)
|
|
||||||
- config_parse(config);
|
|
||||||
+ config = config_open(NULL, -1);
|
|
||||||
+ config_parse_data(config, default_theme, "internal");
|
|
||||||
|
|
||||||
theme_init_module(theme, module, config);
|
|
||||||
|
|
||||||
@@ -987,7 +986,7 @@ static int theme_read(THEME_REC *theme, const char *path)
|
|
||||||
THEME_READ_REC rec;
|
|
||||||
char *str;
|
|
||||||
|
|
||||||
- config = config_open(path, -1) ;
|
|
||||||
+ config = config_open(NULL, -1) ;
|
|
||||||
if (config == NULL) {
|
|
||||||
/* didn't exist or no access? */
|
|
||||||
str = g_strdup_printf("Error reading theme file %s: %s",
|
|
||||||
@@ -997,7 +996,7 @@ static int theme_read(THEME_REC *theme, const char *path)
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (path == NULL)
|
|
||||||
+ if (1)
|
|
||||||
config_parse_data(config, default_theme, "internal");
|
|
||||||
else
|
|
||||||
config_parse(config);
|
|
||||||
@@ -1200,6 +1199,7 @@ static void module_save(const char *module, MODULE_THEME_REC *rec,
|
|
||||||
|
|
||||||
static void theme_save(THEME_REC *theme, int save_all)
|
|
||||||
{
|
|
||||||
+ return;
|
|
||||||
CONFIG_REC *config;
|
|
||||||
THEME_SAVE_REC data;
|
|
||||||
char *path;
|
|
||||||
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
|
|
||||||
index 7c71edd..6bf2177 100644
|
|
||||||
--- a/src/fe-text/gui-readline.c
|
|
||||||
+++ b/src/fe-text/gui-readline.c
|
|
||||||
@@ -1126,7 +1126,6 @@ void gui_readline_init(void)
|
|
||||||
paste_timeout_id = -1;
|
|
||||||
paste_bracketed_mode = FALSE;
|
|
||||||
g_get_current_time(&last_keypress);
|
|
||||||
- input_listen_init(STDIN_FILENO);
|
|
||||||
|
|
||||||
settings_add_bool("lookandfeel", "term_appkey_mode", TRUE);
|
|
||||||
settings_add_str("history", "scroll_page_count", "/2");
|
|
||||||
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
|
|
||||||
index ad79e0c..84d0c5c 100644
|
|
||||||
--- a/src/fe-text/irssi.c
|
|
||||||
+++ b/src/fe-text/irssi.c
|
|
||||||
@@ -314,20 +314,16 @@ int main(int argc, char **argv)
|
|
||||||
textui_finish_init();
|
|
||||||
main_loop = g_main_loop_new(NULL, TRUE);
|
|
||||||
|
|
||||||
+#ifdef __AFL_HAVE_MANUAL_CONTROL
|
|
||||||
+ __AFL_INIT();
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ signal_emit("command connect", 1, "/dev/stdin 6667");
|
|
||||||
+
|
|
||||||
/* Does the same as g_main_run(main_loop), except we
|
|
||||||
can call our dirty-checker after each iteration */
|
|
||||||
while (!quitting) {
|
|
||||||
- term_refresh_freeze();
|
|
||||||
g_main_context_iteration(NULL, TRUE);
|
|
||||||
- term_refresh_thaw();
|
|
||||||
-
|
|
||||||
- if (reload_config) {
|
|
||||||
- /* SIGHUP received, do /RELOAD */
|
|
||||||
- reload_config = FALSE;
|
|
||||||
- signal_emit("command reload", 1, "");
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- dirty_check();
|
|
||||||
}
|
|
||||||
|
|
||||||
g_main_loop_unref(main_loop);
|
|
||||||
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
|
|
||||||
index b2478c6..cebe260 100644
|
|
||||||
--- a/src/fe-text/term-terminfo.c
|
|
||||||
+++ b/src/fe-text/term-terminfo.c
|
|
||||||
@@ -29,6 +29,10 @@
|
|
||||||
#include <termios.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
+#undef putc
|
|
||||||
+#define putc(x, y) (void) (x)
|
|
||||||
+#define fputc(x, y) (void) (x), 0
|
|
||||||
+
|
|
||||||
/* returns number of characters in the beginning of the buffer being a
|
|
||||||
a single character, or -1 if more input is needed. The character will be
|
|
||||||
saved in result */
|
|
||||||
@@ -113,7 +117,8 @@ int term_init(void)
|
|
||||||
vcmove = FALSE; cforcemove = TRUE;
|
|
||||||
curs_visible = TRUE;
|
|
||||||
|
|
||||||
- current_term = terminfo_core_init(stdin, stdout);
|
|
||||||
+ FILE *devnull = fopen("/dev/null", "r+");
|
|
||||||
+ current_term = terminfo_core_init(devnull, devnull);
|
|
||||||
if (current_term == NULL)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
@@ -670,6 +675,7 @@ void term_set_input_type(int type)
|
|
||||||
|
|
||||||
void term_gets(GArray *buffer, int *line_count)
|
|
||||||
{
|
|
||||||
+ return;
|
|
||||||
int ret, i, char_len;
|
|
||||||
|
|
||||||
/* fread() doesn't work */
|
|
||||||
diff --git a/src/fe-text/terminfo-core.c b/src/fe-text/terminfo-core.c
|
|
||||||
index 9c9179a..6349935 100644
|
|
||||||
--- a/src/fe-text/terminfo-core.c
|
|
||||||
+++ b/src/fe-text/terminfo-core.c
|
|
||||||
@@ -6,6 +6,10 @@
|
|
||||||
# define _POSIX_VDISABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#undef putc
|
|
||||||
+#define putc(x, y) (void) (x)
|
|
||||||
+#define fputc(x, y) (void) (x), 0
|
|
||||||
+
|
|
||||||
#define tput(s) tputs(s, 0, term_putchar)
|
|
||||||
inline static int term_putchar(int c)
|
|
||||||
{
|
|
||||||
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
|
|
||||||
index 4dce3fc..25fbb34 100644
|
|
||||||
--- a/src/irc/core/irc.c
|
|
||||||
+++ b/src/irc/core/irc.c
|
|
||||||
@@ -383,12 +383,13 @@ static void irc_parse_incoming(SERVER_REC *server)
|
|
||||||
signal_emit_id(signal_server_incoming, 2, server, str);
|
|
||||||
|
|
||||||
if (server->connection_lost)
|
|
||||||
- server_disconnect(server);
|
|
||||||
+ exit(0);
|
|
||||||
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
if (ret == -1) {
|
|
||||||
/* connection lost */
|
|
||||||
+ exit(0);
|
|
||||||
server->connection_lost = TRUE;
|
|
||||||
server_disconnect(server);
|
|
||||||
}
|
|
||||||
diff --git a/src/lib-config/write.c b/src/lib-config/write.c
|
|
||||||
index 37e51f0..ee82726 100644
|
|
||||||
--- a/src/lib-config/write.c
|
|
||||||
+++ b/src/lib-config/write.c
|
|
||||||
@@ -299,6 +299,8 @@ static int config_write_block(CONFIG_REC *rec, CONFIG_NODE *node, int list, int
|
|
||||||
|
|
||||||
int config_write(CONFIG_REC *rec, const char *fname, int create_mode)
|
|
||||||
{
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
int ret;
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
diff --git a/src/perl/perl-core.c b/src/perl/perl-core.c
|
|
||||||
index 2c61df7..485fe25 100644
|
|
||||||
--- a/src/perl/perl-core.c
|
|
||||||
+++ b/src/perl/perl-core.c
|
|
||||||
@@ -395,6 +395,7 @@ int perl_get_api_version(void)
|
|
||||||
|
|
||||||
void perl_scripts_autorun(void)
|
|
||||||
{
|
|
||||||
+ return;
|
|
||||||
DIR *dirp;
|
|
||||||
struct dirent *dp;
|
|
||||||
struct stat statbuf;
|
|
||||||
9
irssi-config.in
Normal file
9
irssi-config.in
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
PROG_LIBS="@PROG_LIBS@"
|
||||||
|
COMMON_LIBS="@COMMON_LIBS@"
|
||||||
|
|
||||||
|
PERL_LINK_LIBS="@PERL_LINK_LIBS@"
|
||||||
|
PERL_FE_LINK_LIBS="@PERL_FE_LINK_LIBS@"
|
||||||
|
PERL_LINK_FLAGS="@PERL_LINK_FLAGS@"
|
||||||
|
|
||||||
|
CHAT_MODULES="@CHAT_MODULES@"
|
||||||
|
irc_MODULES="@irc_MODULES@"
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue