1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Compare commits

..

55 Commits

Author SHA1 Message Date
Sébastien Helleu f4e075f213 Version 4.4.5-dev 2024-11-30 09:06:34 +01:00
Sébastien Helleu 89afeb5aa2 Version 4.4.4 2024-11-30 09:03:02 +01:00
Sébastien Helleu a4fd1df891 debian: update changelog 2024-11-30 08:52:21 +01:00
Sébastien Helleu bff4ab7808 ci: fix macOS CI
This is a workaround for https://github.com/actions/runner-images/issues/10984
2024-11-26 07:44:03 +01:00
Sébastien Helleu ef1b6a27f1 core: update ChangeLog (issue #2214, issue #2215) 2024-11-26 07:44:03 +01:00
Trygve Aaberge e6cdd40056 script: don't try to display the old line if it's NULL
This fixes a crash which would happen if you scrolled the script buffer
and then did a search which got fewer search results than the index of
the selected line before the search. E.g. press page down to go to the
second page and then search for `test`.
2024-11-26 07:44:03 +01:00
Sébastien Helleu e0b01d3628 perl: add midding #define of __USE_XOPEN to call wcwidth defined in wchar.h 2024-11-26 07:44:03 +01:00
Sébastien Helleu 3fce54e0ca core: update ChangeLog (issue #2213) 2024-11-25 21:28:48 +01:00
Trygve Aaberge fb7a84589d perl: only set Perl locale if the locale is broken
It turns out that Debian has reverted the commit in Perl that broke the
locale in their 5.38 branch, so it did not have the issue. However, the
workaround we added to fix the locale apparently makes the version
Debian/Ubuntu has crash on perl_destruct. I'm not sure why it makes it
crash, but since it doesn't crash on newer Perl versions, I'm assuming
that it's another bug with the locale handling in that Perl version.

To avoid the crash, make sure to only set the locale if we detect that
it has been broken by Perl. We do this by checking if the value returned
by wcwidth (160) (the first non-ascii printable character) has changed.
If this value is not the same after the call to perl_construct, the
locale has been broken.

I moved the call to Perl_setlocale to right after perl_construct, as the
call to perl_construct is what breaks the locale.
2024-11-25 21:27:42 +01:00
Sébastien Helleu c7017f2fce core: update ChangeLog (issue #2209) 2024-11-24 16:25:28 +01:00
Trygve Aaberge a8c1725566 Fix crash when unloading Perl scripts with Perl 5.38
Apparently the issue with the locale being reset with Perl 5.38 can
cause a crash when unloading the scripts on some systems (at least
Ubuntu 24.04). There was a workaround added in commit f4b9cad72, but it
doesn't work to avoid the crash. However if we set LC_ALL instead of
LC_CTYPE the crash doesn't occur.

Fixes #2187
2024-11-24 16:25:09 +01:00
Sébastien Helleu f8c7ed65e6 build: remove our own Ruby detection and rely on CMake detection, require CMake 3.18 (issue #1156)
This fixes the detection of Ruby on macOS 14.
2024-11-05 11:12:28 +01:00
Sébastien Helleu 712227da38 ci: switch from macOS 12 to 14 2024-11-05 10:19:23 +01:00
LuK1337 c079852deb tests: migrate away from removed ast features
See https://github.com/python/cpython/pull/119563.
2024-11-04 18:49:13 +01:00
Sébastien Helleu aab657bcfd core: remove use of arraylist in function gui_buffer_merge 2024-11-04 18:40:29 +01:00
Sébastien Helleu aa2153827e core: send signal "buffer_moved" only when the buffer number changes (issue #2097) 2024-11-04 18:40:27 +01:00
Sébastien Helleu f9660feb94 core: fix too many sorts of hotlist when buffers are moved (issue #2097)
A performance issue was happening when buffers are moved to another position
and when the hotlist contains a lot of buffers: each time a signal
"buffer_moved" is sent, the hotlist is sorted again.

This fix delays the resort of hotlist after all the moves are done using a
timer with a very small delay (one millisecond).
2024-11-03 23:42:23 +01:00
Sébastien Helleu 5ab0ff656f relay, xfer: fix letters with actions displayed on top of buffer
Since WeeChat 4.0.0, the actions are now case sensitive and must be typed as
lower case.

This fixes the help line displayed on top of relay and xfer buffers: letters
for actions are now displayed with lower case instead of upper case.
2024-10-31 20:38:39 +01:00
Sébastien Helleu 53aa046476 build: add a retry build mechanism on make in Debian packaging
When the environment variable `RETRY_BUILD` is set to `1`, the file
`debian/rules` is patched to run `dh_auto_build` multiple times, until the
build succeeds.

This is a workaround for an issue with the build in an arm64 chroot, where the
compiler randomly segfaults.
2024-10-30 14:10:51 +01:00
Sébastien Helleu c51be0a6a8 Version 4.4.4-dev 2024-10-30 12:44:58 +01:00
Sébastien Helleu eb446f099d Version 4.4.3 2024-10-30 12:13:22 +01:00
Sébastien Helleu 4edbbddf2c build: fix check of WeeChat git repository
The `.git` directory can also be a regular file in a git worktree.
2024-10-30 08:00:00 +01:00
Sébastien Helleu 276990699a debian: update changelog 2024-10-30 07:47:22 +01:00
Sébastien Helleu 8dc7bb409d doc: replace font-awesome icons by translated captions
This removes use of a remote CDN (Cloudflare), as font-awesome is no longer
used.
2024-10-30 07:47:16 +01:00
Sébastien Helleu 410ffb2418 debian: bump Standards-Version to 4.7.0 2024-10-30 07:47:07 +01:00
Sébastien Helleu 1ba3e3530b debian: add file CHANGELOG.md in weechat-core.docs 2024-10-30 07:47:04 +01:00
Sébastien Helleu 36332d11c8 doc: rename git branch master to main in URLs 2024-10-16 20:39:15 +02:00
Sébastien Helleu 53da9df883 tests: fix URL to Python unparser 2024-10-16 20:38:03 +02:00
Sébastien Helleu 956befb655 core: always send the signal "buffer_switch", even when the buffer is opening (issue #2198) 2024-10-06 21:00:50 +02:00
Sébastien Helleu 03bd118854 core: remove extra parenthesis in ChangeLog 2024-10-05 14:08:18 +02:00
Sébastien Helleu 57224f4cee irc: fix crash on /list buffer when a filter is set (issue #2197) 2024-10-05 09:17:55 +02:00
Sébastien Helleu 39ea49b9c5 core: set max version for Curl symbol CURLAUTH_NTLM_WB 2024-09-25 21:13:48 +02:00
Sébastien Helleu ccc45c9284 core: add CVE id in ChangeLog 2024-09-25 20:41:20 +02:00
Sébastien Helleu 639c05dd36 core: update ChangeLog (issue #2180) 2024-09-10 07:27:44 +02:00
Fredrik Fornwall f9eb31d517 core: Fix build on Android to define htobe64 2024-09-10 07:26:52 +02:00
Sébastien Helleu bcd3594b38 Version 4.4.3-dev 2024-09-08 11:56:54 +02:00
Sébastien Helleu 26da6bda4d Version 4.4.2 2024-09-08 11:49:21 +02:00
Sébastien Helleu 1abeb71603 core: update ChangeLog (issue #2178) 2024-09-07 10:54:01 +02:00
Sébastien Helleu 172d383fd1 trigger: fix integer overflow in loop (issue #2178) 2024-09-07 10:53:01 +02:00
Sébastien Helleu de30a87a21 relay: fix integer overflow in loops (issue #2178) 2024-09-07 10:52:59 +02:00
Sébastien Helleu 70cd508cf0 irc: fix integer overflow in loops (issue #2178) 2024-09-07 10:52:57 +02:00
Sébastien Helleu 0973fe0ad4 core: fix integer overflow in loops (issue #2178) 2024-09-07 10:52:54 +02:00
Yiheng Cao db65071db5 core: fix integer overflow in string_free_split functions (issue #2178) 2024-09-07 10:52:52 +02:00
Sébastien Helleu 90ba9264de tests: add tests on function string_rebuild_split_string with empty items 2024-09-07 10:52:48 +02:00
Sébastien Helleu 82a425d226 core, plugins: add missing parentheses when dereferencing a pointer with an array index 2024-09-07 10:52:39 +02:00
Sébastien Helleu af2b48c69e core: fix typo in French translation 2024-09-07 10:51:41 +02:00
Sébastien Helleu 8dfd54ae3d doc/faq: fix suggested value for option irc.server.xxx.tls_priorities 2024-09-07 09:18:54 +02:00
Sébastien Helleu aeb973fdbe doc: fix color of text with syntax highlighting and light theme 2024-09-07 09:17:57 +02:00
Sébastien Helleu 677efe8184 build: replace deprecated "DEPEND" by "BUILD_REQUIRES" in Cygwin packaging 2024-09-07 09:17:02 +02:00
Sébastien Helleu 9b30137dd4 build: add license in Cygwin packaging 2024-09-07 09:16:57 +02:00
Sébastien Helleu 230c637565 Version 4.4.2-dev 2024-08-19 20:00:40 +02:00
Sébastien Helleu e3c76cd7e6 Version 4.4.1 2024-08-19 19:57:29 +02:00
LuK1337 4f45828fd6 cmake: find 'lua' first
On Fedora, `lua` is an up to date package.
2024-08-17 11:29:00 +02:00
LuK1337 25809ff592 lua: fix broken LUA_VERSION check
/usr/include/lua-5.1/lua.h:19:25: error: token ""Lua 5.1"" is not valid
in preprocessor expressions
2024-08-17 10:10:53 +02:00
Sébastien Helleu 1d620ce7c7 Version 4.4.1-dev 2024-08-17 09:22:19 +02:00
253 changed files with 21030 additions and 24098 deletions
-25
View File
@@ -1,25 +0,0 @@
# To use this config on you editor, follow the instructions at:
# https://editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
indent_size = 4
indent_style = space
tab_width = 8
trim_trailing_whitespace = true
[{*.{c,cpp,h}}]
max_line_length = 80
[{CMakeLists.txt,*.cmake}]
max_line_length = 80
indent_size = 2
[*.html]
indent_size = 2
[*.yml]
indent_size = 2
+1 -1
View File
@@ -87,7 +87,7 @@ body:
attributes: attributes:
label: What OS/distribution are you using? label: What OS/distribution are you using?
description: Name of the operating system and its version. description: Name of the operating system and its version.
placeholder: Debian 12, Ubuntu 24.04, macOS 14, ... placeholder: Debian 12, Ubuntu 24.04, MacOS 14, ...
validations: validations:
required: true required: true
-2
View File
@@ -10,8 +10,6 @@ body:
- please read the [FAQ](https://weechat.org/doc/weechat/faq) and [documentation](https://weechat.org/doc/weechat/) - please read the [FAQ](https://weechat.org/doc/weechat/faq) and [documentation](https://weechat.org/doc/weechat/)
- please ask on #weechat channel (on server irc.libera.chat). - please ask on #weechat channel (on server irc.libera.chat).
**IMPORTANT**: please do not report any security issue here, see [CONTRIBUTING.md](https://github.com/weechat/weechat/blob/main/CONTRIBUTING.md#security-reports).
- type: textarea - type: textarea
id: question id: question
attributes: attributes:
+89 -226
View File
@@ -7,9 +7,8 @@ on:
- cron: '22 9 * * 2' - cron: '22 9 * * 2'
env: env:
WEECHAT_DEPS_UBUNTU: >- WEECHAT_DEPENDENCIES: >-
asciidoctor asciidoctor
build-essential
cmake cmake
curl curl
devscripts devscripts
@@ -34,75 +33,24 @@ env:
libzstd-dev libzstd-dev
ninja-build ninja-build
php-dev php-dev
pipx
pkgconf pkgconf
pylint pylint
python3-bandit python3-bandit
python3-dev python3-dev
python3-pip
ruby-pygments.rb ruby-pygments.rb
shellcheck shellcheck
tcl8.6-dev tcl8.6-dev
zlib1g-dev zlib1g-dev
WEECHAT_DEPS_ROCKYLINUX: >-
asciidoctor
aspell-devel
cjson-devel
clang
cmake
cpputest-devel
gcc
gettext
glibc-langpack-en
gnutls-devel
guile30-devel
libcurl-devel
libgcrypt-devel
libzstd-devel
lua-devel
ncurses-devel
perl-devel
php-devel
php-embedded
python-devel
ruby-devel
sudo
tcl-devel
zlib-devel
WEECHAT_DEPS_FREEBSD: >-
aspell
cmake
cpputest
curl
gcc
gettext
git
gnutls
guile3
libargon2
libcjson
libgcrypt
libiconv
llvm
lua54
ncurses
perl5
php83
pkgconf
python3
ruby
rubygem-asciidoctor
sudo
tcl87
zstd
jobs: jobs:
tests_ubuntu: tests_linux:
strategy: strategy:
matrix: matrix:
os: os:
- ubuntu-24.04 - ubuntu-22.04
config: config:
- { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" } - { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
- { name: "gcc_ninja", cc: "gcc", cxx: "g++", buildargs: "-G Ninja" } - { name: "gcc_ninja", cc: "gcc", cxx: "g++", buildargs: "-G Ninja" }
@@ -112,20 +60,20 @@ jobs:
- { name: "gcc_coverage", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CODE_COVERAGE=ON" } - { name: "gcc_coverage", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CODE_COVERAGE=ON" }
- { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" } - { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
name: "${{ matrix.os }} (${{ matrix.config.name }})" name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }} sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
# uninstall php imagick as is causes a crash when loading php plugin (see #2009) # uninstall php imagick as is causes a crash when loading php plugin (see #2009)
sudo apt-get --yes purge php8.3-imagick sudo apt-get --yes purge php8.1-imagick
pipx install msgcheck sudo -H pip3 install --ignore-installed msgcheck
- name: Check gettext files - name: Check gettext files
run: msgcheck po/*.po run: msgcheck po/*.po
@@ -163,7 +111,7 @@ jobs:
env: env:
RELAY_PASSWORD: test RELAY_PASSWORD: test
run: | run: |
pipx install schemathesis sudo -H pip3 install --ignore-installed schemathesis
weechat-headless \ weechat-headless \
--dir /tmp/weechat-test-api \ --dir /tmp/weechat-test-api \
--run-command '/set relay.network.password "${{ env.RELAY_PASSWORD }}"' \ --run-command '/set relay.network.password "${{ env.RELAY_PASSWORD }}"' \
@@ -185,167 +133,6 @@ jobs:
lcov --list coverage.info lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error' bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error'
build_debian:
strategy:
matrix:
os:
- ubuntu-24.04
name: "${{ matrix.os }} (build Debian)"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }}
- name: Test Debian patches
run: ./tools/build_debian.sh test-patches
- name: Build Debian packages
run: ./tools/build_debian.sh devel ubuntu/noble
- name: Install Debian packages
run: sudo dpkg -i ../weechat-devel*.deb
- name: Run WeeChat
env:
TERM: xterm-256color
run: |
weechat --help
weechat-curses --help
weechat --version
weechat --build-info
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
codeql-analysis:
strategy:
matrix:
os:
- ubuntu-24.04
name: "${{ matrix.os }} (CodeQL)"
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }}
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
sudo apt-get --yes purge php8.3-imagick
pipx install msgcheck
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
tests_rockylinux:
strategy:
matrix:
os:
- ubuntu-24.04
config:
- { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
- { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
name: "rockylinux-9 (${{ matrix.config.name }})"
runs-on: ${{ matrix.os }}
container:
image: rockylinux:9
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
dnf install -y epel-release
dnf config-manager --set-enabled crb
dnf install -y ${{ env.WEECHAT_DEPS_ROCKYLINUX }}
- name: Build and run tests
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
BUILDARGS: ${{ matrix.config.buildargs }}
run: ./tools/build_test.sh
- name: Run WeeChat
env:
TERM: xterm-256color
run: |
weechat --help
weechat-curses --help
weechat --version
weechat --build-info
weechat --colors
weechat --license
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
tests_freebsd:
strategy:
matrix:
os:
- ubuntu-24.04
config:
# - { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
- { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
name: "freebsd-14 (${{ matrix.config.name }})"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies, build and run tests, run WeeChat
uses: vmactions/freebsd-vm@v1
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
BUILDARGS: ${{ matrix.config.buildargs }}
TERM: xterm-256color
with:
envs: "CC CXX BUILDARGS TERM"
usesh: true
prepare: pkg install -y ${{ env.WEECHAT_DEPS_FREEBSD }}
run: |
./tools/build_test.sh
weechat --help
weechat-curses --help
weechat --version
weechat --build-info
weechat --colors
weechat --license
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
tests_macos: tests_macos:
strategy: strategy:
@@ -356,7 +143,7 @@ jobs:
- { name: "gcc", cc: "gcc", cxx: "g++" } - { name: "gcc", cc: "gcc", cxx: "g++" }
- { name: "clang", cc: "clang", cxx: "clang++" } - { name: "clang", cc: "clang", cxx: "clang++" }
name: "${{ matrix.os }} (${{ matrix.config.name }})" name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@@ -381,9 +168,11 @@ jobs:
/usr/local/bin/python3.11 \ /usr/local/bin/python3.11 \
/usr/local/bin/python3.11-config \ /usr/local/bin/python3.11-config \
; ;
brew install asciidoctor aspell cjson guile lua pkg-config ruby # workaround for https://github.com/actions/runner-images/issues/10984
brew uninstall --ignore-dependencies --force pkg-config@0.29.2
brew install asciidoctor aspell cjson guile lua ruby
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Build - name: Build
env: env:
@@ -406,3 +195,77 @@ jobs:
weechat --colors weechat --colors
weechat --license weechat --license
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit" weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
build_debian:
strategy:
matrix:
os:
- ubuntu-22.04
name: "Build Debian on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
- name: Test Debian patches
run: ./tools/build_debian.sh test-patches
- name: Build Debian packages
run: ./tools/build_debian.sh devel ubuntu/jammy
- name: Install Debian packages
run: sudo dpkg -i ../weechat-devel*.deb
- name: Run WeeChat
env:
TERM: xterm-256color
run: |
weechat --help
weechat-curses --help
weechat --version
weechat --build-info
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
codeql-analysis:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
sudo apt-get --yes purge php8.1-imagick
sudo -H pip3 install --ignore-installed msgcheck
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
-4
View File
@@ -39,7 +39,6 @@ Alphabetically:
- Elizabeth Myers (Elizacat) - Elizabeth Myers (Elizacat)
- Elián Hanisch (m4v) - Elián Hanisch (m4v)
- Emanuele Giaquinta - Emanuele Giaquinta
- Emil Velikov
- Emir Sarı - Emir Sarı
- emk - emk
- Érico Nogueira - Érico Nogueira
@@ -56,7 +55,6 @@ Alphabetically:
- Ivan Pešić - Ivan Pešić
- Ivan Sichmann Freitas - Ivan Sichmann Freitas
- Jakub Jirutka - Jakub Jirutka
- James C. Morey
- Jan Palus - Jan Palus
- Jason A. Donenfeld (zx2c4) - Jason A. Donenfeld (zx2c4)
- JD Horelick (jdhore) - JD Horelick (jdhore)
@@ -69,7 +67,6 @@ Alphabetically:
- Joram Schrijver - Joram Schrijver
- Jos Ahrens - Jos Ahrens
- Joseph Kichline - Joseph Kichline
- Josh Soref
- Juan Francisco Cantero Hurtado - Juan Francisco Cantero Hurtado
- Julien Louis (ptitlouis) - Julien Louis (ptitlouis)
- Karthik K - Karthik K
@@ -156,7 +153,6 @@ Alphabetically:
- Wojciech Kwolek - Wojciech Kwolek
- W. Trevor King - W. Trevor King
- Yannick Palanque - Yannick Palanque
- Yiheng Cao
- ZethJack - ZethJack
- Ørjan Malde - Ørjan Malde
+25 -91
View File
@@ -1,71 +1,5 @@
# WeeChat ChangeLog # WeeChat ChangeLog
## Version 4.5.3 (under dev)
### Fixed
- core: save configuration files as UTF-8 when the locale is wrong
## Version 4.5.2 (2025-02-20)
### Fixed
- core: fix build with gcc 15 ([#2229](https://github.com/weechat/weechat/issues/2229), [#2230](https://github.com/weechat/weechat/issues/2230))
## Version 4.5.1 (2024-12-23)
### Fixed
- relay: fix crash after `/upgrade` when relay clients are connected
- api: fix creation of empty buffer in function infolist_new_var_buffer
- core: fix detection of dl library ([#2218](https://github.com/weechat/weechat/issues/2218))
- logger: fix path displayed when the logs directory can not be created
- perl: fix build with Perl < 5.7.29 ([#2219](https://github.com/weechat/weechat/issues/2219), [#2220](https://github.com/weechat/weechat/issues/2220))
## Version 4.5.0 (2024-12-15)
### Changed
- api: return the buffer input callback return code in functions command and command_options
- api: add special value `-` (hyphen-minus) in options of function command_options to prevent execution of commands
- api: add property `hotlist_conditions` in function buffer_set
- api: add support of flags in functions hook_signal_send and hook_hsignal_send
- relay/api: allow array with multiple requests in websocket frame received from client
- relay/api: support passing authentication in sub protocol header ([#2205](https://github.com/weechat/weechat/issues/2205))
- relay/api: combine request headers with the same name ([#2206](https://github.com/weechat/weechat/issues/2206))
- core, plugins: simplify help on parameters that can be repeated in commands
- core: add optional hook types in command `/debug hooks`
- php: add detection of PHP 8.3 and 8.4
- ruby: fix detection of Ruby on macOS 14, require CMake ≥ 3.18 ([#1156](https://github.com/weechat/weechat/issues/1156))
- build: require Curl ≥ 7.47.0 ([#2195](https://github.com/weechat/weechat/issues/2195))
- build: require GnuTLS ≥ 3.3.0 ([#2193](https://github.com/weechat/weechat/issues/2193))
### Added
- relay: display connection status in input prompt of remote buffers, if not connected or if fetching data from remote
- irc: add option irc.look.notice_nicks_disable_notify
- irc: add infos "irc_ptr_server", "irc_ptr_channel" and "irc_ptr_nick"
### Fixed
- core, plugins: fix integer overflow in loops ([#2178](https://github.com/weechat/weechat/issues/2178), [CVE-2024-46613](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-46613))
- irc: decode IRC colors only when displaying messages in buffer, store nick info with IRC colors (host, account, real name)
- irc: do not strip trailing spaces from incoming IRC messages
- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197))
- script: fix crash on /script buffer when a filter is set ([#2214](https://github.com/weechat/weechat/issues/2214), [#2215](https://github.com/weechat/weechat/issues/2215))
- exec: fix unexpected execution of command with `/exec -o` when the command starts with two command chars ([#2199](https://github.com/weechat/weechat/issues/2199))
- relay/api: fix empty nicklist in remote buffers after connection or reconnection
- relay/api: reply HTTP 400 (Bad Request) when the body received is not a dict in websocket data
- core: fix too many sorts of hotlist when buffers are moved ([#2097](https://github.com/weechat/weechat/issues/2097))
- core: always send the signal "buffer_switch", even when the buffer is opening ([#2198](https://github.com/weechat/weechat/issues/2198))
- core, plugins: abort upgrade immediately if any upgrade file fails to be written
- core: reload all plugins with command `/plugin reload *`
- relay, xfer: fix letters with actions displayed on top of buffer
- perl: fix crash when unloading Perl scripts with Perl 5.38 ([#2209](https://github.com/weechat/weechat/issues/2209), [#2213](https://github.com/weechat/weechat/issues/2213))
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
- core: fix build on Darwin ([#2216](https://github.com/weechat/weechat/issues/2216))
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
## Version 4.4.4 (2024-11-30) ## Version 4.4.4 (2024-11-30)
### Fixed ### Fixed
@@ -179,7 +113,7 @@
- relay/api: disconnect cleanly when the remote is quitting ([#2168](https://github.com/weechat/weechat/issues/2168)) - relay/api: disconnect cleanly when the remote is quitting ([#2168](https://github.com/weechat/weechat/issues/2168))
- relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549)) - relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549))
- relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549)) - relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549))
- spell: improve error displayed when a word cannot be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144)) - spell: improve error displayed when a word can not be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144))
- core: fix completion of command `/item refresh` - core: fix completion of command `/item refresh`
- lua: remote string "Lua" from Lua version in output of `/debug libs` - lua: remote string "Lua" from Lua version in output of `/debug libs`
- core: fix detection of libgcrypt ≥ 1.11 ([debian #1071960](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071960)) - core: fix detection of libgcrypt ≥ 1.11 ([debian #1071960](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071960))
@@ -275,7 +209,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: display a specific message when the value of option is unchanged after `/set` command - core: display a specific message when the value of option is unchanged after `/set` command
- core: add variable `${highlight}` in option weechat.look.buffer_time_format ([#2079](https://github.com/weechat/weechat/issues/2079)) - core: add variable `${highlight}` in option weechat.look.buffer_time_format ([#2079](https://github.com/weechat/weechat/issues/2079))
- core: reintroduce help on the variables and operators in `/help eval` ([#2005](https://github.com/weechat/weechat/issues/2005)) - core: reintroduce help on the variables and operators in `/help eval` ([#2005](https://github.com/weechat/weechat/issues/2005))
- core: allow case-insensitive search of partial buffer name with `(?i)name` in command `/buffer` - core: allow case insensitive search of partial buffer name with `(?i)name` in command `/buffer`
- core: use function util_strftimeval in evaluation of expression `date:xxx` - core: use function util_strftimeval in evaluation of expression `date:xxx`
- fset: allow filename starting with "~" in command `/fset -export` - fset: allow filename starting with "~" in command `/fset -export`
- irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer - irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer
@@ -424,7 +358,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- irc: display messages 730/731 (monitored nicks online/offline) even if command `/notify` was not used ([#2049](https://github.com/weechat/weechat/issues/2049)) - irc: display messages 730/731 (monitored nicks online/offline) even if command `/notify` was not used ([#2049](https://github.com/weechat/weechat/issues/2049))
- irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued - irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued
- irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time") - irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time")
- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) - irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
- relay: close properly connection with the IRC client in case of server disconnection ([#2038](https://github.com/weechat/weechat/issues/2038)) - relay: close properly connection with the IRC client in case of server disconnection ([#2038](https://github.com/weechat/weechat/issues/2038))
- ruby: fix use of NULL variable when displaying exception - ruby: fix use of NULL variable when displaying exception
@@ -470,7 +404,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: fix crash when a custom bar item name is already used by a default bar item ([#2034](https://github.com/weechat/weechat/issues/2034)) - core: fix crash when a custom bar item name is already used by a default bar item ([#2034](https://github.com/weechat/weechat/issues/2034))
- core: fix random timeouts when a lot of concurrent processes are launched with hook_process ([#2033](https://github.com/weechat/weechat/issues/2033)) - core: fix random timeouts when a lot of concurrent processes are launched with hook_process ([#2033](https://github.com/weechat/weechat/issues/2033))
- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) - irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
### Build ### Build
@@ -502,7 +436,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- fset: allow long type name in type filter - fset: allow long type name in type filter
- irc: add count for all nick modes in output of `/names` ([#97](https://github.com/weechat/weechat/issues/97), [#2020](https://github.com/weechat/weechat/issues/2020)) - irc: add count for all nick modes in output of `/names` ([#97](https://github.com/weechat/weechat/issues/97), [#2020](https://github.com/weechat/weechat/issues/2020))
- irc: add count and mode filter in command `/names` ([#98](https://github.com/weechat/weechat/issues/98)) - irc: add count and mode filter in command `/names` ([#98](https://github.com/weechat/weechat/issues/98))
- irc: compute color in case-insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194)) - irc: compute color in case insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194))
- irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors ([#1972](https://github.com/weechat/weechat/issues/1972)) - irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors ([#1972](https://github.com/weechat/weechat/issues/1972))
- irc: display commands 716/717 in private buffer (if present) ([#146](https://github.com/weechat/weechat/issues/146)) - irc: display commands 716/717 in private buffer (if present) ([#146](https://github.com/weechat/weechat/issues/146))
- irc: create default options irc.ctcp.* when file irc.conf is created ([#1974](https://github.com/weechat/weechat/issues/1974)) - irc: create default options irc.ctcp.* when file irc.conf is created ([#1974](https://github.com/weechat/weechat/issues/1974))
@@ -703,7 +637,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: display similar command names when a command is unknown ([#1877](https://github.com/weechat/weechat/issues/1877)) - core: display similar command names when a command is unknown ([#1877](https://github.com/weechat/weechat/issues/1877))
- core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls ([#1903](https://github.com/weechat/weechat/issues/1903)) - core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls ([#1903](https://github.com/weechat/weechat/issues/1903))
- core: add option weechat.color.status_name_insecure to display buffer name with a specific color when not connected with TLS to the server - core: add option weechat.color.status_name_insecure to display buffer name with a specific color when not connected with TLS to the server
- core, plugins: make many identifiers case-sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213)) - core, plugins: make many identifiers case sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213))
- core: add item "mouse_status" in default status bar, change default color to lightgreen - core: add item "mouse_status" in default status bar, change default color to lightgreen
- core, trigger: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled, add enabled/disabled status color in output of `/filter list` ([#1820](https://github.com/weechat/weechat/issues/1820)) - core, trigger: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled, add enabled/disabled status color in output of `/filter list` ([#1820](https://github.com/weechat/weechat/issues/1820))
- core: add completions "filters_names_disabled" and "filters_names_enabled", used in completion of `/filter disable` and `/filter enable` - core: add completions "filters_names_disabled" and "filters_names_enabled", used in completion of `/filter disable` and `/filter enable`
@@ -771,7 +705,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- irc: fix join of channels in "autojoin" server option on first connection to server if auto reconnection is performed ([#1873](https://github.com/weechat/weechat/issues/1873)) - irc: fix join of channels in "autojoin" server option on first connection to server if auto reconnection is performed ([#1873](https://github.com/weechat/weechat/issues/1873))
- irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ([#1898](https://github.com/weechat/weechat/issues/1898)) - irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ([#1898](https://github.com/weechat/weechat/issues/1898))
- irc: update secure data when server autojoin option contains `${sec.data.xxx}` and option autojoin_dynamic is enabled ([#1934](https://github.com/weechat/weechat/issues/1934)) - irc: update secure data when server autojoin option contains `${sec.data.xxx}` and option autojoin_dynamic is enabled ([#1934](https://github.com/weechat/weechat/issues/1934))
- irc: don't switch to buffer of joined channel if it was neither manually joined nor present in server autojoin option - irc: don't switch to buffer of joined channel if it was not manually joined nor present in server autojoin option
- irc: fix target buffer for commands 432/433 (erroneous nickname/nickname already in use) when the nickname looks like a channel - irc: fix target buffer for commands 432/433 (erroneous nickname/nickname already in use) when the nickname looks like a channel
- irc: display command 437 on server buffer when nickname cannot change while banned on channel ([#88](https://github.com/weechat/weechat/issues/88)) - irc: display command 437 on server buffer when nickname cannot change while banned on channel ([#88](https://github.com/weechat/weechat/issues/88))
- irc: add messages 415 (cannot send message to channel) and 742 (mode cannot be set) - irc: add messages 415 (cannot send message to channel) and 742 (mode cannot be set)
@@ -845,7 +779,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: keep terminal title unchanged when option weechat.look.window_title is set to empty value ([#1835](https://github.com/weechat/weechat/issues/1835), [#1836](https://github.com/weechat/weechat/issues/1836)) - core: keep terminal title unchanged when option weechat.look.window_title is set to empty value ([#1835](https://github.com/weechat/weechat/issues/1835), [#1836](https://github.com/weechat/weechat/issues/1836))
- core: fix crash when setting invalid color in option with null value ([#1844](https://github.com/weechat/weechat/issues/1844)) - core: fix crash when setting invalid color in option with null value ([#1844](https://github.com/weechat/weechat/issues/1844))
- api: do not check conditions defined in option weechat.look.hotlist_add_conditions when adding buffer in hotlist with function buffer_set - api: do not check conditions defined in option weechat.look.hotlist_add_conditions when adding buffer in hotlist with function buffer_set
- api: fix function strcmp_ignore_chars with case-sensitive comparison and wide chars starting with the same byte - api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
- api: send NULL values to config section callbacks in scripting API ([#1843](https://github.com/weechat/weechat/issues/1843)) - api: send NULL values to config section callbacks in scripting API ([#1843](https://github.com/weechat/weechat/issues/1843))
- api: fix function string_cut when there are non printable chars in suffix - api: fix function string_cut when there are non printable chars in suffix
- api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API) - api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API)
@@ -1280,7 +1214,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: add flag "input_multiline" in buffer ([#984](https://github.com/weechat/weechat/issues/984), [#1063](https://github.com/weechat/weechat/issues/1063)) - core: add flag "input_multiline" in buffer ([#984](https://github.com/weechat/weechat/issues/984), [#1063](https://github.com/weechat/weechat/issues/1063))
- core: add a scalable WeeChat logo (SVG) ([#1454](https://github.com/weechat/weechat/issues/1454), [#1456](https://github.com/weechat/weechat/issues/1456)) - core: add a scalable WeeChat logo (SVG) ([#1454](https://github.com/weechat/weechat/issues/1454), [#1456](https://github.com/weechat/weechat/issues/1456))
- core: add base 16/32/64 encoding/decoding in evaluation of expressions with `base_encode:base,xxx` and `base_decode:base,xxx` - core: add base 16/32/64 encoding/decoding in evaluation of expressions with `base_encode:base,xxx` and `base_decode:base,xxx`
- core: add case-sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case-sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions - core: add case sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions
- core: add default key `Alt`+`Shift`+`N` to toggle nicklist bar - core: add default key `Alt`+`Shift`+`N` to toggle nicklist bar
- core: add command line option `--stdout` in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log ([#1475](https://github.com/weechat/weechat/issues/1475), [#1477](https://github.com/weechat/weechat/issues/1477)) - core: add command line option `--stdout` in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log ([#1475](https://github.com/weechat/weechat/issues/1475), [#1477](https://github.com/weechat/weechat/issues/1477))
- core: reload configuration files on SIGHUP ([#1476](https://github.com/weechat/weechat/issues/1476)) - core: reload configuration files on SIGHUP ([#1476](https://github.com/weechat/weechat/issues/1476))
@@ -1461,7 +1395,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: fix build on Alpine - core: fix build on Alpine
- core: remove file FindTCL.cmake - core: remove file FindTCL.cmake
- core: display an error on missing dependency in CMake ([#916](https://github.com/weechat/weechat/issues/916), [#956](https://github.com/weechat/weechat/issues/956)) - core: display an error on missing dependency in CMake ([#916](https://github.com/weechat/weechat/issues/916), [#956](https://github.com/weechat/weechat/issues/956))
- debian: disable JavaScript plugin on Debian Sid and Ubuntu Eoan - debian: disable Javascript plugin on Debian Sid and Ubuntu Eoan
- debian: build with Guile 2.2 - debian: build with Guile 2.2
- guile: add support of Guile 2.2, disable `/guile eval` ([#1098](https://github.com/weechat/weechat/issues/1098)) - guile: add support of Guile 2.2, disable `/guile eval` ([#1098](https://github.com/weechat/weechat/issues/1098))
- python: add detection of Python 3.8 - python: add detection of Python 3.8
@@ -1511,7 +1445,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
### Build ### Build
- core: fix compilation with autotools on FreeBSD 12.0 - core: fix compilation with autotools on FreeBSD 12.0
- debian: disable JavaScript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374)) - debian: disable Javascript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374))
- python: compile with Python 3 by default - python: compile with Python 3 by default
- python: use pkg-config to detect Python ([#1382](https://github.com/weechat/weechat/issues/1382)) - python: use pkg-config to detect Python ([#1382](https://github.com/weechat/weechat/issues/1382))
@@ -1542,7 +1476,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
### Bug fixes ### Bug fixes
- core: don't execute command scheduled by `/repeat` and `/wait` if the buffer does not exist anymore - core: don't execute command scheduled by `/repeat` and `/wait` if the buffer does not exist any more
- core: set max length to 4096 for `/secure passphrase` ([#1323](https://github.com/weechat/weechat/issues/1323)) - core: set max length to 4096 for `/secure passphrase` ([#1323](https://github.com/weechat/weechat/issues/1323))
- core: refilter only affected buffers on filter change ([#1309](https://github.com/weechat/weechat/issues/1309), [#1311](https://github.com/weechat/weechat/issues/1311)) - core: refilter only affected buffers on filter change ([#1309](https://github.com/weechat/weechat/issues/1309), [#1311](https://github.com/weechat/weechat/issues/1311))
- fset: fix slow refresh of fset buffer during `/reload` ([#1313](https://github.com/weechat/weechat/issues/1313)) - fset: fix slow refresh of fset buffer during `/reload` ([#1313](https://github.com/weechat/weechat/issues/1313))
@@ -1566,7 +1500,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: fix value of libdir in file weechat.pc ([#1341](https://github.com/weechat/weechat/issues/1341), [#1342](https://github.com/weechat/weechat/issues/1342)) - core: fix value of libdir in file weechat.pc ([#1341](https://github.com/weechat/weechat/issues/1341), [#1342](https://github.com/weechat/weechat/issues/1342))
- core: fix generation of man page weechat-headless with autotools - core: fix generation of man page weechat-headless with autotools
- core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required) - core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required)
- core: fix compilation on macOS ([#1308](https://github.com/weechat/weechat/issues/1308)) - core: fix compilation on Mac OS ([#1308](https://github.com/weechat/weechat/issues/1308))
- lua: add detection of Lua 5.3 with autotools - lua: add detection of Lua 5.3 with autotools
- ruby: add detection of Ruby 2.6 ([#1346](https://github.com/weechat/weechat/issues/1346)) - ruby: add detection of Ruby 2.6 ([#1346](https://github.com/weechat/weechat/issues/1346))
- tests: fix compilation of tests on FreeBSD - tests: fix compilation of tests on FreeBSD
@@ -1823,7 +1757,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- buflist: add option buflist.look.auto_scroll ([#332](https://github.com/weechat/weechat/issues/332)) - buflist: add option buflist.look.auto_scroll ([#332](https://github.com/weechat/weechat/issues/332))
- buflist: add keys `F1` / `F2`, `Alt`+`F1` / `Alt`+`F2` to scroll the buflist bar - buflist: add keys `F1` / `F2`, `Alt`+`F1` / `Alt`+`F2` to scroll the buflist bar
- buflist: display a warning when the script "buffers.pl" is loaded - buflist: display a warning when the script "buffers.pl" is loaded
- buflist: add support of char "~" in option buflist.look.sort for case-insensitive comparison - buflist: add support of char "~" in option buflist.look.sort for case insensitive comparison
- buflist: add variable `${format_name}` in bar item evaluation and option buflist.format.name ([#1020](https://github.com/weechat/weechat/issues/1020)) - buflist: add variable `${format_name}` in bar item evaluation and option buflist.format.name ([#1020](https://github.com/weechat/weechat/issues/1020))
- buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation - buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation
- relay: add option `start` in command `/relay` - relay: add option `start` in command `/relay`
@@ -2039,7 +1973,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- irc: evaluate content of server option "addresses" - irc: evaluate content of server option "addresses"
- irc: move option irc.network.alternate_nick into servers (irc.server.xxx.nicks_alternate) ([#633](https://github.com/weechat/weechat/issues/633)) - irc: move option irc.network.alternate_nick into servers (irc.server.xxx.nicks_alternate) ([#633](https://github.com/weechat/weechat/issues/633))
- irc: use current channel and current server channels first in completions "irc_server_channels" and "irc_channels" ([task #12923](https://savannah.nongnu.org/task/?12923), [#260](https://github.com/weechat/weechat/issues/260), [#392](https://github.com/weechat/weechat/issues/392)) - irc: use current channel and current server channels first in completions "irc_server_channels" and "irc_channels" ([task #12923](https://savannah.nongnu.org/task/?12923), [#260](https://github.com/weechat/weechat/issues/260), [#392](https://github.com/weechat/weechat/issues/392))
- logger: display system error when the log file cannot be written ([#541](https://github.com/weechat/weechat/issues/541)) - logger: display system error when the log file can not be written ([#541](https://github.com/weechat/weechat/issues/541))
- relay: add option relay.irc.backlog_since_last_message ([#347](https://github.com/weechat/weechat/issues/347)) - relay: add option relay.irc.backlog_since_last_message ([#347](https://github.com/weechat/weechat/issues/347))
- script: add option script.scripts.download_timeout - script: add option script.scripts.download_timeout
- script: add completion with languages and extensions, support search by language/extension in `/script search` - script: add completion with languages and extensions, support search by language/extension in `/script search`
@@ -2048,7 +1982,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: fix execution of empty command name ("/" and "/ " are not valid commands) - core: fix execution of empty command name ("/" and "/ " are not valid commands)
- core: fix memory leak when using multiple `-d` or `-r` in command line arguments - core: fix memory leak when using multiple `-d` or `-r` in command line arguments
- core: don't complain anymore about "tmux" and "tmux-256color" $TERM values when WeeChat is running under Tmux ([#519](https://github.com/weechat/weechat/issues/519)) - core: don't complain any more about "tmux" and "tmux-256color" $TERM values when WeeChat is running under Tmux ([#519](https://github.com/weechat/weechat/issues/519))
- core: fix truncated messages after a word with a length of zero on screen (for example a zero width space: U+200B) ([bug #40985](https://savannah.nongnu.org/bugs/?40985), [#502](https://github.com/weechat/weechat/issues/502)) - core: fix truncated messages after a word with a length of zero on screen (for example a zero width space: U+200B) ([bug #40985](https://savannah.nongnu.org/bugs/?40985), [#502](https://github.com/weechat/weechat/issues/502))
- api: fix handle of invalid escape in function string_convert_escaped_chars - api: fix handle of invalid escape in function string_convert_escaped_chars
- alias: do not allow slashes and spaces in alias name ([#646](https://github.com/weechat/weechat/issues/646)) - alias: do not allow slashes and spaces in alias name ([#646](https://github.com/weechat/weechat/issues/646))
@@ -2143,7 +2077,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: add a welcome message on first WeeChat run ([#318](https://github.com/weechat/weechat/issues/318)) - core: add a welcome message on first WeeChat run ([#318](https://github.com/weechat/weechat/issues/318))
- core: add options weechat.look.word_chars_{highlight|input} ([#55](https://github.com/weechat/weechat/issues/55), [task #9459](https://savannah.nongnu.org/task/?9459)) - core: add options weechat.look.word_chars_{highlight|input} ([#55](https://github.com/weechat/weechat/issues/55), [task #9459](https://savannah.nongnu.org/task/?9459))
- core: remove WeeChat version from config files ([#407](https://github.com/weechat/weechat/issues/407)) - core: remove WeeChat version from config files ([#407](https://github.com/weechat/weechat/issues/407))
- core: display a warning on startup if the locale cannot be set ([#373](https://github.com/weechat/weechat/issues/373)) - core: display a warning on startup if the locale can not be set ([#373](https://github.com/weechat/weechat/issues/373))
- core: allow "*" as plugin name in command `/plugin reload` to reload all plugins with options - core: allow "*" as plugin name in command `/plugin reload` to reload all plugins with options
- core: add option `-s` in command `/eval` to split expression before evaluating it (no more split by default) ([#324](https://github.com/weechat/weechat/issues/324)) - core: add option `-s` in command `/eval` to split expression before evaluating it (no more split by default) ([#324](https://github.com/weechat/weechat/issues/324))
- core: add priority in plugins to initialize them in order - core: add priority in plugins to initialize them in order
@@ -2331,7 +2265,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: mute all buffers by default in command `/mute` (replace option -all by -core) - core: mute all buffers by default in command `/mute` (replace option -all by -core)
- api: allow value "-1" for property "hotlist" in function buffer_set (to remove a buffer from hotlist) - api: allow value "-1" for property "hotlist" in function buffer_set (to remove a buffer from hotlist)
- api: add option "buffer_flush" in function hook_process_hashtable - api: add option "buffer_flush" in function hook_process_hashtable
- api: add support of case-insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318)) - api: add support of case insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318))
- api: add option "detached" in function hook_process_hashtable - api: add option "detached" in function hook_process_hashtable
- api: add option "signal" in function hook_set to send a signal to the child process - api: add option "signal" in function hook_set to send a signal to the child process
- api: add support of nested variables in function string_eval_expression and command `/eval` ([#35](https://github.com/weechat/weechat/issues/35)) - api: add support of nested variables in function string_eval_expression and command `/eval` ([#35](https://github.com/weechat/weechat/issues/35))
@@ -2547,7 +2481,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server - irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server
- irc: fix auto-switch to channel buffer when doing `/join channel` (without "#") - irc: fix auto-switch to channel buffer when doing `/join channel` (without "#")
- logger: fix memory leaks in backlog - logger: fix memory leaks in backlog
- logger: replace backslashes in name by logger replacement char under Cygwin ([bug #41207](https://savannah.nongnu.org/bugs/?41207)) - logger: replace backslashs in name by logger replacement char under Cygwin ([bug #41207](https://savannah.nongnu.org/bugs/?41207))
- lua: fix crash on calls to callbacks during load of script - lua: fix crash on calls to callbacks during load of script
- python: fix load of scripts with Python ≥ 3.3 - python: fix load of scripts with Python ≥ 3.3
- relay: fix memory leak on unload of relay plugin - relay: fix memory leak on unload of relay plugin
@@ -3021,7 +2955,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- irc: add options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight ([task #11128](https://savannah.nongnu.org/task/?11128)) - irc: add options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight ([task #11128](https://savannah.nongnu.org/task/?11128))
- irc: use redirection to get channel modes after update of modes on channel, display output of `/mode #channel`, allow `/mode` without argument (display modes of current channel or user modes on server buffer) - irc: use redirection to get channel modes after update of modes on channel, display output of `/mode #channel`, allow `/mode` without argument (display modes of current channel or user modes on server buffer)
- irc: add optional server in info "irc_is_channel" (before channel name) ([bug #35124](https://savannah.nongnu.org/bugs/?35124)), add optional server in info_hashtable "irc_message_parse" - irc: add optional server in info "irc_is_channel" (before channel name) ([bug #35124](https://savannah.nongnu.org/bugs/?35124)), add optional server in info_hashtable "irc_message_parse"
- irc: add case-insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239)) - irc: add case insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239))
- irc: add option irc.color.mirc_remap to remap mirc colors in messages to WeeChat colors - irc: add option irc.color.mirc_remap to remap mirc colors in messages to WeeChat colors
- irc: allow URL "irc://" in command `/connect` - irc: allow URL "irc://" in command `/connect`
- irc: use extended regex in commands `/ignore` and `/list` - irc: use extended regex in commands `/ignore` and `/list`
@@ -3075,7 +3009,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: add library "pthread" in CMake file for link on OpenBSD - core: add library "pthread" in CMake file for link on OpenBSD
- core: add WEECHAT_HOME option in CMake and configure to setup default WeeChat home (default is "~/.weechat") ([task #11266](https://savannah.nongnu.org/task/?11266)) - core: add WEECHAT_HOME option in CMake and configure to setup default WeeChat home (default is "~/.weechat") ([task #11266](https://savannah.nongnu.org/task/?11266))
- core: fix compilation under OpenBSD 5.0 (lib utf8 not needed anymore) ([bug #34727](https://savannah.nongnu.org/bugs/?34727)) - core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) ([bug #34727](https://savannah.nongnu.org/bugs/?34727))
- core: fix compilation error with "pid_t" on macOS ([bug #34639](https://savannah.nongnu.org/bugs/?34639)) - core: fix compilation error with "pid_t" on macOS ([bug #34639](https://savannah.nongnu.org/bugs/?34639))
## Version 0.3.6 (2011-10-22) ## Version 0.3.6 (2011-10-22)
@@ -3294,7 +3228,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- core: fix bug with message "day changed to", sometimes displayed several times wrongly - core: fix bug with message "day changed to", sometimes displayed several times wrongly
- core: fix default value of bar items options ([bug #31422](https://savannah.nongnu.org/bugs/?31422)) - core: fix default value of bar items options ([bug #31422](https://savannah.nongnu.org/bugs/?31422))
- core: fix bug with buffer name in `/bar scroll` command - core: fix bug with buffer name in `/bar scroll` command
- core: optimize incremental search in buffer: do not search anymore when chars are added to a text not found ([bug #31167](https://savannah.nongnu.org/bugs/?31167)) - core: optimize incremental search in buffer: do not search any more when chars are added to a text not found ([bug #31167](https://savannah.nongnu.org/bugs/?31167))
- core: fix memory leaks when removing item in hashtable and when setting highlight words in buffer - core: fix memory leaks when removing item in hashtable and when setting highlight words in buffer
- core: use similar behavior for keys bound to local or global history ([bug #30759](https://savannah.nongnu.org/bugs/?30759)) - core: use similar behavior for keys bound to local or global history ([bug #30759](https://savannah.nongnu.org/bugs/?30759))
- alias: complete with alias value for second argument of command `/alias` - alias: complete with alias value for second argument of command `/alias`
@@ -3616,7 +3550,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- fix bug with flock when home is on NFS filesystem ([bug #20913](https://savannah.nongnu.org/bugs/?20913)) - fix bug with flock when home is on NFS filesystem ([bug #20913](https://savannah.nongnu.org/bugs/?20913))
- fix user modes in nicklist when ban and nick mode are received in the same MODE message ([bug #20870](https://savannah.nongnu.org/bugs/?20870)) - fix user modes in nicklist when ban and nick mode are received in the same MODE message ([bug #20870](https://savannah.nongnu.org/bugs/?20870))
- fix IRC message 333: silently ignore message if error when parsing it - fix IRC message 333: silently ignore message if error when parsing it
- fix server option "command_delay": does not freeze WeeChat anymore - fix server option "command_delay": does not freeze WeeChat any more
- fix bug with highlight and UTF-8 chars around word ([bug #20753](https://savannah.nongnu.org/bugs/?20753)) - fix bug with highlight and UTF-8 chars around word ([bug #20753](https://savannah.nongnu.org/bugs/?20753))
- fix nick prefix display on servers that doesn't support all prefixes ([bug #20025](https://savannah.nongnu.org/bugs/?20025)) - fix nick prefix display on servers that doesn't support all prefixes ([bug #20025](https://savannah.nongnu.org/bugs/?20025))
- fix terminal encoding detection when NLS is disabled ([bug #20646](https://savannah.nongnu.org/bugs/?20646)) - fix terminal encoding detection when NLS is disabled ([bug #20646](https://savannah.nongnu.org/bugs/?20646))
@@ -3871,7 +3805,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- add hostname/IP option for connection to server - add hostname/IP option for connection to server
- add `/setp` command (set plugin options) - add `/setp` command (set plugin options)
- aliases are executed before WeeChat/IRC commands, add `/builtin` command - aliases are executed before WeeChat/IRC commands, add `/builtin` command
- add `/cycle` command, `/part` command does close buffer anymore - add `/cycle` command, `/part` command does close buffer any more
### Internationalization ### Internationalization
@@ -3949,7 +3883,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
- fix `/mode` command output - fix `/mode` command output
- fix completion problem in private with nicks - fix completion problem in private with nicks
- script plugins now load scripts in WeeChat system share directory - script plugins now load scripts in WeeChat system share directory
- `/msg` command does not open any buffer anymore - `/msg` command does not open any buffer any more
- fix crash when using global history (when older entry is removed) - fix crash when using global history (when older entry is removed)
- fix display bug with `/kill` command - fix display bug with `/kill` command
- fix bug with `/upgrade` and servers buffer - fix bug with `/upgrade` and servers buffer
+14 -9
View File
@@ -207,13 +207,16 @@ endif()
# Check for libgcrypt # Check for libgcrypt
pkg_check_modules(LIBGCRYPT REQUIRED libgcrypt) pkg_check_modules(LIBGCRYPT REQUIRED libgcrypt)
add_definitions(-DHAVE_GCRYPT)
include_directories(${LIBGCRYPT_INCLUDE_DIRS}) include_directories(${LIBGCRYPT_INCLUDE_DIRS})
list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS}) list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS})
# Check for GnuTLS # Check for GnuTLS
pkg_check_modules(GNUTLS REQUIRED gnutls>=3.3.0) find_package(GnuTLS REQUIRED)
include_directories(${GNUTLS_INCLUDE_DIRS}) string(REGEX REPLACE "/[^/]*$" "" GNUTLS_LIBRARY_PATH "${GNUTLS_LIBRARY}")
list(APPEND EXTRA_LIBS ${GNUTLS_LDFLAGS}) include_directories(${GNUTLS_INCLUDE_PATH})
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${GNUTLS_LIBRARY_PATH}")
list(APPEND EXTRA_LIBS gnutls)
# Check for zlib # Check for zlib
find_package(ZLIB REQUIRED) find_package(ZLIB REQUIRED)
@@ -237,17 +240,20 @@ if(ICONV_FOUND)
endif() endif()
# Check for CURL # Check for CURL
# NOTE: keep version in sync with tools/check_curl_symbols.py find_package(CURL REQUIRED)
pkg_check_modules(LIBCURL REQUIRED libcurl>=7.47.0)
include_directories(${LIBCURL_INCLUDE_DIRS}) # weechat_gui_common MUST be the first lib in the list
list(APPEND EXTRA_LIBS ${LIBCURL_LDFLAGS}) set(STATIC_LIBS weechat_gui_common)
find_library(DL_LIBRARY find_library(DL_LIBRARY
NAMES dl NAMES dl
PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec
) )
list(APPEND STATIC_LIBS weechat_plugins)
if(DL_LIBRARY) if(DL_LIBRARY)
list(APPEND EXTRA_LIBS ${DL_LIBRARY}) string(REGEX REPLACE "/[^/]*$" "" DL_LIBRARY_PATH "${DL_LIBRARY}")
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${DL_LIBRARY_PATH}")
list(APPEND EXTRA_LIBS dl)
endif() endif()
add_subdirectory(icons) add_subdirectory(icons)
@@ -255,7 +261,6 @@ add_subdirectory(icons)
if(ENABLE_NLS) if(ENABLE_NLS)
find_package(Gettext REQUIRED) find_package(Gettext REQUIRED)
find_package(Intl REQUIRED) find_package(Intl REQUIRED)
include_directories(${Intl_INCLUDE_DIRS})
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}") list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
add_subdirectory(po) add_subdirectory(po)
else() else()
+43 -43
View File
@@ -142,13 +142,13 @@ You can add this key with this command:
Custom bar items must now have a different name than default bar items Custom bar items must now have a different name than default bar items
(for example the custom bar item name `time` is now forbidden).\ (for example the custom bar item name `time` is now forbidden).\
If you have such names in your config, WeeChat will now fail to load them If you have such names in your config, WeeChat will now fail to load them
(this should not happen anyway, since such bar items cannot be properly used (this should not happen anyway, since such bar items can not be properly used
or can cause a crash of WeeChat). or can cause a crash of WeeChat).
### Nick color infos ### Nick color infos
The infos irc_nick_color and irc_nick_color_name are deprecated again, and the The infos irc_nick_color and irc_nick_color_name are deprecated again, and the
algorithm to compute IRC nick colors has been reverted to case-sensitive.\ algorithm to compute IRC nick colors has been reverted to case sensitive.\
The server name has been removed from arguments. The server name has been removed from arguments.
## Version 4.1.1 ## Version 4.1.1
@@ -158,7 +158,7 @@ The server name has been removed from arguments.
Custom bar items must now have a different name than default bar items Custom bar items must now have a different name than default bar items
(for example the custom bar item name `time` is now forbidden).\ (for example the custom bar item name `time` is now forbidden).\
If you have such names in your config, WeeChat will now fail to load them If you have such names in your config, WeeChat will now fail to load them
(this should not happen anyway, since such bar items cannot be properly used (this should not happen anyway, since such bar items can not be properly used
or can cause a crash of WeeChat). or can cause a crash of WeeChat).
## Version 4.1.0 ## Version 4.1.0
@@ -219,8 +219,8 @@ version 1.5 are now used again, with a change in parameter: the server is now
optional before the nick: "server,nick".\ optional before the nick: "server,nick".\
The nick is first converted to lower case, following the value of CASEMAPPING The nick is first converted to lower case, following the value of CASEMAPPING
on the server, then hashed to compute the color.\ on the server, then hashed to compute the color.\
That means the color for a nick is now case-insensitive (in the way IRC servers That means the color for a nick is now case insensitive (in the way IRC servers
are case-insensitive, so with a limited range of chars only). are case insensitive, so with a limited range of chars only).
If a script was using this info with a comma in nickname (which should not happen If a script was using this info with a comma in nickname (which should not happen
anyway), this is now interpreted as the server name, and the script must be anyway), this is now interpreted as the server name, and the script must be
@@ -272,7 +272,7 @@ Custom bar items must now have a different name than default bar items
(for example the custom bar item name `time` is now forbidden). (for example the custom bar item name `time` is now forbidden).
If you have such names in your config, WeeChat will now fail to load them If you have such names in your config, WeeChat will now fail to load them
(this should not happen anyway, since such bar items cannot be properly used (this should not happen anyway, since such bar items can not be properly used
and can cause a crash of WeeChat). and can cause a crash of WeeChat).
## Version 4.0.1 ## Version 4.0.1
@@ -281,8 +281,8 @@ and can cause a crash of WeeChat).
The functions [config_set_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_plugin) The functions [config_set_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_plugin)
and [config_set_desc_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_desc_plugin) and [config_set_desc_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_desc_plugin)
are not converting anymore the option name to lower case because since version 4.0.0, are not converting any more the option name to lower case because since version 4.0.0,
the name of options is case-sensitive. the name of options is case sensitive.
### Grab raw key and command ### Grab raw key and command
@@ -332,7 +332,7 @@ automatically upgraded to a new version:
- weechat.conf: new key names - weechat.conf: new key names
(see <<v4.0.0_key_bindings_improvements,Key bindings improvements>>) (see <<v4.0.0_key_bindings_improvements,Key bindings improvements>>)
- alias.conf: aliases converted to lower case - alias.conf: aliases converted to lower case
(see <<v4.0.0_case_sensitive_identifiers,Case-sensitive identifiers>>) (see <<v4.0.0_case_sensitive_identifiers,Case sensitive identifiers>>)
- irc.conf: options `ssl*` renamed to `tls*` - irc.conf: options `ssl*` renamed to `tls*`
(see <<v4.0.0_tls,TLS options and connections>>) (see <<v4.0.0_tls,TLS options and connections>>)
- relay.conf: options and protocol `ssl*` renamed to `tls*` - relay.conf: options and protocol `ssl*` renamed to `tls*`
@@ -342,8 +342,8 @@ automatically upgraded to a new version:
> Because of this new format, you must **NOT** load the new configuration > Because of this new format, you must **NOT** load the new configuration
files in any older WeeChat version < 4.0.0 once you have run any version ≥ 4.0.0 files in any older WeeChat version < 4.0.0 once you have run any version ≥ 4.0.0
at least one time.\ at least one time.\
For example the new key names make the input completely broken (you cannot For example the new key names make the input completely broken (you can not
enter most chars in input anymore and Enter key does not work). enter most chars in input any more and Enter key does not work).
### Key bindings improvements ### Key bindings improvements
@@ -368,20 +368,20 @@ for more information.
Aliases are now used for keys, like `f1`, `home`, `return`, etc.\ Aliases are now used for keys, like `f1`, `home`, `return`, etc.\
In addition, a comma is now required between different keys, for example `ctrl-cb` In addition, a comma is now required between different keys, for example `ctrl-cb`
is not valid anymore and must be replaced by `ctrl-c,b`. is not valid any more and must be replaced by `ctrl-c,b`.
The keys in weechat.conf are automatically converted from legacy format on first The keys in weechat.conf are automatically converted from legacy format on first
run or upgrade with a legacy configuration file. run or upgrade with a legacy configuration file.
For keys bound in external plugins or scripts, WeeChat tries to convert them For keys bound in external plugins or scripts, WeeChat tries to convert them
on-the-fly to stay compatible, but this cannot work in all cases (this is a on-the-fly to stay compatible, but this can not work in all cases (this is a
breaking change). breaking change).
The following fixes are done on keys when they are defined: The following fixes are done on keys when they are defined:
- transform upper case ctrl keys to lower case - transform upper case ctrl keys to lower case
- replace space char by `space` - replace space char by `space`
- replace `meta2-` by `meta-[` (modifier `meta2-` doesn't exist anymore) - replace `meta2-` by `meta-[` (modifier `meta2-` doesn't exist any more)
- mouse modifiers are now in this order: `alt-` then `ctrl-`. - mouse modifiers are now in this order: `alt-` then `ctrl-`.
A warning is displayed when a raw key or invalid key is added.\ A warning is displayed when a raw key or invalid key is added.\
@@ -427,9 +427,9 @@ New key binding (context "default"): ctrl-q => /print test
With older releases, upper case was mandatory and lower case letter for control With older releases, upper case was mandatory and lower case letter for control
keys were not working at all. keys were not working at all.
### Case-sensitive identifiers ### Case sensitive identifiers
Many identifiers are made case-sensitive, including among others: Many identifiers are made case sensitive, including among others:
- configuration files, sections, options - configuration files, sections, options
- commands, aliases - commands, aliases
@@ -441,7 +441,7 @@ Many identifiers are made case-sensitive, including among others:
- scripts - scripts
- triggers. - triggers.
See [Case-sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html) See [Case sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html)
for more information. for more information.
Accordingly, default aliases are now in lower case.\ Accordingly, default aliases are now in lower case.\
@@ -542,7 +542,7 @@ WeeChat must now be built with CMake.
The auto-generated files for documentation are now built with `weechat-headless`, The auto-generated files for documentation are now built with `weechat-headless`,
after compilation of WeeChat and the plugins (the files are not in repository after compilation of WeeChat and the plugins (the files are not in repository
anymore).\ any more).\
This implies all plugins must be compiled and loaded in order to have complete docs This implies all plugins must be compiled and loaded in order to have complete docs
(User's guide and Plugin API reference). (User's guide and Plugin API reference).
@@ -561,7 +561,7 @@ cmake .. -DENABLE_PHP=OFF -DENABLE_DOC=ON -DENABLE_DOC_INCOMPLETE=ON
#### Tarballs #### Tarballs
The command `make dist` now builds only `.gz` and `.xz` compressed tarballs.\ The command `make dist` now builds only `.gz` and `.xz` compressed tarballs.\
Formats `.bz2` and `.zst` are not built anymore. Formats `.bz2` and `.zst` are not built any more.
#### RPM packaging #### RPM packaging
@@ -641,7 +641,7 @@ compared UTF-8 char in string2 from the last compared UTF-8 char in string1:
In addition, the case conversion has been extended, now in addition to range In addition, the case conversion has been extended, now in addition to range
A-Z, all chars that have a lower case version are handled.\ A-Z, all chars that have a lower case version are handled.\
That means for example the case-insensitive comparison of "é" and "É" is 0 That means for example the case insensitive comparison of "é" and "É" is 0
(chars are considered equal). (chars are considered equal).
Example with WeeChat 3.8: Example with WeeChat 3.8:
@@ -693,7 +693,7 @@ _WeeChat User's guide_.
### Remove Python 2 support ### Remove Python 2 support
The CMake option `ENABLE_PYTHON2` and autotools option `--enable-python2` The CMake option `ENABLE_PYTHON2` and autotools option `--enable-python2`
have been removed, and WeeChat cannot be compiled with Python 2.x anymore. have been removed, and WeeChat can not be compiled with Python 2.x any more.
### Callbacks of function config_new_option ### Callbacks of function config_new_option
@@ -1322,9 +1322,9 @@ Motivations:
- GnuTLS library should be available everywhere - GnuTLS library should be available everywhere
- reduce complexity of code and tests of builds. - reduce complexity of code and tests of builds.
### The trigger "cmd_pass" does not hide anymore values of /set command ### The trigger "cmd_pass" does not hide any more values of /set command
The default trigger "cmd_pass" does not hide anymore values of options in `/set` The default trigger "cmd_pass" does not hide any more values of options in `/set`
command which contain "password" in the name. command which contain "password" in the name.
The reason is that it was masking values of options that contains the word The reason is that it was masking values of options that contains the word
@@ -1428,7 +1428,7 @@ The command line option `-a` (or `--no-connect`), which can also be used in the
`/plugin` command, is now used to set a new info called `auto_connect` `/plugin` command, is now used to set a new info called `auto_connect`
(see the function [info_get](https://weechat.org/doc/weechat/plugin/#_info_get) in the Plugin API reference). (see the function [info_get](https://weechat.org/doc/weechat/plugin/#_info_get) in the Plugin API reference).
Therefore, the option is not sent anymore to the function `weechat_plugin_init` Therefore, the option is not sent any more to the function `weechat_plugin_init`
of plugins.\ of plugins.\
The plugins using this option must now get the info `auto_connect` and check The plugins using this option must now get the info `auto_connect` and check
if the value is "1" (a string with just `1`). if the value is "1" (a string with just `1`).
@@ -1461,7 +1461,7 @@ now displayed on any missing dependency, if the optional feature was enabled
(most features are automatically enabled, except documentation, man page and (most features are automatically enabled, except documentation, man page and
tests). tests).
Any error on a missing dependency is fatal, so WeeChat cannot be compiled. Any error on a missing dependency is fatal, so WeeChat can not be compiled.
This is a new behavior compared to old versions, where any missing dependency This is a new behavior compared to old versions, where any missing dependency
was silently ignored and the compilation was possible anyway. was silently ignored and the compilation was possible anyway.
@@ -1505,7 +1505,7 @@ For more information, see the WeeChat scripting guide: chapter about strings
received in callbacks (see also issue [#1389](https://github.com/weechat/weechat/issues/1389)). received in callbacks (see also issue [#1389](https://github.com/weechat/weechat/issues/1389)).
Note: there are no changes for Python 2 (which is now deprecated and should not Note: there are no changes for Python 2 (which is now deprecated and should not
be used anymore), the strings sent to callbacks are always of type `str`, and be used any more), the strings sent to callbacks are always of type `str`, and
may contain invalid UTF-8 data, in the cases mentioned in the WeeChat scripting may contain invalid UTF-8 data, in the cases mentioned in the WeeChat scripting
guide. guide.
@@ -1645,7 +1645,7 @@ This affects only C code, no changes are required in scripts.
### Nick completer ### Nick completer
A space is not added automatically anymore when you complete a nick at the A space is not added automatically any more when you complete a nick at the
beginning of command line.\ beginning of command line.\
Purpose of this change is to be more flexible: you can choose whether the space Purpose of this change is to be more flexible: you can choose whether the space
is added or not (it was always added in previous releases). is added or not (it was always added in previous releases).
@@ -1856,7 +1856,7 @@ sudo apt-get install weechat-devel-python weechat-devel-perl
### Evaluation in buflist ### Evaluation in buflist
The evaluation of expressions in buflist options is not recursive anymore, The evaluation of expressions in buflist options is not recursive any more,
to prevent too many evaluations, for example in buffer variables to prevent too many evaluations, for example in buffer variables
(see issue [#1060](https://github.com/weechat/weechat/issues/1060) for more information).\ (see issue [#1060](https://github.com/weechat/weechat/issues/1060) for more information).\
If you are using custom variables/options containing evaluated expressions, If you are using custom variables/options containing evaluated expressions,
@@ -2190,7 +2190,7 @@ You can restore the default "beep" trigger with the following command:
The API function [command](https://weechat.org/doc/weechat/plugin/#_command) The API function [command](https://weechat.org/doc/weechat/plugin/#_command)
now sends the value returned return by command callback. now sends the value returned return by command callback.
WeeChat does not display anymore an error when a command returns WeeChat does not display any more an error when a command returns
`WEECHAT_RC_ERROR`. Consequently, all plugins/scripts should display an `WEECHAT_RC_ERROR`. Consequently, all plugins/scripts should display an
explicit error message before returning `WEECHAT_RC_ERROR`. explicit error message before returning `WEECHAT_RC_ERROR`.
@@ -2254,7 +2254,7 @@ instead of milliseconds:
### Channel type not added by default on /join ### Channel type not added by default on /join
The channel type is not anymore automatically added to a channel name on join The channel type is not any more automatically added to a channel name on join
(for example `/join weechat` will not send `/join #weechat`). (for example `/join weechat` will not send `/join #weechat`).
If you are lazy and want to automatically add the channel type, you can turn on If you are lazy and want to automatically add the channel type, you can turn on
@@ -2287,7 +2287,7 @@ You can rebind the key `Alt`+`j`, `Alt`+`l` (`L`):
``` ```
Note: the command `/input jump_last_buffer` still works for compatibility reasons, Note: the command `/input jump_last_buffer` still works for compatibility reasons,
but it should not be used anymore. but it should not be used any more.
Similarly, a new key has been added to jump to first buffer: `Alt`+`j`, `Alt`+`f`. Similarly, a new key has been added to jump to first buffer: `Alt`+`j`, `Alt`+`f`.
You can add it with the following command: You can add it with the following command:
@@ -2355,8 +2355,8 @@ if int(highlight):
### Colors in messages ### Colors in messages
The color code for "reverse video" in IRC message has been fixed: now WeeChat The color code for "reverse video" in IRC message has been fixed: now WeeChat
uses 0x16 like other clients (and not 0x12 anymore).\ uses 0x16 like other clients (and not 0x12 any more).\
The code 0x12 is not decoded anymore, so if it is received (for example from The code 0x12 is not decoded any more, so if it is received (for example from
an old WeeChat version), it is not displayed as reverse video. an old WeeChat version), it is not displayed as reverse video.
The color code for "underlined text" in input line has been fixed: now WeeChat The color code for "underlined text" in input line has been fixed: now WeeChat
@@ -2407,7 +2407,7 @@ The default value for status bar items becomes:
### IRC messages on channel join ### IRC messages on channel join
The names are not displayed anymore by default on channel join (they are in The names are not displayed any more by default on channel join (they are in
nicklist anyway). nicklist anyway).
Names can be displayed with the value "353" in option Names can be displayed with the value "353" in option
@@ -2435,7 +2435,7 @@ You should check the value of both options and fix them if needed.
### Day change message ### Day change message
The day change message is now dynamically displayed, and therefore is not stored The day change message is now dynamically displayed, and therefore is not stored
as a line in buffer anymore. as a line in buffer any more.
Option weechat.look.day_change_time_format has been split into two options Option weechat.look.day_change_time_format has been split into two options
weechat.look.day_change_message_{1date|2dates} (color codes are allowed in weechat.look.day_change_message_{1date|2dates} (color codes are allowed in
@@ -2525,7 +2525,7 @@ creating this link on make install).
### Man page / documentation ### Man page / documentation
Documentation is not built by default anymore, you have to use option Documentation is not built by default any more, you have to use option
`-DENABLE_DOC=ON` in cmake command to enable it. `-DENABLE_DOC=ON` in cmake command to enable it.
The man page is now built with asciidoc and translated in several The man page is now built with asciidoc and translated in several
@@ -2553,7 +2553,7 @@ For more info about content of message, see document _WeeChat Relay Protocol_.
### Dynamic nick prefix/suffix ### Dynamic nick prefix/suffix
The nick prefix/suffix (for example: "<" and ">") are now dynamic and used on The nick prefix/suffix (for example: "<" and ">") are now dynamic and used on
display (not stored anymore in the line). display (not stored any more in the line).
Options moved from irc plugin (irc.conf) to core (weechat.conf): Options moved from irc plugin (irc.conf) to core (weechat.conf):
@@ -2602,7 +2602,7 @@ FlashCo+ │ test # 8, off
After `/upgrade`, if you set new options to non-empty strings, and if old After `/upgrade`, if you set new options to non-empty strings, and if old
options were set to non-empty strings too, you will see double prefix/suffix options were set to non-empty strings too, you will see double prefix/suffix
on old messages, this is normal behavior (lines displayed before `/upgrade` on old messages, this is normal behavior (lines displayed before `/upgrade`
have prefix/suffix saved in prefix, but new lines don't have them anymore). have prefix/suffix saved in prefix, but new lines don't have them any more).
New options in logger plugin (logger.conf): New options in logger plugin (logger.conf):
@@ -2812,11 +2812,11 @@ Cygwin).
### Extended regex ### Extended regex
Extended regex is used in filters and irc ignore, so some chars that needed Extended regex is used in filters and irc ignore, so some chars that needed
escape in past do not need anymore (for example `[0-9]\+` becomes `[0-9]+`), escape in past do not need any more (for example `[0-9]\+` becomes `[0-9]+`),
filters and ignore have to be manually fixed. filters and ignore have to be manually fixed.
Option weechat.look.highlight_regex becomes case-insensitive by default, to Option weechat.look.highlight_regex becomes case insensitive by default, to
make it case-sensitive, use "(?-i)" at beginning of string, for example: make it case sensitive, use "(?-i)" at beginning of string, for example:
"(?-i)FlashCode|flashy". "(?-i)FlashCode|flashy".
## Version 0.3.6 ## Version 0.3.6
@@ -2829,7 +2829,7 @@ If you changed the value of this option, you must set it again after upgrade.
### Bold in colors ### Bold in colors
Bold is not used anymore for basic colors (used only if terminal has less than Bold is not used any more for basic colors (used only if terminal has less than
16 colors), a new option has been added to force bold if needed: 16 colors), a new option has been added to force bold if needed:
weechat.look.color_basic_force_bold. weechat.look.color_basic_force_bold.
@@ -2838,7 +2838,7 @@ weechat.look.color_basic_force_bold.
### Colors ### Colors
If you have some colors defined in section "palette" with version 0.3.4, you If you have some colors defined in section "palette" with version 0.3.4, you
should remove all colors defined, and add new aliases (it's not needed anymore should remove all colors defined, and add new aliases (it's not needed any more
to add colors before using them). to add colors before using them).
Colors for nick prefixes (char for op, voice, ..) are defined in a single Colors for nick prefixes (char for op, voice, ..) are defined in a single
+75
View File
@@ -0,0 +1,75 @@
#
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find GnuTLS
# This module finds if libgnutls is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# GNUTLS_INCLUDE_PATH = path to where <gnutls/gnutls.h> can be found
# GNUTLS_LIBRARY = path to where libgnutls.so* can be found
# GNUTLS_CFLAGS = cflags to use to compile
# GNUTLS_LDFLAGS = ldflags to use to compile
if(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
# Already in cache, be silent
set(GNUTLS_FIND_QUIETLY TRUE)
endif()
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls
OUTPUT_VARIABLE GNUTLS_PREFIX
)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls
OUTPUT_VARIABLE GNUTLS_CFLAGS
)
string(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_CFLAGS}")
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls
OUTPUT_VARIABLE GNUTLS_LDFLAGS
)
string(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}")
set(GNUTLS_POSSIBLE_INCLUDE_PATH "${GNUTLS_PREFIX}/include")
set(GNUTLS_POSSIBLE_LIB_DIR "${GNUTLS_PREFIX}/lib")
find_path(GNUTLS_INCLUDE_PATH
NAMES gnutls/gnutls.h
PATHS GNUTLS_POSSIBLE_INCLUDE_PATH
)
find_library(GNUTLS_LIBRARY
NAMES gnutls
PATHS GNUTLS_POSSIBLE_LIB_DIR
)
if(NOT GNUTLS_INCLUDE_PATH OR NOT GNUTLS_LIBRARY)
message(FATAL_ERROR "GnuTLS was not found")
endif()
mark_as_advanced(
GNUTLS_INCLUDE_PATH
GNUTLS_LIBRARY
GNUTLS_CFLAGS
GNUTLS_LDFLAGS
)
+1 -3
View File
@@ -29,8 +29,6 @@ endif()
if(NOT PHP_FOUND) if(NOT PHP_FOUND)
find_program(PHP_CONFIG_EXECUTABLE NAMES find_program(PHP_CONFIG_EXECUTABLE NAMES
php-config8.4 php-config84
php-config8.3 php-config83
php-config8.2 php-config82 php-config8.2 php-config82
php-config8.1 php-config81 php-config8.1 php-config81
php-config8.0 php-config80 php-config8.0 php-config80
@@ -50,7 +48,7 @@ if(NOT PHP_FOUND)
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
if(${PHP_VERSION} MATCHES "^[78]") if(${PHP_VERSION} MATCHES "^[78]")
find_library(PHP_LIB find_library(PHP_LIB
NAMES php8.4 php84 php8.3 php83 php8.2 php82 php8.1 php81 php8.0 php80 php8 php7.4 php74 php7.3 php73 php7.2 php72 php7.1 php71 php7.0 php70 php7 php NAMES php8.2 php82 php8.1 php81 php8.0 php80 php8 php7.4 php74 php7.3 php73 php7.2 php72 php7.1 php71 php7.0 php70 php7 php
HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64 HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64
) )
if(PHP_LIB) if(PHP_LIB)
+4 -11
View File
@@ -1,10 +1,3 @@
weechat (4.5.1-1) unstable; urgency=medium
* New upstream release
* Update copyright file (new year)
-- Emmanuel Bouthenot <kolter@debian.org> Mon, 20 Jan 2025 14:39:42 +0000
weechat (4.4.3-1) unstable; urgency=medium weechat (4.4.3-1) unstable; urgency=medium
* New upstream release * New upstream release
@@ -553,7 +546,7 @@ weechat (0.3.6-1) unstable; urgency=low
documentation when weechat-doc is installed (Closes: #632621) documentation when weechat-doc is installed (Closes: #632621)
* Add a Suggest on weechat-doc for weechat and weechat-curses. Thanks to * Add a Suggest on weechat-doc for weechat and weechat-curses. Thanks to
Jonathan Nieder for the proposal. Jonathan Nieder for the proposal.
* Fix the cmake invocation from debian/rules (cflags and ldflags) * Fix the cmake invokation from debian/rules (cflags and ldflags)
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 Oct 2011 20:10:09 +0000 -- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 Oct 2011 20:10:09 +0000
@@ -775,7 +768,7 @@ weechat (0.2.3-1) unstable; urgency=low
* New upstream release * New upstream release
* Bump lua build-dependency to liblua5.1-0-dev * Bump lua build-dependency to liblua5.1-0-dev
* Add pkg-config to Build-Depends * Add pkg-config to Build-Depends
* Remove some duplicated changelog entries. * Remove some duplited changelog entries.
* Improve weechat-plugins description * Improve weechat-plugins description
-- Julien Louis <ptitlouis@sysif.net> Fri, 12 Jan 2007 09:01:46 +0100 -- Julien Louis <ptitlouis@sysif.net> Fri, 12 Jan 2007 09:01:46 +0100
@@ -783,7 +776,7 @@ weechat (0.2.3-1) unstable; urgency=low
weechat (0.2.1-1) unstable; urgency=low weechat (0.2.1-1) unstable; urgency=low
* New upstream release * New upstream release
* Override lintian menu-icon-missing warning * Overrive lintian menu-icon-missing warning
since the icon is in the weechat-common package. since the icon is in the weechat-common package.
-- Julien Louis <ptitlouis@sysif.net> Mon, 2 Oct 2006 15:30:06 +0200 -- Julien Louis <ptitlouis@sysif.net> Mon, 2 Oct 2006 15:30:06 +0200
@@ -928,7 +921,7 @@ weechat (0.1.1-2) unstable; urgency=low
* debian/control: * debian/control:
- Add myself to uploaders. - Add myself to uploaders.
- Remove unnecessary dependency on weechat-gtk (Closes: #308287). - Remove unecessary dependency on weechat-gtk (Closes: #308287).
-- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200 -- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200
+1 -1
View File
@@ -287,7 +287,7 @@ Close a server, channel or private buffer (`/close` is an alias for
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
[CAUTION] [WARNING]
Closing the server buffer will close all channel/private buffers. Closing the server buffer will close all channel/private buffers.
// TRANSLATION MISSING // TRANSLATION MISSING
+6 -3
View File
@@ -333,7 +333,9 @@ unterstützt (rxvt-unicode, konsole, gnome-terminal, ... um nur einige zu nennen
Im Normalfall erfolgt die Markierung des Textes mittels der Tasten kbd:[Ctrl+Alt] Im Normalfall erfolgt die Markierung des Textes mittels der Tasten kbd:[Ctrl+Alt]
in Verbindung mit der Auswahl durch die Maus. in Verbindung mit der Auswahl durch die Maus.
Die Nickliste kann umgeschaltet und nur bei Bedarf sichtbar gemacht werden, mit der Taste kbd:[Alt+Shift+N]. // TRANSLATION MISSING
You can toggle nicklist and make it visible only when needed, with key
kbd:[Alt+Shift+N].
Eine weitere Möglichkeit besteht darin, Eine weitere Möglichkeit besteht darin,
die Benutzerliste am oberen oder unteren Rand des WeeChat-Bildschirmes zu positionieren: die Benutzerliste am oberen oder unteren Rand des WeeChat-Bildschirmes zu positionieren:
@@ -350,7 +352,8 @@ Dazu kann man den vereinfachten Anzeigemodus nutzen (Standardtaste: kbd:[Alt+l]
Um URLs einfacher zu öffnen, können alternativ folgende Optionen gesetzt werden: Um URLs einfacher zu öffnen, können alternativ folgende Optionen gesetzt werden:
* Nickliste umschalten und nur bei Bedarf darstellen, mit dem Tastenkurzbefehl kbd:[Alt+Shift+N] // TRANSLATION MISSING
* toggle nicklist and make it visible only when needed, with key kbd:[Alt+Shift+N]
* Die Benutzerliste am oberen Bildschirmbereich positionieren. * Die Benutzerliste am oberen Bildschirmbereich positionieren.
@@ -1306,7 +1309,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /Pfad/zu/weechat
[[supported_os]] [[supported_os]]
=== Auf welchen Plattformen läuft WeeChat und wird es noch auf andere Betriebssysteme portiert? === Auf welchen Plattformen läuft WeeChat und wird es noch auf andere Betriebssysteme portiert?
WeeChat läuft auf den meisten Linux/BSD-Distributionen, GNU/Hurd, macOS und WeeChat läuft auf den meisten Linux/BSD-Distributionen, GNU/Hurd, Mac OS und
Windows (Cygwin und Windows Subsystem für Linux) einwandfrei. Windows (Cygwin und Windows Subsystem für Linux) einwandfrei.
Wir geben unser Bestes, WeeChat auf möglichst viele Plattformen zu portieren. Wir geben unser Bestes, WeeChat auf möglichst viele Plattformen zu portieren.
+1 -1
View File
@@ -301,7 +301,7 @@ Einen Buffer schließen (Server, Channel, privater Buffer);
/close /close
---- ----
[CAUTION] [WARNING]
Wird ein Server-Buffer geschlossen, Wird ein Server-Buffer geschlossen,
schließt WeeChat ebenfalls alle zum Server schließt WeeChat ebenfalls alle zum Server
gehörenden Channels und privaten Buffer. gehörenden Channels und privaten Buffer.
+128 -140
View File
@@ -471,7 +471,7 @@ zum Absturz von WeeChat führt:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
[CAUTION] [WARNING]
Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen
Absturz zu provozieren. Diese Funktion wird im produktiven Einsatz nicht empfohlen. Absturz zu provozieren. Diese Funktion wird im produktiven Einsatz nicht empfohlen.
@@ -611,7 +611,7 @@ include::includes/cmdline_options.de.adoc[tag=standard]
Einige zusätzliche Optionen sollten nur für Debug-Zwecke genutzt werden: Einige zusätzliche Optionen sollten nur für Debug-Zwecke genutzt werden:
[CAUTION] [WARNING]
*KEINE* dieser Optionen sollte für ein Produktivsystem genutzt werden! *KEINE* dieser Optionen sollte für ein Produktivsystem genutzt werden!
include::includes/cmdline_options.de.adoc[tag=debug] include::includes/cmdline_options.de.adoc[tag=debug]
@@ -882,7 +882,7 @@ Beispiel des WeeChat-Terminals:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ Bars "status" und "input" Bar "nicklist" ▲ ▲ Bars "status" und "input" Bar "nicklist" ▲
@@ -921,34 +921,32 @@ Die _status_-Bar besitzt als Standardeinträge:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Beispiel | Beschreibung | Item | Beispiel | Beschreibung
| time | `12:55` | Uhrzeit. | time | `[12:55]` | Uhrzeit.
| buffer_last_number | `5` | Nummer des letzten Buffers (kann sich unterscheiden von `buffer_count` wenn Option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> deaktiviert (`off`) ist). | buffer_last_number | `[5]` | Nummer des letzten Buffers.
| buffer_plugin | `irc/libera` | Erweiterung des aktuellen Buffers (IRC Erweiterung setzt den IRC Servername für den Buffer). | buffer_plugin | `[irc/libera]` | Erweiterung des aktuellen Buffers (IRC Erweiterung setzt den IRC Servername für den Buffer).
| buffer_number | `2` | Aktuelle Nummer des Buffers. | buffer_number | `2` | Aktuelle Nummer des Buffers.
| buffer_name | `#test` | Name des aktuellen Buffers. | buffer_name | `#test` | Name des aktuellen Buffers.
| buffer_modes | `+n` | IRC Kanal-Modi. | buffer_modes | `+n` | IRC Kanal-Modi.
| buffer_nicklist_count | `4` | Anzahl der Nicks die in der Nickliste angezeigt werden. | buffer_nicklist_count | `{4}` | Anzahl der Nicks die in der Nickliste angezeigt werden.
| buffer_zoom | ! | `!` bedeutet, dass ein zusammengefügter Buffer gezoomed (nur dieser Buffer wird angezeigt) wird. | buffer_zoom | ! | `!` bedeutet, dass ein zusammengefügter Buffer gezoomed (nur dieser Buffer wird angezeigt) wird.
| buffer_filter | `+*+` | Filteranzeige: `+*+` bedeutet das Zeilen gefiltert (unterdrückt) werden. Ein leerer Eintrag zeigt an, dass alle Zeilen dargestellt werden. | buffer_filter | `+*+` | Filteranzeige: `+*+` bedeutet das Zeilen gefiltert (unterdrückt) werden. Ein leerer Eintrag zeigt an, dass alle Zeilen dargestellt werden.
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,Tasten zum Umschalten von Funktionen>>. | scroll | `-MORE(50)-` | Scroll Indikator, zeigt an wie viele Zeilen unterhalb der zur Zeit dargestellten Zeile vorhanden sind.
| scroll | `-MORE(50)-` | Scroll Indikator, zeigt an wie viele Zeilen unterhalb der zur Zeit dargestellten Zeile vorhanden sind. | lag | `[Lag: 2.5]` | Verzögerungsanzeige, in Sekunden (keine Anzeige falls Verzögerung gering).
| lag | `Lag: 2.5` | Verzögerungsanzeige, in Sekunden (keine Anzeige falls Verzögerung gering). | hotlist | `[H: 3:#abc(2,5), 5]` | Liste der Buffer mit Aktivität (ungelesene Nachrichten) (für das Beispiel: 2 Highlights und 5 ungelesene Nachrichten im Kanal _#abc_, eine ungelesene Nachricht in Buffer #5).
| hotlist | `H: 3:#abc(2,5), 5` | Liste der Buffer mit Aktivität (ungelesene Nachrichten) (für das Beispiel: 2 Highlights und 5 ungelesene Nachrichten im Kanal _#abc_, eine ungelesene Nachricht in Buffer #5). | completion | `abc(2) def(5)` | Liste von Wörtern für Vervollständigung, die Zahl zeigt an wie viele Varianten möglich sind.
| typing | `Typing: bob, (alice)` | Schreibbenachrichtigung, siehe <<typing_notifications,Schreibbenachrichtigung>>.
| completion | `abc(2) def(5)` | Liste von Wörtern für Vervollständigung, die Zahl zeigt an wie viele Varianten möglich sind.
|=== |===
In der _input_ Bar lautet die Standardeinstellung: In der _input_ Bar lautet die Standardeinstellung:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Beispiel | Beschreibung | Item | Beispiel | Beschreibung
| input_prompt | `@Flashy(i)` | Input prompt, für irc: Nick und Modi (Modus "+i" bedeutet auf libera, unsichtbar). | input_prompt | `[@Flashy(i)]` | Input prompt, für irc: Nick und Modi (Modus "+i" bedeutet auf libera, unsichtbar).
| away | `away` | Abwesenheitsanzeige. | away | `(away)` | Abwesenheitsanzeige.
| input_search | `Search lines (~ str,msg)` | Suchindikatoren ("`~`": Groß-und Kleinschreibung ignorieren, "`==`": Groß-und Kleinschreibung berücksichtigen, "`str`": einfache Textsuche, "`regex`": suche mit regulären Ausdrücken, "`msg`": Suche in Nachrichten, "`pre`": Suche in Präfix, "`pre\|msg`": Suche in Präfix und Nachrichten). | input_search | `[Search lines (~ str,msg)]` | Suchindikatoren ("`~`": Groß-und Kleinschreibung ignorieren, "`==`": Groß-und Kleinschreibung berücksichtigen, "`str`": einfache Textsuche, "`regex`": suche mit regulären Ausdrücken, "`msg`": Suche in Nachrichten, "`pre`": Suche in Präfix, "`pre\|msg`": Suche in Präfix und Nachrichten).
| input_paste | `Paste 7 lines ? [ctrl-y] Ja [ctrl-n] Nein` | Nachfrage, ob sieben Zeilen eingefügt werden sollen. | input_paste | `[Paste 7 lines ? [ctrl-y] Ja [ctrl-n] Nein]` | Nachfrage, ob sieben Zeilen eingefügt werden sollen.
| input_text | `hi peter!` | Text der eingegeben wird. | input_text | `hi peter!` | Text der eingegeben wird.
|=== |===
Es existieren zwei Suchmodi: Es existieren zwei Suchmodi:
@@ -983,7 +981,8 @@ andere Items die zur Verfügung stehen (die aber nicht standardmäßig in einer
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Beispiel | Beschreibung | Item | Beispiel | Beschreibung
| buffer_count | `5` | absolute Anzahl an geöffneten Buffern. | buffer_count | `10` | absolute Anzahl an geöffneten Buffern.
| buffer_last_number | `10` | Nummer des letzten Buffers (kann sich unterscheiden von `buffer_count` wenn Option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> deaktiviert (`off`) ist).
| buffer_nicklist_count_all | `4` | Anzahl der sichtbaren Gruppen und Nicks in der Nickliste. | buffer_nicklist_count_all | `4` | Anzahl der sichtbaren Gruppen und Nicks in der Nickliste.
| buffer_nicklist_count_groups | `0` | Anzahl der sichtbaren Gruppen in der Nickliste. | buffer_nicklist_count_groups | `0` | Anzahl der sichtbaren Gruppen in der Nickliste.
| buffer_short_name | `#test` | Kurzname des aktuellen Buffers. | buffer_short_name | `#test` | Kurzname des aktuellen Buffers.
@@ -998,7 +997,7 @@ andere Items die zur Verfügung stehen (die aber nicht standardmäßig in einer
| irc_nick_host | `+Flashy!user@host.com+` | aktueller IRC Nick und Host. | irc_nick_host | `+Flashy!user@host.com+` | aktueller IRC Nick und Host.
| irc_nick_modes | `i` | IRC Modi für den eigenen Nick. | irc_nick_modes | `i` | IRC Modi für den eigenen Nick.
| irc_nick_prefix | `@` | IRC Nick-Präfix für den Kanal. | irc_nick_prefix | `@` | IRC Nick-Präfix für den Kanal.
| spacer | | spezielles Item um Text in einer Bar auszurichten, siehe <<item_spacer,Spacer item>>. | mouse_status | `M` | Status der Maus (keine Anzeige, falls Maus deaktiviert).
| spell_dict | `de,en` | zeigt an welche Wörterbücher für die Rechtschreibung im aktuellen Buffer genutzt werden. | spell_dict | `de,en` | zeigt an welche Wörterbücher für die Rechtschreibung im aktuellen Buffer genutzt werden.
| spell_suggest | `Glück,Glocke,Block` | Vorschläge für ein falsch geschriebenes Wort. | spell_suggest | `Glück,Glocke,Block` | Vorschläge für ein falsch geschriebenes Wort.
| tls_version | `TLS1.3` | TLS Version die für den IRC Server genutzt wird. | tls_version | `TLS1.3` | TLS Version die für den IRC Server genutzt wird.
@@ -2038,27 +2037,27 @@ Beispiel des fset-Buffer, der Optionen anzeigt, die mit `weechat.look` beginnen
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filter: weechat.look.* | Sortierung: ~name | Taste(input): alt+Lee>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: beendet den einfachen Anzeigemodus │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c
│ │durch Tastendruck [Standardwert: on] │ │hanges in input [default: on]
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines Aufzählung message │ │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words boolesch on │ │ │ weechat.look.align_multiline_words boolean on │
│ │ weechat.look.bar_more_down Zeichenkette "++" │ │ │ weechat.look.bar_more_down string "++" │
│ │ weechat.look.bar_more_left Zeichenkette "<<" │ │ │ weechat.look.bar_more_left string "<<" │
│ │ weechat.look.bar_more_right Zeichenkette ">>" │ │ │ weechat.look.bar_more_right string ">>" │
│ │ weechat.look.bar_more_up Zeichenkette "--" │ │ │ weechat.look.bar_more_up string "--" │
│ │## weechat.look.bare_display_exit_on_input boolesch on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format Zeichenkette "%H:%M" │ │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber boolesch on │ │ │ weechat.look.buffer_auto_renumber boolean on │
│ │ weechat.look.buffer_notify_default Aufzählung all │ │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position Aufzählung end │ │ │ weechat.look.buffer_position enum end │
│ │ weechat.look.buffer_search_case_sensitive boolesch off │ │ │ weechat.look.buffer_search_case_sensitive boolean off │
│ │ weechat.look.buffer_search_force_default boolesch off │ │ │ weechat.look.buffer_search_force_default boolean off │
│ │ weechat.look.buffer_search_history Aufzählung local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex boolesch off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where Aufzählung prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format Zeichenkette "%H:%M:%S" │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3457,16 +3456,14 @@ Standardmäßig sind keine Server angelegt. Es gibt keine Begrenzung für die
Anzahl von Servern. Server können mit dem Befehl <<command_irc_server,/server>> Anzahl von Servern. Server können mit dem Befehl <<command_irc_server,/server>>
angelegt werden. angelegt werden.
Zum Beispiel für eine Verbindung zu https://libera.chat/[libera.chat ^↗^^]: Um zum Beispiel eine TLS verschlüsselte Verbindung zu
https://libera.chat/[libera.chat ^↗^^] herzustellen:
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE] Um WeeChat beim Start direkt mit dem Server zu verbinden:
Der Standardport ist 6697 und TLS (verschlüsselter Datenverkehr) ist aktiviert.
Um WeeChat, beim Programmstart, direkt mit einem Server zu verbinden:
---- ----
/set irc.server.libera.autoconnect on /set irc.server.libera.autoconnect on
@@ -3483,7 +3480,7 @@ Kapitel über <<irc_sasl_authentication,SASL authentication>>):
---- ----
Wenn SASL nicht unterstützt wird, können Sie einen Befehl verwenden, um eine Wenn SASL nicht unterstützt wird, können Sie einen Befehl verwenden, um eine
Nachricht an nickserv zu senden, um sich zu authentifizieren: Nachricht an nickserv zu senden, um sich zu Authentifizieren:
---- ----
/set irc.server.libera.command "/msg nickserv identify ${sec.data.libera}" /set irc.server.libera.command "/msg nickserv identify ${sec.data.libera}"
@@ -3507,52 +3504,51 @@ Wenn Sie beispielsweise den _libera_-Server mit den obigen Befehlen erstellt hab
sehen Sie dies mit dem Befehl `/fset libera`: sehen Sie dies mit dem Befehl `/fset libera`:
.... ....
irc.server.libera.addresses Zeichenkette "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood integer null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect boolesch on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin Zeichenkette null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay integer null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic boolesch null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect boolesch null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay integer null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin boolesch null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay integer null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check integer null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks integer null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities Zeichenkette null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message Aufzählung null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command Zeichenkette null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay integer null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout integer null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes Zeichenkette null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 Aufzählung null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname Zeichenkette null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick Zeichenkette null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part Zeichenkette null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit Zeichenkette null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks Zeichenkette null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate boolesch null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify Zeichenkette null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password Zeichenkette null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy Zeichenkette null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname Zeichenkette null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode Zeichenkette null -> "r" irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_fail Aufzählung null -> reconnect irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_key Zeichenkette null -> "" irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_mechanism Aufzählung null -> plain irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_password Zeichenkette "${sec.data.libera}" irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_timeout integer null -> 15 irc.server.libera.sasl_username string "alice"
irc.server.libera.sasl_username Zeichenkette "alice" irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.split_msg_max_length integer null -> 512 irc.server.libera.tls boolean on
irc.server.libera.tls boolesch null -> on irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_cert Zeichenkette null -> "" irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_dhkey_size integer null -> 2048 irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_fingerprint Zeichenkette null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_password Zeichenkette null -> "" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_priorities Zeichenkette null -> "NORMAL" irc.server.libera.tls_verify boolean null -> on
irc.server.libera.tls_verify boolesch null -> on irc.server.libera.usermode string null -> ""
irc.server.libera.usermode Zeichenkette null -> "" irc.server.libera.username string null -> "alice"
irc.server.libera.username Zeichenkette null -> "${username}"
.... ....
Wenn Sie beispielsweise automatisch eine Verbindung zu allen von Ihnen Wenn Sie beispielsweise automatisch eine Verbindung zu allen von Ihnen
@@ -4052,7 +4048,7 @@ Spezifikation: https://ircv3.net/specs/extensions/message-tags[message-tags ^
Diese Funktion ermöglicht das Hinzufügen von Metadaten zu Nachrichten. + Diese Funktion ermöglicht das Hinzufügen von Metadaten zu Nachrichten. +
Diese Tags können mit dem Befehl `/debug tags` angezeigt werden. Diese Tags können mit dem Befehl `/debug tags` angezeigt werden.
Um diese Funktion zu verwenden, muss sie aktiviert werden: <<typing_notifications,Schreibbenachrichtigung>>. Um diese Funktion zu verwenden, muss sie aktiviert werden: <<typing_notifications,typing notifications>>.
[[irc_ircv3_monitor]] [[irc_ircv3_monitor]]
==== monitor ==== monitor
@@ -4123,7 +4119,7 @@ Mit dieser Funktion können Sie Ihren richtigen Namen ändern, indem Sie den
Spezifikation: https://ircv3.net/specs/client-tags/typing[typing ^↗^^] Spezifikation: https://ircv3.net/specs/client-tags/typing[typing ^↗^^]
Siehe das entsprechende Kapitel <<typing_notifications,Schreibbenachrichtigung>>. Siehe das entsprechende Kapitel <<typing_notifications,Typing notifications>>.
[[irc_ircv3_userhost_in_names]] [[irc_ircv3_userhost_in_names]]
==== userhost-in-names ==== userhost-in-names
@@ -4777,21 +4773,13 @@ Zum Beispiel:
Jetzt kann man sich über Port 9000 mit einem WeeChat oder einer Remote-Schnittstelle Jetzt kann man sich über Port 9000 mit einem WeeChat oder einer Remote-Schnittstelle
verbinden, indem das Passwort „mypassword“ verwendet wird. verbinden, indem das Passwort „mypassword“ verwendet wird.
Um eine lokale Verbindung via _api_ Relay mittels WeeChat herzustelen: So stellt man mit WeeChat eine Verbindung zu einem _api_ Relay her:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
Um eine entfernte Verbindung via _api_Relay mittels WeeChat herzustelen
(TLS wird dringend empfohlen):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
Der Remote-WeeChat muss dieselbe API-Version wie der lokale WeeChat nutzen. Der Remote-WeeChat muss dieselbe API-Version wie der lokale WeeChat nutzen.
Daher wird dringend empfohlen, auf dem Remote- und dem lokalen Client genau Daher wird dringend empfohlen, auf dem Remote- und dem lokalen Client genau
@@ -4833,7 +4821,7 @@ Ein WebSocket kann in HTML5, mit einer JavaScript Zeile, geöffnet werden:
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
Der Port (im Beispiel: 9500) ist der Port der in der Relay Erweiterung angegeben wurde. Der Port (im Beispiel: 9500) ist der Port der in der Relay Erweiterung angegeben wurde.
@@ -5899,7 +5887,7 @@ Aus Datenschutzgründen ist das Herunterladen von Skripten standardmäßig deakt
Um es zu aktivieren, geben Sie diesen Befehl ein: Um es zu aktivieren, geben Sie diesen Befehl ein:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
Dann können Sie die Liste der Skripte herunterladen und in einem separaten Buffer, Dann können Sie die Liste der Skripte herunterladen und in einem separaten Buffer,
@@ -5909,33 +5897,33 @@ mit dem Befehl <<command_script_script,/script>>, anzeigen lassen:
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 Skripten (Filter: {x}) | Sortierung: i,p,n | Alt+Taste/Eingabe: i=installieren, r=entfernen,>> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Behält die Gruppierung der Buffer nach S │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Startet einen Highlight Monitor Buffer. │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Sucht nach regulären Ausdrücken in Buffe │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Im Textbereich oder der Eingabezeile wir │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Schneller Wechsel zu Buffern. ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Macht Nachrichten Ä S T H E T I S C H an │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Alternative Textformatierung, nützlich f │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Fügt der Bar-Item eine zusätzliche Zeitz │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Fernbedienung für Amarok2 und zum anzeig │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Schickt private Nachrichten und Highligh │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Schickt einen URL Titel an einen User od │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Benachrichtigung von privaten Nachrichte │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Verhindert, dass ein Kennwort versehentl │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Zeigt den korrigierten Text an wenn der │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Anfragen werden automatisch beantwortet. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Fügt "@" Präfix bei der Nick Tab-Vervoll │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Zeigt an welche Musik gerade von Audacio │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | Automatische Authentifizierung mittels S │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | Ein einfaches Abwesenheit-Skript. │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Erlaubt automatische Authentisierung, we │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Springt zu Buffern nach deren Aktivität. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Automatisches speichern/laden von Option │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Öffnet erneut die Server und Channel die │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Betritt automatisch einen Kanal wenn man │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Buffer werden als gelesen markiert falls │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f│
│ │ automerge.py 0.2 2018-03-03 | Automatische Zusammenführung neuer Buffe│ │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time│
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+12 -14
View File
@@ -327,7 +327,6 @@ WeeChat "core" is located in following directories:
|    relay/ | Relay plugin (IRC proxy and relay for remote interfaces). |    relay/ | Relay plugin (IRC proxy and relay for remote interfaces).
|       relay.c | Main relay functions. |       relay.c | Main relay functions.
|       relay-auth.c | Clients authentication. |       relay-auth.c | Clients authentication.
|       relay-bar-item.c | Relay bar items.
|       relay-buffer.c | Relay buffer. |       relay-buffer.c | Relay buffer.
|       relay-client.c | Clients of relay. |       relay-client.c | Clients of relay.
|       relay-command.c | Relay commands. |       relay-command.c | Relay commands.
@@ -424,11 +423,10 @@ WeeChat "core" is located in following directories:
|          test-core-crypto.cpp | Tests: cryptographic functions. |          test-core-crypto.cpp | Tests: cryptographic functions.
|          test-core-dir.cpp | Tests: directory/file functions. |          test-core-dir.cpp | Tests: directory/file functions.
|          test-core-eval.cpp | Tests: evaluation of expressions. |          test-core-eval.cpp | Tests: evaluation of expressions.
|          test-core-hashtable.cpp | Tests: hashtables. |          test-core-hashtble.cpp | Tests: hashtables.
|          test-core-hdata.cpp | Tests: hdata. |          test-core-hdata.cpp | Tests: hdata.
|          test-core-hook.cpp | Tests: hooks. |          test-core-hook.cpp | Tests: hooks.
|          test-core-infolist.cpp | Tests: infolists. |          test-core-infolist.cpp | Tests: infolists.
|          test-core-input.cpp | Tests: input functions.
|          test-core-list.cpp | Tests: lists. |          test-core-list.cpp | Tests: lists.
|          test-core-network.cpp | Tests: network functions. |          test-core-network.cpp | Tests: network functions.
|          test-core-secure.cpp | Tests: secured data. |          test-core-secure.cpp | Tests: secured data.
@@ -1050,16 +1048,16 @@ _src/gui/gui-color.h_):
| 14 | weechat.color.chat_nick | 14 | weechat.color.chat_nick
| 15 | weechat.color.chat_nick_self | 15 | weechat.color.chat_nick_self
| 16 | weechat.color.chat_nick_other | 16 | weechat.color.chat_nick_other
| 17 | _(not used anymore since WeeChat 0.3.4)_ | 17 | _(not used any more since WeeChat 0.3.4)_
| 18 | _(not used anymore since WeeChat 0.3.4)_ | 18 | _(not used any more since WeeChat 0.3.4)_
| 19 | _(not used anymore since WeeChat 0.3.4)_ | 19 | _(not used any more since WeeChat 0.3.4)_
| 20 | _(not used anymore since WeeChat 0.3.4)_ | 20 | _(not used any more since WeeChat 0.3.4)_
| 21 | _(not used anymore since WeeChat 0.3.4)_ | 21 | _(not used any more since WeeChat 0.3.4)_
| 22 | _(not used anymore since WeeChat 0.3.4)_ | 22 | _(not used any more since WeeChat 0.3.4)_
| 23 | _(not used anymore since WeeChat 0.3.4)_ | 23 | _(not used any more since WeeChat 0.3.4)_
| 24 | _(not used anymore since WeeChat 0.3.4)_ | 24 | _(not used any more since WeeChat 0.3.4)_
| 25 | _(not used anymore since WeeChat 0.3.4)_ | 25 | _(not used any more since WeeChat 0.3.4)_
| 26 | _(not used anymore since WeeChat 0.3.4)_ | 26 | _(not used any more since WeeChat 0.3.4)_
| 27 | weechat.color.chat_host | 27 | weechat.color.chat_host
| 28 | weechat.color.chat_delimiters | 28 | weechat.color.chat_delimiters
| 29 | weechat.color.chat_highlight | 29 | weechat.color.chat_highlight
@@ -1364,5 +1362,5 @@ warnings, ... These words must be kept unchanged:
When there is a name after `+<<link_name>>+`, then you must translate it: When there is a name after `+<<link_name>>+`, then you must translate it:
---- ----
<<link_name,this text should be translated>> <<link_name,this text must be translated>>
---- ----
+3 -3
View File
@@ -269,7 +269,7 @@ for more info about the hotlist.
[[input_bar_size]] [[input_bar_size]]
=== How to use command line with more than one line? === How to use command line with more than one line?
The option _size_ in input bar can be set to a value greater than 1 (for fixed The option _size_ in input bar can be set to a value higher than 1 (for fixed
size, default size is 1) or 0 for dynamic size, and then option _size_max_ will size, default size is 1) or 0 for dynamic size, and then option _size_max_ will
set the max size (0 = no limit). set the max size (0 = no limit).
@@ -1006,7 +1006,7 @@ for help).
Scripts are not compatible with other IRC clients. Scripts are not compatible with other IRC clients.
[[scripts_update]] [[scripts_update]]
=== The command "/script update" cannot read scripts, how to fix that? === The command "/script update" can not read scripts, how to fix that?
First check questions about TLS connection in this FAQ. First check questions about TLS connection in this FAQ.
@@ -1238,7 +1238,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
[[supported_os]] [[supported_os]]
=== What is the list of supported platforms for WeeChat? Will it be ported to other operating systems? === What is the list of supported platforms for WeeChat? Will it be ported to other operating systems?
WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, macOS and Windows WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, Mac OS and Windows
(Cygwin and Windows Subsystem for Linux). (Cygwin and Windows Subsystem for Linux).
We do our best to run on as many platforms as possible. Help is welcome for We do our best to run on as many platforms as possible. Help is welcome for
+46 -70
View File
@@ -818,7 +818,7 @@ This function is not available in scripting API.
_WeeChat ≥ 3.8._ _WeeChat ≥ 3.8._
Case-sensitive string comparison. Case sensitive string comparison.
Prototype: Prototype:
@@ -854,7 +854,7 @@ This function is not available in scripting API.
_WeeChat ≥ 3.8._ _WeeChat ≥ 3.8._
Case-sensitive string comparison, for _max_ chars. Case sensitive string comparison, for _max_ chars.
Prototype: Prototype:
@@ -891,7 +891,7 @@ This function is not available in scripting API.
_Updated in 1.0, 3.8._ _Updated in 1.0, 3.8._
Case-insensitive string comparison. Case insensitive string comparison.
[NOTE] [NOTE]
Behavior has changed in version 3.8: now all uppercase letters are properly Behavior has changed in version 3.8: now all uppercase letters are properly
@@ -980,7 +980,7 @@ This function is not available in scripting API.
_Updated in 1.0, 3.8._ _Updated in 1.0, 3.8._
Case-insensitive string comparison, for _max_ chars. Case insensitive string comparison, for _max_ chars.
[NOTE] [NOTE]
Behavior has changed in version 3.8: now all uppercase letters are properly Behavior has changed in version 3.8: now all uppercase letters are properly
@@ -1085,7 +1085,7 @@ Arguments:
* _string1_: first string for comparison * _string1_: first string for comparison
* _string2_: second string for comparison * _string2_: second string for comparison
* _chars_ignored_: string with chars to ignored * _chars_ignored_: string with chars to ignored
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison, otherwise 0
[NOTE] [NOTE]
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
@@ -1095,7 +1095,7 @@ uppercase letters are properly converted to lowercase (by calling function
Return value: Return value:
* arithmetic result of subtracting the last compared UTF-8 char in * arithmetic result of subtracting the last compared UTF-8 char in
_string2_ (converted to lowercase if _case_sensitive_ is set to 0) from the last _string2_ (converted to lowercase if _case_sentitive_ is set to 0) from the last
compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is
set to 0): set to 0):
** < 0 if string1 < string2 ** < 0 if string1 < string2
@@ -1116,7 +1116,7 @@ This function is not available in scripting API.
_Updated in 1.3, 3.8._ _Updated in 1.3, 3.8._
Case-insensitive string search. Case insensitive string search.
[NOTE] [NOTE]
Behavior has changed in version 3.8: now all uppercase letters are properly Behavior has changed in version 3.8: now all uppercase letters are properly
@@ -1211,7 +1211,7 @@ Arguments:
* _string_: string * _string_: string
* _mask_: mask with wildcards (`+*+`), each wildcard matches 0 or more chars in * _mask_: mask with wildcards (`+*+`), each wildcard matches 0 or more chars in
the string the string
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison, otherwise 0
[NOTE] [NOTE]
Since version 1.0, wildcards are allowed inside the mask Since version 1.0, wildcards are allowed inside the mask
@@ -1273,7 +1273,7 @@ Arguments:
* _string_: string * _string_: string
* _masks_: list of masks, with a NULL after the last mask in list; each mask * _masks_: list of masks, with a NULL after the last mask in list; each mask
is compared to the string with the function <<_string_match,string_match>> is compared to the string with the function <<_string_match,string_match>>
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison, otherwise 0
[NOTE] [NOTE]
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
@@ -1599,7 +1599,7 @@ Flags must be at beginning of regular expression. Format is:
Allowed flags are: Allowed flags are:
* _e_: POSIX extended regular expression (_REG_EXTENDED_) * _e_: POSIX extended regular expression (_REG_EXTENDED_)
* _i_: case-insensitive (_REG_ICASE_) * _i_: case insensitive (_REG_ICASE_)
* _n_: match-any-character operators don't match a newline (_REG_NEWLINE_) * _n_: match-any-character operators don't match a newline (_REG_NEWLINE_)
* _s_: support for substring addressing of matches is not required (_REG_NOSUB_) * _s_: support for substring addressing of matches is not required (_REG_NOSUB_)
@@ -2792,7 +2792,7 @@ from first used to last):
== `+1+` == `+1+`
| `+==*+` | 2.9 | `+==*+` | 2.9
| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def ==* a*f+` + | >> `+abc def ==* a*f+` +
== `+1+` + == `+1+` +
+ +
@@ -2800,7 +2800,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!!*+` | 2.9 | `+!!*+` | 2.9
| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def !!* a*f+` + | >> `+abc def !!* a*f+` +
== `+0+` + == `+0+` +
+ +
@@ -2808,7 +2808,7 @@ from first used to last):
== `+1+` == `+1+`
| `+=*+` | 1.8 | `+=*+` | 1.8
| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def =* A*F+` + | >> `+abc def =* A*F+` +
== `+1+` + == `+1+` +
+ +
@@ -2816,7 +2816,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!*+` | 1.8 | `+!*+` | 1.8
| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def !* A*F+` + | >> `+abc def !* A*F+` +
== `+0+` + == `+0+` +
+ +
@@ -2824,7 +2824,7 @@ from first used to last):
== `+1+` == `+1+`
| `+==-+` | 2.9 | `+==-+` | 2.9
| Is included, case-sensitive | Is included, case sensitive
| >> `+abc def ==- bc+` + | >> `+abc def ==- bc+` +
== `+1+` + == `+1+` +
+ +
@@ -2832,7 +2832,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!!-+` | 2.9 | `+!!-+` | 2.9
| Is NOT included, case-sensitive | Is NOT included, case sensitive
| >> `+abc def !!- bc+` + | >> `+abc def !!- bc+` +
== `+0+` + == `+0+` +
+ +
@@ -2840,7 +2840,7 @@ from first used to last):
== `+1+` == `+1+`
| `+=-+` | 2.9 | `+=-+` | 2.9
| Is included, case-insensitive | Is included, case insensitive
| >> `+abc def =- BC+` + | >> `+abc def =- BC+` +
== `+1+` + == `+1+` +
+ +
@@ -2848,7 +2848,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!-+` | 2.9 | `+!-+` | 2.9
| Is NOT included, case-insensitive | Is NOT included, case insensitive
| >> `+abc def !- BC+` + | >> `+abc def !- BC+` +
== `+0+` + == `+0+` +
+ +
@@ -4002,7 +4002,7 @@ Arguments:
Return value: Return value:
* real position (in bytes) * real potision (in bytes)
C example: C example:
@@ -6967,7 +6967,7 @@ my_section_delete_option_cb (const void *pointer, void *data,
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */ /* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
} }
/* standard section, user cannot add/delete options */ /* standard section, user can not add/delete options */
struct t_config_section *new_section1 = struct t_config_section *new_section1 =
weechat_config_new_section (config_file, "section1", 0, 0, weechat_config_new_section (config_file, "section1", 0, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
@@ -8122,7 +8122,7 @@ def config_boolean_inherited(option: str) -> int: ...
# example # example
option = weechat.config_get("irc.server.libera.autoconnect") option = weechat.config_get("irc.server.libera.autoconnect")
autoconnect = weechat.config_boolean_inherited(option) autoconect = weechat.config_boolean_inherited(option)
---- ----
==== config_integer ==== config_integer
@@ -9423,7 +9423,7 @@ _WeeChat ≥ 0.3.6, updated in 2.0._
Remove key binding(s). Remove key binding(s).
[CAUTION] [WARNING]
When calling this function, ensure that you will not remove a user key binding. When calling this function, ensure that you will not remove a user key binding.
Prototype: Prototype:
@@ -10010,7 +10010,7 @@ C examples:
[source,c] [source,c]
---- ----
/* hook modifier with priority = 2000 */ /* hook modifier with priority = 2000 */
/* high priority: called before other modifier callbacks */ /* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL); weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */ /* hook two signals with priority = 3000 */
@@ -10476,7 +10476,7 @@ Arguments:
* _flag_read_: 1 = catch read event, 0 = ignore * _flag_read_: 1 = catch read event, 0 = ignore
* _flag_write_: 1 = catch write event, 0 = ignore * _flag_write_: 1 = catch write event, 0 = ignore
* _flag_exception_: 1 = catch exception event, 0 = ignore * _flag_exception_: 1 = catch exception event, 0 = ignore
(_WeeChat ≥ 1.3_: this argument is ignored and not used anymore) (_WeeChat ≥ 1.3_: this argument is ignored and not used any more)
* _callback_: function called a selected event occurs for file (or socket), * _callback_: function called a selected event occurs for file (or socket),
arguments and return value: arguments and return value:
** _const void *pointer_: pointer ** _const void *pointer_: pointer
@@ -10540,7 +10540,7 @@ _Updated in 1.5._
Hook a process (launched with fork), and catch output. Hook a process (launched with fork), and catch output.
[NOTE] [NOTE]
Since version 0.3.9.2, the shell is not used anymore to execute the command. Since version 0.3.9.2, the shell is not used any more to execute the command.
WeeChat makes an automatic split of the command and its arguments (like the WeeChat makes an automatic split of the command and its arguments (like the
shell does). + shell does). +
If the split is not correct (according to quotes in your command), or if you If the split is not correct (according to quotes in your command), or if you
@@ -11578,7 +11578,7 @@ C example:
[source,c] [source,c]
---- ----
int int
my_line_cb (const void *pointer, void *data, struct t_hashtable *line) my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
{ {
struct t_hashtable *hashtable; struct t_hashtable *hashtable;
@@ -12193,7 +12193,7 @@ List of signals sent by WeeChat and plugins:
| String: text sent to buffer. | String: text sent to buffer.
| Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). + | Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). +
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q" If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q"
cannot be used anymore to close the buffer. can not be used any more to close the buffer.
| weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8 | weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8
| - | -
@@ -12488,7 +12488,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
==== hook_signal_send ==== hook_signal_send
_Updated in 1.0, 4.5.0._ _Updated in 1.0._
Send a signal. Send a signal.
@@ -12502,20 +12502,10 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
Arguments: Arguments:
* _signal_: signal to send; flags are allowed before the signal name (see below) * _signal_: signal to send
_(WeeChat ≥ 4.5.0)_
* _type_data_: type of data sent with signal (see <<_hook_signal,hook_signal>>) * _type_data_: type of data sent with signal (see <<_hook_signal,hook_signal>>)
* _signal_data_: data sent with signal * _signal_data_: data sent with signal
The signal name can contain flags with the following format: `[flags:xxx,yyy]signal`
where `xxx` and `yyy` are names of flags, and `signal` the signal name. +
The following flags are supported:
* _stop_on_error_: exit immediately if a callback returns WEECHAT_RC_ERROR
(remaining callbacks are then NOT executed) _(WeeChat ≥ 4.5.0)_
* _ignore_eat_: consider any callback returning WEECHAT_RC_OK_EAT is in fact
WEECHAT_RC_OK and execute remaining callbacks _(WeeChat ≥ 4.5.0)_
Return value _(WeeChat ≥ 1.0)_: Return value _(WeeChat ≥ 1.0)_:
* return code of last callback executed (_WEECHAT_RC_OK_ if no callback was * return code of last callback executed (_WEECHAT_RC_OK_ if no callback was
@@ -12529,8 +12519,6 @@ C example:
[source,c] [source,c]
---- ----
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string); int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
WEECHAT_HOOK_SIGNAL_STRING, my_string);
---- ----
Script (Python): Script (Python):
@@ -12540,10 +12528,8 @@ Script (Python):
# prototype # prototype
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ... def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
# examples # example
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string) rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
---- ----
[[signal_logger_backlog]] [[signal_logger_backlog]]
@@ -12828,7 +12814,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
==== hook_hsignal_send ==== hook_hsignal_send
_WeeChat ≥ 0.3.4, updated in 1.0, 4.5.0._ _WeeChat ≥ 0.3.4, updated in 1.0._
Send a hsignal (signal with hashtable). Send a hsignal (signal with hashtable).
@@ -12841,8 +12827,7 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
Arguments: Arguments:
* _signal_: signal to send; flags are allowed before the signal name * _signal_: signal to send
(see function <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
* _hashtable_: hashtable * _hashtable_: hashtable
Return value _(WeeChat ≥ 1.0)_: Return value _(WeeChat ≥ 1.0)_:
@@ -12857,7 +12842,7 @@ C example:
[source,c] [source,c]
---- ----
int rc, rc2; int rc;
struct t_hashtable *hashtable = weechat_hashtable_new (8, struct t_hashtable *hashtable = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
@@ -12867,7 +12852,6 @@ if (hashtable)
{ {
weechat_hashtable_set (hashtable, "key", "value"); weechat_hashtable_set (hashtable, "key", "value");
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable); rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
weechat_hashtable_free (hashtable); weechat_hashtable_free (hashtable);
} }
---- ----
@@ -12879,9 +12863,8 @@ Script (Python):
# prototype # prototype
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ... def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
# examples # example
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"}) rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
---- ----
[[hsignal_irc_redirect_command]] [[hsignal_irc_redirect_command]]
@@ -14425,7 +14408,7 @@ Arguments:
** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ ** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_
* _name_: name of buffer, if it is NULL or empty string, the current buffer is * _name_: name of buffer, if it is NULL or empty string, the current buffer is
returned (buffer displayed by current window); if the name starts with returned (buffer displayed by current window); if the name starts with
`(?i)`, the search is case-insensitive _(WeeChat ≥ 1.0)_ `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_
Return value: Return value:
@@ -14676,7 +14659,7 @@ Arguments:
** _next_line_id_: next line id in buffer _(WeeChat ≥ 3.8)_ ** _next_line_id_: next line id in buffer _(WeeChat ≥ 3.8)_
** _time_for_each_line_: 1 if time is displayed for each line in buffer (default), otherwise 0 ** _time_for_each_line_: 1 if time is displayed for each line in buffer (default), otherwise 0
** _nicklist_: 1 if nicklist is enabled, otherwise 0 ** _nicklist_: 1 if nicklist is enabled, otherwise 0
** _nicklist_case_sensitive_: 1 if nicks are case-sensitive, otherwise 0 ** _nicklist_case_sensitive_: 1 if nicks are case sensitive, otherwise 0
** _nicklist_max_length_: max length for a nick ** _nicklist_max_length_: max length for a nick
** _nicklist_display_groups_: 1 if groups are displayed, otherwise 0 ** _nicklist_display_groups_: 1 if groups are displayed, otherwise 0
** _nicklist_count_: number of nicks and groups in nicklist ** _nicklist_count_: number of nicks and groups in nicklist
@@ -14702,7 +14685,7 @@ Arguments:
** _text_search_direction_: direction for search: ** _text_search_direction_: direction for search:
*** 0: backward search (direction: oldest messages/commands) *** 0: backward search (direction: oldest messages/commands)
*** 1: forward search (direction: newest messages/commands) *** 1: forward search (direction: newest messages/commands)
** _text_search_exact_: 1 if text search is case-sensitive ** _text_search_exact_: 1 if text search is case sensitive
** _text_search_regex_: 1 if searching with a regular expression ** _text_search_regex_: 1 if searching with a regular expression
** _text_search_where_: ** _text_search_where_:
*** 0: no search at this moment *** 0: no search at this moment
@@ -14879,12 +14862,6 @@ Properties:
are *NOT* checked) + are *NOT* checked) +
"-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_. "-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_.
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
| priority: add buffer to hotlist with this priority
(conditions defined in option _weechat.look.hotlist_add_conditions_
are checked).
| completion_freeze | | "0" or "1" | completion_freeze | | "0" or "1"
| "0": no freeze of completion (default value) | "0": no freeze of completion (default value)
(global setting, buffer pointer is not used) + (global setting, buffer pointer is not used) +
@@ -14956,7 +14933,7 @@ Properties:
| "0" to remove nicklist for buffer, "1" to add nicklist for buffer. | "0" to remove nicklist for buffer, "1" to add nicklist for buffer.
| nicklist_case_sensitive | | "0" or "1" | nicklist_case_sensitive | | "0" or "1"
| "0" to have case-insensitive nicklist, "1" to have case-sensitive nicklist. | "0" to have case insensitive nicklist, "1" to have case sensitive nicklist.
| nicklist_display_groups | | "0" or "1" | nicklist_display_groups | | "0" or "1"
| "0" to hide nicklist groups, "1" to display nicklist groups. | "0" to hide nicklist groups, "1" to display nicklist groups.
@@ -15213,7 +15190,7 @@ Arguments:
** wildcard `+*+` is allowed in name ** wildcard `+*+` is allowed in name
[NOTE] [NOTE]
Since version 4.0.0, comparison of buffer names is case-sensitive. Since version 4.0.0, comparison of buffer names is case sensitive.
Return value: Return value:
@@ -16873,7 +16850,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
==== command_options ==== command_options
_WeeChat ≥ 2.5, updated in 4.0.0, 4.5.0._ _WeeChat ≥ 2.5, updated in 4.0.0._
Execute a command or send text to buffer with options. Execute a command or send text to buffer with options.
@@ -16889,14 +16866,13 @@ Arguments:
* _buffer_: buffer pointer (command is executed on this buffer, use NULL for * _buffer_: buffer pointer (command is executed on this buffer, use NULL for
current buffer) current buffer)
* _command_: command to execute (if beginning with a `/` or a command char), * _command_: command to execute (if beginning with a "/"), or text to send to
or text to send to buffer buffer
* _options_: a hashtable with some options (keys and values must be string) * _options_: a hashtable with some options (keys and values must be string)
(can be NULL): (can be NULL):
** _commands_: a comma-separated list of commands allowed to be executed during ** _commands_: a comma-separated list of commands allowed to be executed during
this call (see function <<_string_match_list,string_match_list>> for the this call; see function <<_string_match_list,string_match_list>> for the
format); the special value `-` (hyphen-minus) disables the execution of commands format
and the string in _command_ is sent as-is to the buffer (_WeeChat ≥ 4.5.0_)
** _delay_: delay to execute command, in milliseconds ** _delay_: delay to execute command, in milliseconds
** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_) ** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_)
@@ -16929,7 +16905,7 @@ Script (Python):
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ... def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# example: allow any command except /exec # example: allow any command except /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"}) rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
---- ----
[[completion]] [[completion]]
@@ -19514,7 +19490,7 @@ Arguments:
* _pointer2_: pointer to second WeeChat/plugin object * _pointer2_: pointer to second WeeChat/plugin object
* _name_: variable name or path to a variable name; for arrays, the name can be * _name_: variable name or path to a variable name; for arrays, the name can be
"N|name" where N is the index in array (starting at 0), for example: "2|name" "N|name" where N is the index in array (starting at 0), for example: "2|name"
* _case_sensitive_: 1 for case-sensitive comparison of strings, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison of strings, otherwise 0
Return value: Return value:
+1 -1
View File
@@ -267,7 +267,7 @@ Close a server, channel or private buffer (`/close` is an alias for
/close /close
---- ----
[CAUTION] [WARNING]
Closing the server buffer will close all channel/private buffers. Closing the server buffer will close all channel/private buffers.
Disconnect from server, on the server buffer: Disconnect from server, on the server buffer:
+5 -104
View File
@@ -101,9 +101,7 @@ Examples:
[[authentication]] [[authentication]]
== Authentication == Authentication
The password must be sent in the header `Authorization` with `Basic` The password must be sent in the header `Authorization` with `Basic` authentication schema.
authentication schema or in the header `Sec-WebSocket-Protocol` (see details
below).
The password can be sent as plain text or hashed, with one of these formats The password can be sent as plain text or hashed, with one of these formats
for user and password: for user and password:
@@ -137,8 +135,8 @@ Example:
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6`: `hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6`:
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`. `aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
The headers `Authorization` and `Sec-WebSocket-Protocol` are allowed in the first The header `Authorization` is allowed in the first request with websocket protocol
request with the websocket protocol or any HTTP request in the other cases. or any HTTP request in the other cases.
Request example with plain text password: Request example with plain text password:
@@ -264,36 +262,6 @@ HTTP/1.1 401 Unauthorized
} }
---- ----
[[authentication_sec_websocket_protocol]]
=== Sec-WebSocket-Protocol
The JavaScript WebSocket API used in current web browsers does not support
specifying the `Authorization` header. Therefore it's also supported to send
the password in the `Sec-WebSocket-Protocol` header which is the only header
possible to set with this API.
To use this header, you must specify the sub-protocols `api.weechat` and
`base64url.bearer.authorization.weechat.<auth>` where `<auth>` is the base64url
encoded string of the password in the same format as explained above.
Example with password `secret_password` encoded in plain text. This makes the
string to base64url encode `plain:secret_password` which is
`cGxhaW46c2VjcmV0X3Bhc3N3b3Jk`.
----
Sec-WebSocket-Protocol: api.weechat, base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk
----
This can be set with the JavaScript WebSocket API like this:
[source,javascript]
----
const ws = new WebSocket("wss://localhost:9000/api", [
"api.weechat",
"base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk",
])
----
[[compression]] [[compression]]
== Compression == Compression
@@ -1184,7 +1152,7 @@ Body parameters:
* `buffer_id` (integer, optional): buffer unique identifier (not to be confused * `buffer_id` (integer, optional): buffer unique identifier (not to be confused
with the buffer number, which is different) with the buffer number, which is different)
* `buffer_name` (string, optional, default: `core.weechat`): buffer name * `buffer` (string, optional, default: `core.weechat`): buffer name
* `command` (string, **required**): command or text to send to the buffer * `command` (string, **required**): command or text to send to the buffer
Request example: say "hello!" on channel #weechat: Request example: say "hello!" on channel #weechat:
@@ -1192,7 +1160,7 @@ Request example: say "hello!" on channel #weechat:
[source,shell] [source,shell]
---- ----
curl -L -u 'plain:secret_password' -X POST \ curl -L -u 'plain:secret_password' -X POST \
-d '{"buffer_name": "irc.libera.#weechat", "command": "hello!"}' \ -d '{"buffer": "irc.libera.#weechat", "command": "hello!"}' \
'https://localhost:9000/api/input' 'https://localhost:9000/api/input'
---- ----
@@ -1422,10 +1390,6 @@ Requests to WeeChat are made with a JSON object containing these fields:
* `body` (object or array): the body (optional, for `POST` and `PUT` methods) * `body` (object or array): the body (optional, for `POST` and `PUT` methods)
* `request_id` (string): identifier sent back in the response * `request_id` (string): identifier sent back in the response
Multiple requests can be sent at once using an array of objects, each object
being a separate request. +
Requests are executed in the order received (see example below).
Responses to client are made with a JSON object containing these fields: Responses to client are made with a JSON object containing these fields:
* `code` (integer): HTTP response code (example: `200`) * `code` (integer): HTTP response code (example: `200`)
@@ -1515,69 +1479,6 @@ Response:
} }
---- ----
Requests example: send two requests at once: get list of all buffers with lines
and nicks, then synchronize with the remote:
[source,json]
----
[
{
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
"request_id": "initial_sync"
},
{
"request": "POST /api/sync",
"body": {
"colors": "weechat"
}
}
]
----
[NOTE]
It is recommended to send the synchronization request together with the first
request that is fetching data, so that no events are missed.
First response (body with buffers is truncated for readability):
[source,json]
----
{
"code": 200,
"message": "OK",
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
"request_body": null,
"request_id": "initial_sync",
"body_type": "buffers",
"body": [
{
"id": 1709932823238637,
"name": "core.weechat",
"short_name": "weechat",
"number": 1,
"type": "formatted"
}
]
}
----
Second response:
[source,json]
----
{
"code": 204,
"message": "No Content",
"request": "POST /api/sync",
"request_body": {
"colors": "weechat"
},
"request_id": null,
"body_type": null,
"body": null
}
----
WeeChat pushes data to the client at any time on some events: when lines are WeeChat pushes data to the client at any time on some events: when lines are
displayed, buffers added/removed/changed, nicks added/removed/changed, etc. displayed, buffers added/removed/changed, nicks added/removed/changed, etc.
+1 -1
View File
@@ -979,7 +979,7 @@ Arguments:
Examples: Examples:
* Send command "/help filter" on WeeChat core buffer: * Send command "/help filter" on WeeChat core bufer:
---- ----
input core.weechat /help filter input core.weechat /help filter
+98 -110
View File
@@ -467,7 +467,7 @@ crash immediately in case of problem:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
[CAUTION] [WARNING]
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
@@ -604,7 +604,7 @@ include::includes/cmdline_options.en.adoc[tag=standard]
Some extra options are available for debug purposes only: Some extra options are available for debug purposes only:
[CAUTION] [WARNING]
Do *NOT* use any of these options in production! Do *NOT* use any of these options in production!
include::includes/cmdline_options.en.adoc[tag=debug] include::includes/cmdline_options.en.adoc[tag=debug]
@@ -877,7 +877,7 @@ Example of terminal with WeeChat:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ bars "status" and "input" bar "nicklist" ▲ ▲ bars "status" and "input" bar "nicklist" ▲
@@ -916,41 +916,39 @@ Bar _status_ has following default items:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Example | Description | Item | Example | Description
| time | `12:55` | Time. | time | `[12:55]` | Time.
| buffer_last_number | `5` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`). | buffer_last_number | `[5]` | Number of last buffer in list.
| buffer_plugin | `irc/libera` | Plugin of current buffer (irc plugin can add IRC server name used by buffer). | buffer_plugin | `[irc/libera]` | Plugin of current buffer (irc plugin can add IRC server name used by buffer).
| buffer_number | `2` | Current buffer number. | buffer_number | `2` | Current buffer number.
| buffer_name | `#test` | Current buffer name. | buffer_name | `#test` | Current buffer name.
| buffer_modes | `+n` | IRC channel modes. | buffer_modes | `+n` | IRC channel modes.
| buffer_nicklist_count | `4` | Number of nicks displayed in nicklist. | buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
| buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed. | buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed.
| buffer_filter | `+*+` | Filtering indicator: `+*+` means some lines are filtered (hidden), empty value means all lines are displayed. | buffer_filter | `+*+` | Filtering indicator: `+*+` means some lines are filtered (hidden), empty value means all lines are displayed.
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,toggle keys>>. | scroll | `-MORE(50)-` | Scroll indicator, with number of lines below last line displayed.
| scroll | `-MORE(50)-` | Scroll indicator, with number of lines below last line displayed. | lag | `[Lag: 2.5]` | Lag indicator, in seconds (hidden if lag is low).
| lag | `Lag: 2.5` | Lag indicator, in seconds (hidden if lag is low). | hotlist | `[H: 3:#abc(2,5), 5]` | List of buffers with activity (unread messages) (in example, 2 highlights and 5 unread messages on _#abc_, one unread message on buffer #5).
| hotlist | `H: 3:#abc(2,5), 5` | List of buffers with activity (unread messages) (in example, 2 highlights and 5 unread messages on _#abc_, one unread message on buffer #5). | completion | `abc(2) def(5)` | List of words for completion, with number of possible completions for each word.
| typing | `Typing: bob, (alice)` | Typing notification, see <<typing_notifications,typing notifications>>.
| completion | `abc(2) def(5)` | List of words for completion, with number of possible completions for each word.
|=== |===
Bar _input_ has following default items: Bar _input_ has following default items:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Example | Description | Item | Example | Description
| input_prompt | `@Flashy(i)` | Input prompt, for irc: nick and modes (mode "+i" means invisible on libera). | input_prompt | `[@Flashy(i)]` | Input prompt, for irc: nick and modes (mode "+i" means invisible on libera).
| away | `away` | Away indicator. | away | `(away)` | Away indicator.
| input_search | `Search lines (~ str,msg)` | Search indicator (see below) | input_search | `[Search lines (~ str,msg)]` | Search indicator (see below)
| input_paste | `Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No` | Question to user for pasting lines. | input_paste | `[Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No]` | Question to user for pasting lines.
| input_text | `hi peter!` | Input text. | input_text | `hi peter!` | Input text.
|=== |===
There are two search modes: There are two search modes:
* search in lines, for example `[Search lines (~ str,msg)]`, with the following info: * search in lines, for example `[Search lines (~ str,msg)]`, with the following info:
** `~`: case-insensitive ** `~`: case insensitive
** `==`: case-sensitive ** `==`: case sensitive
** `str`: search string ** `str`: search string
** `regex`: search regular expression ** `regex`: search regular expression
** `msg`: search in messages ** `msg`: search in messages
@@ -958,8 +956,8 @@ There are two search modes:
** `pre\|msg`: search in prefixes and messages. ** `pre\|msg`: search in prefixes and messages.
* search in commands history, for example `[Search command (~ str,local)]`, * search in commands history, for example `[Search command (~ str,local)]`,
with the following info: with the following info:
** `~`: case-insensitive ** `~`: case insensitive
** `==`: case-sensitive ** `==`: case sensitive
** `str`: search string ** `str`: search string
** `regex`: search regular expression ** `regex`: search regular expression
** `local`: search in buffer local history ** `local`: search in buffer local history
@@ -978,7 +976,8 @@ Other items available (not used in bars by default):
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Example | Description | Item | Example | Description
| buffer_count | `5` | Total number of buffers opened. | buffer_count | `10` | Total number of buffers opened.
| buffer_last_number | `10` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist. | buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
| buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist. | buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist.
| buffer_short_name | `#test` | Current buffer short name. | buffer_short_name | `#test` | Current buffer short name.
@@ -993,7 +992,7 @@ Other items available (not used in bars by default):
| irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host. | irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host.
| irc_nick_modes | `i` | IRC modes for self nick. | irc_nick_modes | `i` | IRC modes for self nick.
| irc_nick_prefix | `@` | IRC nick prefix on channel. | irc_nick_prefix | `@` | IRC nick prefix on channel.
| spacer | | Special item used to align text in bars, see <<item_spacer,Spacer item>>. | mouse_status | `M` | Mouse status (empty if mouse is disabled).
| spell_dict | `fr,en` | Spelling dictionaries used on current buffer. | spell_dict | `fr,en` | Spelling dictionaries used on current buffer.
| spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled). | spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled).
| tls_version | `TLS1.3` | TLS version in use for current IRC server. | tls_version | `TLS1.3` | TLS version in use for current IRC server.
@@ -1103,7 +1102,7 @@ data).
Examples of buffers: Examples of buffers:
* core buffer (created by WeeChat on startup, cannot be closed) * core buffer (created by WeeChat on startup, can not be closed)
* irc server (displays messages from server) * irc server (displays messages from server)
* irc channel * irc channel
* irc private messages * irc private messages
@@ -1341,7 +1340,7 @@ Tags commonly used (non-exhaustive list):
[width="100%",cols="1m,4",options="header"] [width="100%",cols="1m,4",options="header"]
|=== |===
| Tag | Description | Tag | Description
| no_filter | Line cannot be filtered. | no_filter | Line can not be filtered.
| no_highlight | No highlight is possible on line. | no_highlight | No highlight is possible on line.
| no_log | Line is not written in log file. | no_log | Line is not written in log file.
| log0 … log9 | Level of log for line (see the <<command_logger_logger,/logger>> command). | log0 … log9 | Level of log for line (see the <<command_logger_logger,/logger>> command).
@@ -1968,9 +1967,9 @@ These keys and actions are used on the IRC /list buffer (see command <<command_i
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+` | kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+`
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+`
| kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+`
| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | | | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). |
| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | | | `n:xxx` | Show only channels with "xxx" in name (case insensitive). |
| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). |
| | `u:n` | Show only channels with at least "n" users. | | | `u:n` | Show only channels with at least "n" users. |
| | `u:>n` | Show only channels with more than "n" users. | | | `u:>n` | Show only channels with more than "n" users. |
| | `u:<n` | Show only channels with less than "n" users. | | | `u:<n` | Show only channels with less than "n" users. |
@@ -2027,27 +2026,27 @@ Example of fset buffer displaying options starting with `weechat.look` :
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggl>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│ │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
│ │hanges in input [default: on] │ │ │hanges in input [default: on] │
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines enum message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words boolean on │ │ weechat.look.align_multiline_words boolean on │
│ │ weechat.look.bar_more_down string "++" │ │ weechat.look.bar_more_down string "++" │
│ │ weechat.look.bar_more_left string "<<" │ │ weechat.look.bar_more_left string "<<" │
│ │ weechat.look.bar_more_right string ">>" │ │ weechat.look.bar_more_right string ">>" │
│ │ weechat.look.bar_more_up string "--" │ │ weechat.look.bar_more_up string "--" │
│ │## weechat.look.bare_display_exit_on_input boolean on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format string "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber boolean on │ │ weechat.look.buffer_auto_renumber boolean on │
│ │ weechat.look.buffer_notify_default enum all │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position enum end │ │ weechat.look.buffer_position enum end │
│ │ weechat.look.buffer_search_case_sensitive boolean off │ │ weechat.look.buffer_search_case_sensitive boolean off │
│ │ weechat.look.buffer_search_force_default boolean off │ │ weechat.look.buffer_search_force_default boolean off │
│ │ weechat.look.buffer_search_history enum local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex boolean off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where enum prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format string "%H:%M:%S" │ │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3279,7 +3278,7 @@ Alias plugin lets you create alias for commands (from WeeChat or other
plugins). plugins).
Some aliases are created by default, with name in upper case (to make them Some aliases are created by default, with name in upper case (to make them
different from standard commands); commands are not case-sensitive in WeeChat, different from standard commands); commands are not case sensitive in WeeChat,
so for example `/close` runs the alias `/CLOSE`. so for example `/close` runs the alias `/CLOSE`.
List of default aliases: List of default aliases:
@@ -3401,15 +3400,13 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
By default no servers are defined. You can add as many servers as you want with By default no servers are defined. You can add as many servers as you want with
the <<command_irc_server,/server>> command. the <<command_irc_server,/server>> command.
For example to connect to https://libera.chat/[libera.chat ^↗^^]: For example to connect to https://libera.chat/[libera.chat ^↗^^]
with TLS (encrypted trafic):
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
Default port is 6697 and TLS (encrypted traffic) is enabled.
You can tell WeeChat to auto-connect to this server on startup: You can tell WeeChat to auto-connect to this server on startup:
---- ----
@@ -3450,11 +3447,11 @@ For example if you created the _libera_ server with the commands above, you'll
see this with the command `/fset libera`: see this with the command `/fset libera`:
.... ....
irc.server.libera.addresses string "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood integer null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autoconnect boolean on irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin string null -> "" irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_delay integer null -> 0
irc.server.libera.autojoin_dynamic boolean null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect boolean null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay integer null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
@@ -3468,18 +3465,17 @@ irc.server.libera.command string null -> ""
irc.server.libera.command_delay integer null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout integer null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes string null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 enum null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname string null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick string null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part string null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit string null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks string null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate boolean null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify string null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password string null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy string null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname string null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode string null -> "r"
irc.server.libera.sasl_fail enum null -> reconnect irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_key string null -> "" irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_mechanism enum null -> plain irc.server.libera.sasl_mechanism enum null -> plain
@@ -3487,15 +3483,15 @@ irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_timeout integer null -> 15 irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_username string "alice" irc.server.libera.sasl_username string "alice"
irc.server.libera.split_msg_max_length integer null -> 512 irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.tls boolean null -> on irc.server.libera.tls boolean on
irc.server.libera.tls_cert string null -> "" irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_dhkey_size integer null -> 2048 irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_fingerprint string null -> "" irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_password string null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_priorities string null -> "NORMAL" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_verify boolean null -> on irc.server.libera.tls_verify boolean null -> on
irc.server.libera.usermode string null -> "" irc.server.libera.usermode string null -> ""
irc.server.libera.username string null -> "${username}" irc.server.libera.username string null -> "alice"
.... ....
For example if you want to automatically connect to all servers you define For example if you want to automatically connect to all servers you define
@@ -3617,7 +3613,7 @@ Options in servers are:
[[irc_sasl_ecdsa_nist256p_challenge]] [[irc_sasl_ecdsa_nist256p_challenge]]
===== SASL ECDSA-NIST256P-CHALLENGE ===== SASL ECDSA-NIST256P-CHALLENGE
You must generate a private key in order to authenticate with the You must generate a private key in order to authentify with the
ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection). ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection).
You can generate the key with this command: You can generate the key with this command:
@@ -4695,21 +4691,13 @@ For example:
Now you can connect on port 9000 with a WeeChat or a remote interface using Now you can connect on port 9000 with a WeeChat or a remote interface using
password "mypassword". password "mypassword".
To connect to an _api_ relay running locally with WeeChat: To connect to an _api_ relay with WeeChat:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
To connect to an _api_ relay running elsewhere with WeeChat
(TLS is highly recommended):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
The remote WeeChat must expose the same API version as the local WeeChat, so The remote WeeChat must expose the same API version as the local WeeChat, so
it's highly recommended to use exactly the same WeeChat version on remote it's highly recommended to use exactly the same WeeChat version on remote
@@ -4724,7 +4712,7 @@ You can connect with a remote interface, see
https://weechat.org/about/interfaces/[this page ^↗^^]. https://weechat.org/about/interfaces/[this page ^↗^^].
[IMPORTANT] [IMPORTANT]
WeeChat itself cannot connect to another WeeChat with this protocol. WeeChat itself can NOT connect to another WeeChat with this protocol.
For example: For example:
@@ -4750,7 +4738,7 @@ A WebSocket can be opened in a HTML5 with a single line of JavaScript:
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
The port (9500 in example) is the port defined in Relay plugin. The port (9500 in example) is the port defined in Relay plugin.
@@ -4977,7 +4965,7 @@ A trigger has the following options (names are
| enabled | `on`, `off` | enabled | `on`, `off`
| When option is `off`, the trigger is disabled and actions are not executed | When option is `off`, the trigger is disabled and actions are not executed
anymore. any more.
| hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`, | hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`,
`+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+` `+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+`
@@ -5791,7 +5779,7 @@ For privacy considerations, the download of scripts is disabled by default. +
To enable it, type this command: To enable it, type this command:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
Then you can download the list of scripts and display them in a new buffer Then you can download the list of scripts and display them in a new buffer
@@ -5801,33 +5789,33 @@ with the <<command_script_script,/script>> command:
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, >> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Automatically keep buffers grouped by se│ │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Search regular expression in buffers or │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Use the weechat nick colors in the chat │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Quick jump to buffers. ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for re │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Add an alternate timezone item. │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script. │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highl │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidental │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Simple autoresponder. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@ │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currentl │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changi │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .wee │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Auto joins channels when invited. │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Mark buffers as read if there is no new │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | Automatically merge new buffers accordin │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+1 -1
View File
@@ -1280,7 +1280,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /ruta/a/weechat
[[supported_os]] [[supported_os]]
=== ¿Cual es la lista de plataformas para las que está disponible WeeChat? ¿Será portado a otros sistemas operativos? === ¿Cual es la lista de plataformas para las que está disponible WeeChat? ¿Será portado a otros sistemas operativos?
WeeChat se ejecuta sin problemas en la mayoría de distribuciones Linux/BSD, GNU/Hurd, macOS y Windows WeeChat se ejecuta sin problemas en la mayoría de distribuciones Linux/BSD, GNU/Hurd, Mac OS y Windows
(Cygwin y Windows Subsystem para Linux). (Cygwin y Windows Subsystem para Linux).
Hacemos todo lo posible para que pueda ser ejecutado en cuantas plataformas sea posible. La ayuda es bienvenida para Hacemos todo lo posible para que pueda ser ejecutado en cuantas plataformas sea posible. La ayuda es bienvenida para
+1 -1
View File
@@ -283,7 +283,7 @@ Cierra un servidor, canal o buffer privado (`/close` es un alias para
/close /close
---- ----
[CAUTION] [WARNING]
Al cerrar el buffer del servidor cerrará todos los buffer de canales/privados Al cerrar el buffer del servidor cerrará todos los buffer de canales/privados
Para desconectar del servidor, en el buffer del servidor ejecute: Para desconectar del servidor, en el buffer del servidor ejecute:
+1 -3
View File
@@ -328,7 +328,6 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|    relay/ | Extension Relay (proxy IRC et relai pour des interfaces distantes). |    relay/ | Extension Relay (proxy IRC et relai pour des interfaces distantes).
|       relay.c | Fonctions principales de Relay. |       relay.c | Fonctions principales de Relay.
|       relay-auth.c | Authentification des clients. |       relay-auth.c | Authentification des clients.
|       relay-bar-item.c | Objets de barre Relay.
|       relay-buffer.c | Tampon Relay. |       relay-buffer.c | Tampon Relay.
|       relay-client.c | Clients du relai. |       relay-client.c | Clients du relai.
|       relay-command.c | Commandes de Relay. |       relay-command.c | Commandes de Relay.
@@ -425,11 +424,10 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|          test-core-crypto.cpp | Tests : fonctions cryptographiques. |          test-core-crypto.cpp | Tests : fonctions cryptographiques.
|          test-core-dir.cpp | Tests : répertoires/fichiers. |          test-core-dir.cpp | Tests : répertoires/fichiers.
|          test-core-eval.cpp | Tests : évaluation d'expressions. |          test-core-eval.cpp | Tests : évaluation d'expressions.
|          test-core-hashtable.cpp | Tests : tables de hachage. |          test-core-hashtble.cpp | Tests : tables de hachage.
|          test-core-hdata.cpp | Tests : hdata. |          test-core-hdata.cpp | Tests : hdata.
|          test-core-hook.cpp | Tests : hooks. |          test-core-hook.cpp | Tests : hooks.
|          test-core-infolist.cpp | Tests : infolists. |          test-core-infolist.cpp | Tests : infolists.
|          test-core-input.cpp | Tests: fonctions d'entrée.
|          test-core-list.cpp | Tests : listes. |          test-core-list.cpp | Tests : listes.
|          test-core-network.cpp | Tests : fonctions réseau. |          test-core-network.cpp | Tests : fonctions réseau.
|          test-core-secure.cpp | Tests : données sécurisées. |          test-core-secure.cpp | Tests : données sécurisées.
+1 -1
View File
@@ -1288,7 +1288,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
[[supported_os]] [[supported_os]]
=== Quelle est la liste des plates-formes supportées par WeeChat ? Sera-t-il porté sur d'autres systèmes d'exploitation ? === Quelle est la liste des plates-formes supportées par WeeChat ? Sera-t-il porté sur d'autres systèmes d'exploitation ?
WeeChat tourne bien sur la plupart des distributions Linux/BSD, GNU/Hurd, macOS WeeChat tourne bien sur la plupart des distributions Linux/BSD, GNU/Hurd, Mac OS
et Windows (Cygwin et Windows Subsystem for Linux). et Windows (Cygwin et Windows Subsystem for Linux).
Nous faisons le maximum pour supporter le plus de plates-formes possible. Nous faisons le maximum pour supporter le plus de plates-formes possible.
+16 -43
View File
@@ -8256,7 +8256,7 @@ def config_boolean_inherited(option: str) -> int: ...
# exemple # exemple
option = weechat.config_get("irc.server.libera.autoconnect") option = weechat.config_get("irc.server.libera.autoconnect")
autoconnect = weechat.config_boolean_inherited(option) autoconect = weechat.config_boolean_inherited(option)
---- ----
==== config_integer ==== config_integer
@@ -9568,7 +9568,7 @@ _WeeChat ≥ 0.3.6, mis à jour dans la 2.0._
Supprimer une/des association(s) de touche(s). Supprimer une/des association(s) de touche(s).
[CAUTION] [WARNING]
Lors de l'appel à cette fonction, assurez-vous que vous n'allez pas supprimer Lors de l'appel à cette fonction, assurez-vous que vous n'allez pas supprimer
une touche définie par l'utilisateur. une touche définie par l'utilisateur.
@@ -11808,7 +11808,7 @@ Exemple en C :
[source,c] [source,c]
---- ----
int int
my_line_cb (const void *pointer, void *data, struct t_hashtable *line) my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
{ {
struct t_hashtable *hashtable; struct t_hashtable *hashtable;
@@ -12740,7 +12740,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
==== hook_signal_send ==== hook_signal_send
_Mis à jour dans la 1.0, 4.5.0._ _Mis à jour dans la 1.0._
Envoyer un signal. Envoyer un signal.
@@ -12754,23 +12754,11 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
Paramètres : Paramètres :
* _signal_ : signal à envoyer; des drapeaux sont autorisés avant le nom du signal * _signal_ : signal à envoyer
(voir ci-dessous) _(WeeChat ≥ 4.5.0)_
* _type_data_ : type de données à envoyer avec le signal (voir * _type_data_ : type de données à envoyer avec le signal (voir
<<_hook_signal,hook_signal>>) <<_hook_signal,hook_signal>>)
* _signal_data_ : données envoyées avec le signal * _signal_data_ : données envoyées avec le signal
Le nom du signal peut contenir des drapeaux avec le format suivant: `[flags:xxx,yyy]signal`
où `xxx` et `yyy` sont des noms de drapeaux et `signal` le nom du signal. +
Les drapeaux suivants sont supportés:
* _stop_on_error_: sortir immédiatement si une fonction de rappel retourne
WEECHAT_RC_ERROR (les autres fonctions de rappel ne sont donc PAS exécutées)
_(WeeChat ≥ 4.5.0)_
* _ignore_eat_: considérer que toute fonction de rappel renvoyant WEECHAT_RC_OK_EAT
est en fait WEECHAT_RC_OK et exécuter les fonctions de rappel restantes
_(WeeChat ≥ 4.5.0)_
Valeur de retour _(WeeChat ≥ 1.0)_ : Valeur de retour _(WeeChat ≥ 1.0)_ :
* code retour de la dernière fonction de rappel exécutée (_WEECHAT_RC_OK_ si * code retour de la dernière fonction de rappel exécutée (_WEECHAT_RC_OK_ si
@@ -12784,8 +12772,6 @@ Exemple en C :
[source,c] [source,c]
---- ----
int rc = weechat_hook_signal_send ("mon_signal", WEECHAT_HOOK_SIGNAL_STRING, ma_chaine); int rc = weechat_hook_signal_send ("mon_signal", WEECHAT_HOOK_SIGNAL_STRING, ma_chaine);
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
WEECHAT_HOOK_SIGNAL_STRING, my_string);
---- ----
Script (Python) : Script (Python) :
@@ -12795,10 +12781,8 @@ Script (Python) :
# prototype # prototype
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ... def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
# exemples # exemple
rc = weechat.hook_signal_send("mon_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, ma_chaine) rc = weechat.hook_signal_send("mon_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, ma_chaine)
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
---- ----
[[signal_logger_backlog]] [[signal_logger_backlog]]
@@ -13092,7 +13076,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
==== hook_hsignal_send ==== hook_hsignal_send
_WeeChat ≥ 0.3.4, mis à jour dans la 1.0, 4.5.0._ _WeeChat ≥ 0.3.4, mis à jour dans la 1.0._
Envoyer un hsignal (signal avec table de hachage). Envoyer un hsignal (signal avec table de hachage).
@@ -13105,8 +13089,7 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
Paramètres : Paramètres :
* _signal_ : signal à envoyer; des drapeaux sont autorisés avant le nom du signal * _signal_ : signal à envoyer
(voir la fonction <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
* _hashtable_ : table de hachage * _hashtable_ : table de hachage
Valeur de retour _(WeeChat ≥ 1.0)_ : Valeur de retour _(WeeChat ≥ 1.0)_ :
@@ -13121,7 +13104,7 @@ Exemple en C :
[source,c] [source,c]
---- ----
int rc, rc2; int rc;
struct t_hashtable *hashtable = weechat_hashtable_new (8, struct t_hashtable *hashtable = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
@@ -13131,7 +13114,6 @@ if (hashtable)
{ {
weechat_hashtable_set (hashtable, "clé", "valeur"); weechat_hashtable_set (hashtable, "clé", "valeur");
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable); rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
weechat_hashtable_free (hashtable); weechat_hashtable_free (hashtable);
} }
---- ----
@@ -13143,9 +13125,8 @@ Script (Python) :
# prototype # prototype
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ... def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
# exemples # exemple
rc = weechat.hook_hsignal_send("my_hsignal", {"clé": "valeur"}) rc = weechat.hook_hsignal_send("my_hsignal", {"clé": "valeur"})
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
---- ----
[[hsignal_irc_redirect_command]] [[hsignal_irc_redirect_command]]
@@ -15199,12 +15180,6 @@ Propriétés :
ne sont *PAS* vérifiées) + ne sont *PAS* vérifiées) +
"-1" : supprimer ce tampon de la hotlist _(WeeChat ≥ 1.0)_. "-1" : supprimer ce tampon de la hotlist _(WeeChat ≥ 1.0)_.
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
| priorité : ajouter ce tampon dans la hotlist avec cette priorité
(les conditions définies dans l'option _weechat.look.hotlist_add_conditions_
sont vérifiées).
| completion_freeze | | "0" ou "1" | completion_freeze | | "0" ou "1"
| "0" : pas de gel de la complétion (valeur par défaut) | "0" : pas de gel de la complétion (valeur par défaut)
(option globale, le pointeur vers le tampon n'est pas utilisé) + (option globale, le pointeur vers le tampon n'est pas utilisé) +
@@ -17235,7 +17210,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
==== command_options ==== command_options
_WeeChat ≥ 2.5, mis à jour dans la 4.0.0, 4.5.0._ _WeeChat ≥ 2.5, mis à jour dans la 4.0.0._
Exécuter une commande ou envoyer du texte au tampon avec des options. Exécuter une commande ou envoyer du texte au tampon avec des options.
@@ -17251,15 +17226,13 @@ Paramètres :
* _buffer_ : pointeur vers le tampon (la commande est exécutée sur ce tampon, * _buffer_ : pointeur vers le tampon (la commande est exécutée sur ce tampon,
NULL pour le tampon courant) NULL pour le tampon courant)
* _command_ : commande à exécuter (si elle commence par `/` ou un caractère de * _command_ : commande à exécuter (si elle commence par "/"), ou texte à
commande), ou texte à envoyer au tampon envoyer au tampon
* _options_ : table de hachage avec des options (les clés et valeurs doivent * _options_ : table de hachage avec des options (les clés et valeurs doivent
être des chaînes) (peut être NULL) : être des chaînes) (peut être NULL) :
** _commands_ : une liste de commandes autorisées pendant l'appel, séparées par ** _commands_ : une liste de commandes autorisées pendant l'appel, séparées par
des virgules (voir la fonction <<_string_match_list,string_match_list>> des virgules ; voir la fonction <<_string_match_list,string_match_list>>
pour le format); la valeur spéciale `-` (moins) désactive l'exécution des pour le format
commandes et la chaîne dans _command_ est envoyée telle quelle au tampon
(_WeeChat ≥ 4.5.0_)
** _delay_ : délai pour exécuter la commande, en millisecondes ** _delay_ : délai pour exécuter la commande, en millisecondes
** _split_newline_ : `1` pour découper les commandes sur le caractère de retour ** _split_newline_ : `1` pour découper les commandes sur le caractère de retour
à la ligne (`\n`) (_WeeChat ≥ 4.0.0_) à la ligne (`\n`) (_WeeChat ≥ 4.0.0_)
@@ -17293,7 +17266,7 @@ Script (Python) :
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ... def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# exemple : autoriser toute commande sauf /exec # exemple : autoriser toute commande sauf /exec
rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec", "delay": "2000"}) rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec"})
---- ----
[[completion]] [[completion]]
+1 -1
View File
@@ -276,7 +276,7 @@ Fermer un tampon serveur, canal ou privé (`/close` est un alias sur
/close /close
---- ----
[CAUTION] [WARNING]
Fermer le tampon du serveur fermera tous les tampons canaux/privés. Fermer le tampon du serveur fermera tous les tampons canaux/privés.
Se déconnecter du serveur, sur le tampon du serveur : Se déconnecter du serveur, sur le tampon du serveur :
+5 -104
View File
@@ -106,8 +106,7 @@ Exemples :
== Authentification == Authentification
Le mot de passe doit être envoyé dans l'en-tête `Authorization` avec le schéma Le mot de passe doit être envoyé dans l'en-tête `Authorization` avec le schéma
d'authentification `Basic` ou l'en-tête `Sec-WebSocket-Protocol` (voir les d'authentification `Basic`.
détails ci-dessous).
Le mot de passe peut être envoyé en clair ou haché, avec l'un des formats Le mot de passe peut être envoyé en clair ou haché, avec l'un des formats
suivants pour l'utilisateur et le mot de passe : suivants pour l'utilisateur et le mot de passe :
@@ -141,9 +140,8 @@ Exemple :
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6` : `hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6` :
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`. `aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
Les en-têtes `Authorization` et `Sec-WebSocket-Protocol` sont autorisés dans L'en-tête `Authorization` est autorisé dans la première requête avec le protocole
la première requête avec le protocole websocket ou toute requête HTTP dans websocket ou toute requête HTTP dans les autres cas.
les autres cas.
Exemple de requête avec un mot de passe en clair : Exemple de requête avec un mot de passe en clair :
@@ -269,36 +267,6 @@ HTTP/1.1 401 Unauthorized
} }
---- ----
[[authentication_sec_websocket_protocol]]
=== Sec-WebSocket-Protocol
L'API WebSocket de JavaScript utilisée dans les navigateurs actuels ne supporte pas
l'utilisation de l'en-tête `Authorization`. Il est donc aussi possible d'envoyer
le mot de passe dans l'en-tête `Sec-WebSocket-Protocol`, qui est le seul en-tête
utilisable avec cette API.
Pour utiliser cet en-tête, vous devez spécifier les sous-protocoles `api.weechat`
et `base64url.bearer.authorization.weechat.<auth>` où `<auth>` est la chaîne
encodée en base64url avec le mot de passe, dans le même format que ci-dessus.
Exemple avec un mot de passe `secret_password` en clair. Cela produit une chaîne
encodée en base64url avec le contenu `plain:secret_password` qui est
`cGxhaW46c2VjcmV0X3Bhc3N3b3Jk`.
----
Sec-WebSocket-Protocol: api.weechat, base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk
----
Cela peut être défini avec l'API WebSocket de JavaScript comme ceci:
[source,javascript]
----
const ws = new WebSocket("wss://localhost:9000/api", [
"api.weechat",
"base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk",
])
----
[[compression]] [[compression]]
== Compression == Compression
@@ -1196,7 +1164,7 @@ Paramètres du corps :
* `buffer_id` (entier, facultatif) : identifiant unique du tampon (à ne pas * `buffer_id` (entier, facultatif) : identifiant unique du tampon (à ne pas
confondre avec le numéro du tampon, qui est différent) confondre avec le numéro du tampon, qui est différent)
* `buffer_name` (chaîne, facultatif, par défaut: `core.weechat`) : nom de tampon * `buffer_name` (chaîne, facultatif) : nom de tampon
* `command` (chaîne, **obligatoire**) : commande ou texte à envoyer au tampon * `command` (chaîne, **obligatoire**) : commande ou texte à envoyer au tampon
Exemple de requête : dire "hello!" sur le canal #weechat : Exemple de requête : dire "hello!" sur le canal #weechat :
@@ -1204,7 +1172,7 @@ Exemple de requête : dire "hello!" sur le canal #weechat :
[source,shell] [source,shell]
---- ----
curl -L -u 'plain:secret_password' -X POST \ curl -L -u 'plain:secret_password' -X POST \
-d '{"buffer_name": "irc.libera.#weechat", "command": "hello!"}' \ -d '{"buffer": "irc.libera.#weechat", "command": "hello!"}' \
'https://localhost:9000/api/input' 'https://localhost:9000/api/input'
---- ----
@@ -1438,10 +1406,6 @@ les champs suivants :
* `body` (objet ou tableau) : le corps (facultatif, pour les méthodes `POST` et `PUT`) * `body` (objet ou tableau) : le corps (facultatif, pour les méthodes `POST` et `PUT`)
* `request_id` (chaîne): identifiant renvoyé dans la réponse * `request_id` (chaîne): identifiant renvoyé dans la réponse
Plusieurs requêtes peuvent être envoyées simultanément avec un tableau d'objets,
chaque objet étant une requête séparée. +
Les requêtes sont exécutées dans l'ordre reçu (voir l'exemple ci-dessous).
Les réponses vers le client sont faites avec un objet JSON qui contient Les réponses vers le client sont faites avec un objet JSON qui contient
les champs suivants : les champs suivants :
@@ -1535,69 +1499,6 @@ Réponse :
} }
---- ----
Exemple de requêtes: envoyer deux requêtes en même temps: obtenir la liste des
tampons avec les lignes et les pseudos, puis se synchroniser avec le relay distant:
[source,json]
----
[
{
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
"request_id": "initial_sync"
},
{
"request": "POST /api/sync",
"body": {
"colors": "weechat"
}
}
]
----
[NOTE]
Il est recommandé d'envoyer la requête de synchronisation en même temps que la
première requête qui récupère les données, afin qu'aucun évènement ne soit manqué.
Première réponse (le "body" avec les tampons est tronqué pour la lisibilité) :
[source,json]
----
{
"code": 200,
"message": "OK",
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
"request_body": null,
"request_id": "initial_sync",
"body_type": "buffers",
"body": [
{
"id": 1709932823238637,
"name": "core.weechat",
"short_name": "weechat",
"number": 1,
"type": "formatted"
}
]
}
----
Seconde réponse:
[source,json]
----
{
"code": 204,
"message": "No Content",
"request": "POST /api/sync",
"request_body": {
"colors": "weechat"
},
"request_id": null,
"body_type": null,
"body": null
}
----
WeeChat pousse des données au client à tout moment sur des évènements : lorsque WeeChat pousse des données au client à tout moment sur des évènements : lorsque
des lignes sont affichées, des tampons ajoutés/supprimés/changés, des pseudos des lignes sont affichées, des tampons ajoutés/supprimés/changés, des pseudos
ajoutés/supprimés/changés, etc. ajoutés/supprimés/changés, etc.
+121 -134
View File
@@ -466,7 +466,7 @@ ce qui provoquera immédiatement un plantage de WeeChat en cas de problème :
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
[CAUTION] [WARNING]
Vous ne devriez activer la vérification des adresses que si vous essayez de Vous ne devriez activer la vérification des adresses que si vous essayez de
provoquer un plantage, ce qui n'est pas recommandé en production. provoquer un plantage, ce qui n'est pas recommandé en production.
@@ -607,7 +607,7 @@ include::includes/cmdline_options.fr.adoc[tag=standard]
Quelques options supplémentaires sont disponibles pour du debug seulement : Quelques options supplémentaires sont disponibles pour du debug seulement :
[CAUTION] [WARNING]
N'utilisez *AUCUNE* de ces options in production ! N'utilisez *AUCUNE* de ces options in production !
include::includes/cmdline_options.fr.adoc[tag=debug] include::includes/cmdline_options.fr.adoc[tag=debug]
@@ -890,7 +890,7 @@ Exemple de terminal avec WeeChat :
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] salut peter !█ │ │ │[@Flashy(i)] salut peter !█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ barres "status" et "input" barre "nicklist" ▲ ▲ barres "status" et "input" barre "nicklist" ▲
@@ -930,34 +930,32 @@ La barre _status_ contient les objets (items) suivants par défaut :
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Objet (item) | Exemple | Description | Objet (item) | Exemple | Description
| time | `12:55` | Heure. | time | `[12:55]` | Heure.
| buffer_last_number | `5` | Numéro du dernier tampon (peut être différent de `buffer_count` si l'option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> est `off`). | buffer_last_number | `[5]` | Numéro du dernier tampon de la liste.
| buffer_plugin | `irc/libera` | Extension du tampon courant (l'extension irc peut afficher le nom du serveur IRC auquel est rattaché ce tampon). | buffer_plugin | `[irc/libera]` | Extension du tampon courant (l'extension irc peut afficher le nom du serveur IRC auquel est rattaché ce tampon).
| buffer_number | `2` | Numéro du tampon courant. | buffer_number | `2` | Numéro du tampon courant.
| buffer_name | `#test` | Nom du tampon courant. | buffer_name | `#test` | Nom du tampon courant.
| buffer_modes | `+n` | Modes du canal IRC. | buffer_modes | `+n` | Modes du canal IRC.
| buffer_nicklist_count | `4` | Nombre de pseudos affichés dans la liste des pseudos. | buffer_nicklist_count | `{4}` | Nombre de pseudos affichés dans la liste des pseudos.
| buffer_zoom | ! | `!` signifie que le tampon mélangé est zoomé, une valeur vide signifie que tous les tampons mélangés sont affichés. | buffer_zoom | ! | `!` signifie que le tampon mélangé est zoomé, une valeur vide signifie que tous les tampons mélangés sont affichés.
| buffer_filter | `+*+` | Indicateur de filtrage : `+*+` signifie que des lignes sont filtrées (cachées), une valeur vide signifie que toutes les lignes sont affichées. | buffer_filter | `+*+` | Indicateur de filtrage : `+*+` signifie que des lignes sont filtrées (cachées), une valeur vide signifie que toutes les lignes sont affichées.
| mouse_status | `M` | Statut de la souris (vide si la souris est désactivée), voir la commande <<command_weechat_mouse,/mouse>> et <<key_bindings_toggle_keys,Touches de bascule>>. | scroll | `-PLUS(50)-` | Indicateur de scroll, avec le nombre de lignes sous la dernière ligne affichée.
| scroll | `-PLUS(50)-` | Indicateur de scroll, avec le nombre de lignes sous la dernière ligne affichée. | lag | `[Lag: 2.5]` | Indicateur de "lag" (ralentissements réseau), en secondes (caché si le lag est faible).
| lag | `Lag: 2.5` | Indicateur de "lag" (ralentissements réseau), en secondes (caché si le lag est faible). | hotlist | `[H: 3:#abc(2,5), 5]` | Liste des tampons où il y a de l'activité (messages non lus) (dans cet exemple, 2 highlights et 5 messages non lus sur _#abc_, un message non lu sur le tampon numéro 5).
| hotlist | `H: 3:#abc(2,5), 5` | Liste des tampons où il y a de l'activité (messages non lus) (dans cet exemple, 2 highlights et 5 messages non lus sur _#abc_, un message non lu sur le tampon numéro 5). | completion | `abc(2) def(5)` | Liste des mots pour la complétion, avec le nombre de complétions possibles pour chaque mot.
| typing | `Écrit: bob, (alice)` | Notification de saisie, voir <<typing_notifications,Notifications de saisie>>.
| completion | `abc(2) def(5)` | Liste des mots pour la complétion, avec le nombre de complétions possibles pour chaque mot.
|=== |===
La barre _input_ contient les objets (items) suivants par défaut : La barre _input_ contient les objets (items) suivants par défaut :
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Objet (item) | Exemple | Description | Objet (item) | Exemple | Description
| input_prompt | `@Flashy(i)` | Prompt, pour irc : pseudo et modes (le mode "+i" signifie invisible sur libera). | input_prompt | `[@Flashy(i)]` | Prompt, pour irc : pseudo et modes (le mode "+i" signifie invisible sur libera).
| away | `absent` | Indicateur d'absence. | away | `(absent)` | Indicateur d'absence.
| input_search | `Recherche lignes (~ str,msg)` | Indicateur de recherche de texte (voir ci-dessous). | input_search | `[Recherche lignes (~ str,msg)]` | Indicateur de recherche de texte (voir ci-dessous).
| input_paste | `Coller 7 lignes ? [ctrl-y] Oui [ctrl-n] Non` | Question à l'utilisateur pour coller des lignes. | input_paste | `[Coller 7 lignes ? [ctrl-y] Oui [ctrl-n] Non]` | Question à l'utilisateur pour coller des lignes.
| input_text | `salut peter !` | Texte entré. | input_text | `salut peter !` | Texte entré.
|=== |===
Il y a deux modes de recherche : Il y a deux modes de recherche :
@@ -993,7 +991,8 @@ Autres objets (non utilisés dans des barres par défaut) :
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Objet (item) | Exemple | Description | Objet (item) | Exemple | Description
| buffer_count | `5` | Nombre total de tampons ouverts. | buffer_count | `10` | Nombre total de tampons ouverts.
| buffer_last_number | `10` | Numéro du dernier tampon (peut être différent de `buffer_count` si l'option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> est `off`).
| buffer_nicklist_count_all | `4` | Nombre de groupes et pseudos visibles dans la liste de pseudos. | buffer_nicklist_count_all | `4` | Nombre de groupes et pseudos visibles dans la liste de pseudos.
| buffer_nicklist_count_groups | `0` | Nombre de groupes visibles dans la liste de pseudos. | buffer_nicklist_count_groups | `0` | Nombre de groupes visibles dans la liste de pseudos.
| buffer_short_name | `#test` | Nom court du tampon courant. | buffer_short_name | `#test` | Nom court du tampon courant.
@@ -1008,7 +1007,7 @@ Autres objets (non utilisés dans des barres par défaut) :
| irc_nick_host | `+Flashy!user@host.com+` | Pseudo et hôte IRC. | irc_nick_host | `+Flashy!user@host.com+` | Pseudo et hôte IRC.
| irc_nick_modes | `i` | Modes IRC pour le pseudo. | irc_nick_modes | `i` | Modes IRC pour le pseudo.
| irc_nick_prefix | `@` | Préfixe de pseudo IRC sur le canal. | irc_nick_prefix | `@` | Préfixe de pseudo IRC sur le canal.
| spacer | | Objet spécial utilisé pour aligner le texte dans les barres, voir <<item_spacer,Objet d'espacement>>. | mouse_status | `M` | Statut de la souris (vide si la souris est désactivée).
| spell_dict | `fr,en` | Dictionnaires utilisés pour la vérification de l'orthographe sur le tampon courant. | spell_dict | `fr,en` | Dictionnaires utilisés pour la vérification de l'orthographe sur le tampon courant.
| spell_suggest | `print,prone,prune` | Suggestions pour le mot sous le curseur (si mal orthographié). | spell_suggest | `print,prone,prune` | Suggestions pour le mot sous le curseur (si mal orthographié).
| tls_version | `TLS1.3` | Version de TLS utilisée sur le serveur IRC courant. | tls_version | `TLS1.3` | Version de TLS utilisée sur le serveur IRC courant.
@@ -2065,27 +2064,27 @@ Exemple de tampon fset affichant les options commençant par `weechat.look` :
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filtre : weechat.look.* | Tri : ~name | Touche(entrée) : alt+space>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input : sortir du mode d'affichage dépouil │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c
│ │lé ("bare") sur tout changement dans la ligne de commande [défaut : on] │ │ │hanges in input [default: on]
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines énuméré message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words booléen on │ │ weechat.look.align_multiline_words boolean on │
│ │ weechat.look.bar_more_down chaîne "++" │ │ weechat.look.bar_more_down string "++"
│ │ weechat.look.bar_more_left chaîne "<<" │ │ weechat.look.bar_more_left string "<<"
│ │ weechat.look.bar_more_right chaîne ">>" │ │ weechat.look.bar_more_right string ">>"
│ │ weechat.look.bar_more_up chaîne "--" │ │ weechat.look.bar_more_up string "--"
│ │## weechat.look.bare_display_exit_on_input booléen on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format chaîne "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber booléen on │ │ weechat.look.buffer_auto_renumber boolean on │
│ │ weechat.look.buffer_notify_default énuméré all │ │ weechat.look.buffer_notify_default enum all
│ │ weechat.look.buffer_position énuméré end │ │ weechat.look.buffer_position enum end
│ │ weechat.look.buffer_search_case_sensitive booléen off │ │ weechat.look.buffer_search_case_sensitive boolean off │
│ │ weechat.look.buffer_search_force_default booléen off │ │ weechat.look.buffer_search_force_default boolean off │
│ │ weechat.look.buffer_search_history énuméré local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex booléen off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where énuméré prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format chaîne "%H:%M:%S" │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3502,12 +3501,9 @@ Par exemple pour vous connecter à https://libera.chat/[libera.chat ^↗^^] ave
(communications chiffrées) : (communications chiffrées) :
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
Le port par défaut est 6697 et TLS (communications chiffrées) est activé.
Vous pouvez demander à WeeChat de se connecter automatiquement à ce serveur Vous pouvez demander à WeeChat de se connecter automatiquement à ce serveur
au démarrage : au démarrage :
@@ -3550,52 +3546,51 @@ Par exemple si vous avez créé le serveur _libera_ avec les commandes ci-dessus
vous verrez ceci avec la commande `/fset libera` : vous verrez ceci avec la commande `/fset libera` :
.... ....
irc.server.libera.addresses chaîne "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood entier null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect booléen on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin chaîne null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay entier null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic booléen null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect booléen null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay entier null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin booléen null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay entier null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check entier null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks entier null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities chaîne null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message énuméré null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command chaîne null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay entier null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout entier null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes chaîne null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 énuméré null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname chaîne null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick chaîne null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part chaîne null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit chaîne null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks chaîne null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate booléen null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify chaîne null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password chaîne null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy chaîne null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname chaîne null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode chaîne null -> "r" irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_fail énuméré null -> reconnect irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_key chaîne null -> "" irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_mechanism énuméré null -> plain irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_password chaîne "${sec.data.libera}" irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_timeout entier null -> 15 irc.server.libera.sasl_username string "alice"
irc.server.libera.sasl_username chaîne "alice" irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.split_msg_max_length entier null -> 512 irc.server.libera.tls boolean on
irc.server.libera.tls booléen null -> on irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_cert chaîne null -> "" irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_dhkey_size entier null -> 2048 irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_fingerprint chaîne null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_password chaîne null -> "" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_priorities chaîne null -> "NORMAL" irc.server.libera.tls_verify boolean null -> on
irc.server.libera.tls_verify booléen null -> on irc.server.libera.usermode string null -> ""
irc.server.libera.usermode chaîne null -> "" irc.server.libera.username string null -> "alice"
irc.server.libera.username chaîne null -> "${username}"
.... ....
Par exemple si vous voulez vous connecter automatiquement à tous les serveurs Par exemple si vous voulez vous connecter automatiquement à tous les serveurs
@@ -4841,14 +4836,6 @@ Pour vous connecter à un relai _api_ avec WeeChat :
/remote connect weechat /remote connect weechat
---- ----
Pour vous connecter à un relai _api_ tournant ailleurs avec WeeChat
(TLS est fortement recommandé):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
Le WeeChat distant doit exposer exactement la même version d'API que le WeeChat Le WeeChat distant doit exposer exactement la même version d'API que le WeeChat
local, il est donc fortement recommandé d'utiliser exactement la même version local, il est donc fortement recommandé d'utiliser exactement la même version
@@ -4893,7 +4880,7 @@ JavaScript :
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
Le port (9500 dans l'exemple) est le port défini dans l'extension Relay. Le port (9500 dans l'exemple) est le port défini dans l'extension Relay.
@@ -5979,7 +5966,7 @@ désactivé par défaut. +
Pour l'activer, tapez cette commande : Pour l'activer, tapez cette commande :
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
Vous pouvez alors télécharger la liste des scripts et les afficher dans un tampon Vous pouvez alors télécharger la liste des scripts et les afficher dans un tampon
@@ -5989,33 +5976,33 @@ avec la commande <<command_script_script,/script>> :
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 scripts (filtre : {x}) | Tri : i,p,n | Alt+touche/entrée : i=installer, r=supprimer, l=charg>> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Garder automatiquement les tampons group │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Ajouter un tampon moniteur de highlights │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Recherche d'expression régulière dans le │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Utiliser la couleur des pseudos weechat │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Déplacement rapide dans les tampons. ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Affiche des messages de manière plus E S │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Formatage de texte alternatif, pratique │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Ajouter un objet de barre avec un fuseau │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Contrôler et afficher la musique jouée p │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Envoyer les messages privés et highlight │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Annoncer le titre de l'URL à l'utilisate │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Notifications des messages privés, highl │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Empêcher un mot de passe d'être envoyé a │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Afficher le texte corrigé quand un utili │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Simple auto-réponse. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Complétion avec Tab des pseudos préfixés│ │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s│
│ │ audacious.pl 0.3 2009-05-03 | Afficher la chanson actuellement jouée p│ │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ│
│ │ auth.rb 0.3 2014-05-30 | S'authentifier automatiquement avec Nick │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | Un script simple d'auto absence (away). │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Identification automatique en cas de cha │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Trier les tampons selon l'activité. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Charger/sauver automatiquement les optio │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Réouvrir les serveurs et canaux ouverts │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Rejoindre automatiquement les canaux où │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Marquer les tampons comme lus s'il n'y a │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | Fusionner automatiquement les tampons se│ │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time│
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+2 -2
View File
@@ -1104,7 +1104,7 @@ Gli script non sono compatibili con altri client IRC.
// TRANSLATION MISSING // TRANSLATION MISSING
[[scripts_update]] [[scripts_update]]
=== The command "/script update" cannot read scripts, how to fix that? === The command "/script update" can not read scripts, how to fix that?
First check questions about TLS connection in this FAQ. First check questions about TLS connection in this FAQ.
@@ -1360,7 +1360,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
=== Qual è la lista delle piattaforme supportate da WeeChat? Verrà effettuato il port su altri sistemi operativi? === Qual è la lista delle piattaforme supportate da WeeChat? Verrà effettuato il port su altri sistemi operativi?
// TRANSLATION MISSING // TRANSLATION MISSING
WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, macOS and Windows WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, Mac OS and Windows
(Cygwin and Windows Subsystem for Linux). (Cygwin and Windows Subsystem for Linux).
Facciamo del nostro meglio per portarlo su più piattaforme possibili. L'aiuto Facciamo del nostro meglio per portarlo su più piattaforme possibili. L'aiuto
+37 -67
View File
@@ -872,7 +872,7 @@ Questa funzione non è disponibile nelle API per lo scripting.
_WeeChat ≥ 3.8._ _WeeChat ≥ 3.8._
// TRANSLATION MISSING // TRANSLATION MISSING
Case-sensitive string comparison. Case sensitive string comparison.
Prototipo: Prototipo:
@@ -912,7 +912,7 @@ Questa funzione non è disponibile nelle API per lo scripting.
_WeeChat ≥ 3.8._ _WeeChat ≥ 3.8._
// TRANSLATION MISSING // TRANSLATION MISSING
Case-sensitive string comparison, for _max_ chars. Case sensitive string comparison, for _max_ chars.
Prototipo: Prototipo:
@@ -953,7 +953,7 @@ Questa funzione non è disponibile nelle API per lo scripting.
_Updated in 1.0, 3.8._ _Updated in 1.0, 3.8._
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string comparison. Case insensitive string comparison.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1050,7 +1050,7 @@ Questa funzione non è disponibile nelle API per lo scripting.
_Updated in 1.0, 3.8._ _Updated in 1.0, 3.8._
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string comparison, for _max_ chars. Case insensitive string comparison, for _max_ chars.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1175,7 +1175,7 @@ uppercase letters are properly converted to lowercase (by calling function
Return value: Return value:
* arithmetic result of subtracting the last compared UTF-8 char in * arithmetic result of subtracting the last compared UTF-8 char in
_string2_ (converted to lowercase if _case_sensitive_ is set to 0) from the last _string2_ (converted to lowercase if _case_sentitive_ is set to 0) from the last
compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is
set to 0): set to 0):
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -1199,7 +1199,7 @@ Questa funzione non è disponibile nelle API per lo scripting.
_Updated in 1.3, 3.8._ _Updated in 1.3, 3.8._
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string search. Case insensitive string search.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1369,7 +1369,7 @@ Argomenti:
* _string_: string * _string_: string
* _masks_: list of masks, with a NULL after the last mask in list; each mask * _masks_: list of masks, with a NULL after the last mask in list; each mask
is compared to the string with the function <<_string_match,string_match>> is compared to the string with the function <<_string_match,string_match>>
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison, otherwise 0
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1709,7 +1709,7 @@ Allowed flags are:
// TRANSLATION MISSING // TRANSLATION MISSING
* _e_: POSIX extended regular expression (_REG_EXTENDED_) * _e_: POSIX extended regular expression (_REG_EXTENDED_)
* _i_: case-insensitive (_REG_ICASE_) * _i_: case insensitive (_REG_ICASE_)
* _n_: match-any-character operators don_t match a newline (_REG_NEWLINE_) * _n_: match-any-character operators don_t match a newline (_REG_NEWLINE_)
* _s_: support for substring addressing of matches is not required (_REG_NOSUB_) * _s_: support for substring addressing of matches is not required (_REG_NOSUB_)
@@ -2947,7 +2947,7 @@ from first used to last):
== `+1+` == `+1+`
| `+==*+` | 2.9 | `+==*+` | 2.9
| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def ==* a*f+` + | >> `+abc def ==* a*f+` +
== `+1+` + == `+1+` +
+ +
@@ -2955,7 +2955,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!!*+` | 2.9 | `+!!*+` | 2.9
| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def !!* a*f+` + | >> `+abc def !!* a*f+` +
== `+0+` + == `+0+` +
+ +
@@ -2963,7 +2963,7 @@ from first used to last):
== `+1+` == `+1+`
| `+=*+` | 1.8 | `+=*+` | 1.8
| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def =* A*F+` + | >> `+abc def =* A*F+` +
== `+1+` + == `+1+` +
+ +
@@ -2971,7 +2971,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!*+` | 1.8 | `+!*+` | 1.8
| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def !* A*F+` + | >> `+abc def !* A*F+` +
== `+0+` + == `+0+` +
+ +
@@ -2979,7 +2979,7 @@ from first used to last):
== `+1+` == `+1+`
| `+==-+` | 2.9 | `+==-+` | 2.9
| Is included, case-sensitive | Is included, case sensitive
| >> `+abc def ==- bc+` + | >> `+abc def ==- bc+` +
== `+1+` + == `+1+` +
+ +
@@ -2987,7 +2987,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!!-+` | 2.9 | `+!!-+` | 2.9
| Is NOT included, case-sensitive | Is NOT included, case sensitive
| >> `+abc def !!- bc+` + | >> `+abc def !!- bc+` +
== `+0+` + == `+0+` +
+ +
@@ -2995,7 +2995,7 @@ from first used to last):
== `+1+` == `+1+`
| `+=-+` | 2.9 | `+=-+` | 2.9
| Is included, case-insensitive | Is included, case insensitive
| >> `+abc def =- BC+` + | >> `+abc def =- BC+` +
== `+1+` + == `+1+` +
+ +
@@ -3003,7 +3003,7 @@ from first used to last):
== `+0+` == `+0+`
| `+!-+` | 2.9 | `+!-+` | 2.9
| Is NOT included, case-insensitive | Is NOT included, case insensitive
| >> `+abc def !- BC+` + | >> `+abc def !- BC+` +
== `+0+` + == `+0+` +
+ +
@@ -8443,7 +8443,7 @@ def config_boolean_inherited(option: str) -> int: ...
# esempio # esempio
option = weechat.config_get("irc.server.libera.autoconnect") option = weechat.config_get("irc.server.libera.autoconnect")
autoconnect = weechat.config_boolean_inherited(option) autoconect = weechat.config_boolean_inherited(option)
---- ----
==== config_integer ==== config_integer
@@ -9765,7 +9765,7 @@ _WeeChat ≥ 0.3.6, updated in 2.0._
Rimuove una o più associazioni tasti. Rimuove una o più associazioni tasti.
[CAUTION] [WARNING]
Alla chiamata di questa funzione, assicurarsi che non venga rimossa una Alla chiamata di questa funzione, assicurarsi che non venga rimossa una
combinazione tasti definita dall'utente. combinazione tasti definita dall'utente.
@@ -10395,7 +10395,7 @@ C examples:
[source,c] [source,c]
---- ----
/* hook per il modificatore con priorità = 2000 */ /* hook per il modificatore con priorità = 2000 */
/* high priority: called before other modifier callbacks */ /* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL); weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */ /* hook two signals with priority = 3000 */
@@ -10866,7 +10866,7 @@ Argomenti:
* _flag_write_: 1 = cattura l'evento scrittura (write), 0 = ignora * _flag_write_: 1 = cattura l'evento scrittura (write), 0 = ignora
// TRANSLATION MISSING // TRANSLATION MISSING
* _flag_exception_: 1 = cattura l'eccezione evento (event), 0 = ignora * _flag_exception_: 1 = cattura l'eccezione evento (event), 0 = ignora
(_WeeChat ≥ 1.3_: this argument is ignored and not used anymore) (_WeeChat ≥ 1.3_: this argument is ignored and not used any more)
* _callback_: funzione che chiama un evento selezionato che si verifica * _callback_: funzione che chiama un evento selezionato che si verifica
per un file (o un socket), argomenti e valore restituito: per un file (o un socket), argomenti e valore restituito:
** _const void *pointer_: puntatore ** _const void *pointer_: puntatore
@@ -10934,7 +10934,7 @@ Hook su un processo (lanciato con un fork), e cattura l'output.
[NOTE] [NOTE]
// TRANSLATION MISSING // TRANSLATION MISSING
Since version 0.3.9.2, the shell is not used anymore to execute the command. Since version 0.3.9.2, the shell is not used any more to execute the command.
WeeChat makes an automatic split of command and arguments (like the shell does). WeeChat makes an automatic split of command and arguments (like the shell does).
If the split is not correct (according to quotes in your command), or if you If the split is not correct (according to quotes in your command), or if you
want to use shell, you can use function want to use shell, you can use function
@@ -12004,7 +12004,7 @@ Esempio in C:
[source,c] [source,c]
---- ----
int int
my_line_cb (const void *pointer, void *data, struct t_hashtable *line) my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
{ {
struct t_hashtable *hashtable; struct t_hashtable *hashtable;
@@ -12705,7 +12705,7 @@ List of signals sent by WeeChat and plugins:
| String: text sent to buffer. | String: text sent to buffer.
| Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). + | Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). +
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q" If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q"
cannot be used anymore to close the buffer. can not be used any more to close the buffer.
// TRANSLATION MISSING // TRANSLATION MISSING
| weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8 | weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8
@@ -13039,7 +13039,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
==== hook_signal_send ==== hook_signal_send
// TRANSLATION MISSING // TRANSLATION MISSING
_Updated in 1.0, 4.5.0._ _Updated in 1.0._
Invia un segnale. Invia un segnale.
@@ -13053,22 +13053,10 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
Argomenti: Argomenti:
// TRANSLATION MISSING * _signal_: segnale da inviare
* _signal_: segnale da inviare; flags are allowed before the signal name (see below)
_(WeeChat ≥ 4.5.0)_
* _type_data_: tipo di dati inviati con il segnale (consultare <<_hook_signal,hook_signal>>) * _type_data_: tipo di dati inviati con il segnale (consultare <<_hook_signal,hook_signal>>)
* _signal_data_: dati inviati con il segnale * _signal_data_: dati inviati con il segnale
// TRANSLATION MISSING
The signal name can contain flags with the following format: `[flags:xxx,yyy]signal`
where `xxx` and `yyy` are names of flags, and `signal` the signal name. +
The following flags are supported:
* _stop_on_error_: exit immediately if a callback returns WEECHAT_RC_ERROR
(remaining callbacks are then NOT executed) _(WeeChat ≥ 4.5.0)_
* _ignore_eat_: consider any callback returning WEECHAT_RC_OK_EAT is in fact
WEECHAT_RC_OK and execute remaining callbacks _(WeeChat ≥ 4.5.0)_
// TRANSLATION MISSING // TRANSLATION MISSING
Return value _(WeeChat ≥ 1.0)_: Return value _(WeeChat ≥ 1.0)_:
@@ -13084,8 +13072,6 @@ Esempio in C:
[source,c] [source,c]
---- ----
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string); int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
WEECHAT_HOOK_SIGNAL_STRING, my_string);
---- ----
Script (Python): Script (Python):
@@ -13097,8 +13083,6 @@ def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
# esempio # esempio
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string) rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
---- ----
[[signal_logger_backlog]] [[signal_logger_backlog]]
@@ -13406,7 +13390,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
==== hook_hsignal_send ==== hook_hsignal_send
// TRANSLATION MISSING // TRANSLATION MISSING
_WeeChat ≥ 0.3.4, updated in 1.0, 4.5.0._ _WeeChat ≥ 0.3.4, updated in 1.0._
Invia un hsignal (segnale con tabella hash). Invia un hsignal (segnale con tabella hash).
@@ -13419,9 +13403,7 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
Argomenti: Argomenti:
// TRANSLATION MISSING * _signal_: segnale da inviare
* _signal_: segnale da inviare; flags are allowed before the signal name
(see function <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
* _hashtable_: tabella hash * _hashtable_: tabella hash
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -13438,7 +13420,7 @@ Esempio in C:
[source,c] [source,c]
---- ----
int rc, rc2; int rc;
struct t_hashtable *hashtable = weechat_hashtable_new (8, struct t_hashtable *hashtable = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
@@ -13448,7 +13430,6 @@ if (hashtable)
{ {
weechat_hashtable_set (hashtable, "key", "value"); weechat_hashtable_set (hashtable, "key", "value");
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable); rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
weechat_hashtable_free (hashtable); weechat_hashtable_free (hashtable);
} }
---- ----
@@ -13462,7 +13443,6 @@ def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
# esempio # esempio
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"}) rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
---- ----
[[hsignal_irc_redirect_command]] [[hsignal_irc_redirect_command]]
@@ -15105,7 +15085,7 @@ Argomenti:
// TRANSLATION MISSING // TRANSLATION MISSING
* _name_: name of buffer, if it is NULL or empty string, the current buffer is * _name_: name of buffer, if it is NULL or empty string, the current buffer is
returned (buffer displayed by current window); if the name starts with returned (buffer displayed by current window); if the name starts with
`(?i)`, the search is case-insensitive _(WeeChat ≥ 1.0)_ `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_
Valore restituito: Valore restituito:
@@ -15609,13 +15589,6 @@ Properties:
are *NOT* checked) + are *NOT* checked) +
"-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_. "-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_.
// TRANSLATION MISSING
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
| priority: add buffer to hotlist with this priority
(conditions defined in option _weechat.look.hotlist_add_conditions_
are checked).
// TRANSLATION MISSING // TRANSLATION MISSING
| completion_freeze | | "0" oppure "1" | completion_freeze | | "0" oppure "1"
| "0": no freeze of completion (default value) | "0": no freeze of completion (default value)
@@ -15976,7 +15949,7 @@ Argomenti:
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
Since version 4.0.0, comparison of buffer names is case-sensitive. Since version 4.0.0, comparison of buffer names is case sensitive.
Valore restituito: Valore restituito:
@@ -17697,7 +17670,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
==== command_options ==== command_options
// TRANSLATION MISSING // TRANSLATION MISSING
_WeeChat ≥ 2.5, updated in 4.0.0, 4.5.0._ _WeeChat ≥ 2.5, updated in 4.0.0._
// TRANSLATION MISSING // TRANSLATION MISSING
Execute a command or send text to buffer with options. Execute a command or send text to buffer with options.
@@ -17714,17 +17687,14 @@ Argomenti:
* _buffer_: puntatore al buffer (il comando viene eseguito su questo buffer, * _buffer_: puntatore al buffer (il comando viene eseguito su questo buffer,
utilizzare NULL per il buffer corrente) utilizzare NULL per il buffer corrente)
// TRANSLATION MISSING * _command_: comando da eseguire (se preceduto da "/"), oppure il testo
* _command_: comando da eseguire (if beginning with a `/` or a command char), viene inviato sul buffer
oppure il testo viene inviato sul buffer
// TRANSLATION MISSING // TRANSLATION MISSING
* _options_: a hashtable with some options (keys and values must be string) * _options_: a hashtable with some options (keys and values must be string)
(can be NULL): (can be NULL):
// TRANSLATION MISSING
** _commands_: a comma-separated list of commands allowed to be executed during ** _commands_: a comma-separated list of commands allowed to be executed during
this call (see function <<_string_match_list,string_match_list>> for the this call; see function <<_string_match_list,string_match_list>> for the
format); the special value `-` (hyphen-minus) disables the execution of commands format
and the string in _command_ is sent as-is to the buffer (_WeeChat ≥ 4.5.0_)
** _delay_: delay to execute command, in milliseconds ** _delay_: delay to execute command, in milliseconds
// TRANSLATION MISSING // TRANSLATION MISSING
** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_) ** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_)
@@ -17760,7 +17730,7 @@ Script (Python):
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ... def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# example: allow any command except /exec # example: allow any command except /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"}) rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -20441,7 +20411,7 @@ Argomenti:
* _pointer2_: pointer to second WeeChat/plugin object * _pointer2_: pointer to second WeeChat/plugin object
* _name_: variable name or path to a variable name; for arrays, the name can be * _name_: variable name or path to a variable name; for arrays, the name can be
"N|name" where N is the index in array (starting at 0), for example: "2|name" "N|name" where N is the index in array (starting at 0), for example: "2|name"
* _case_sensitive_: 1 for case-sensitive comparison of strings, otherwise 0 * _case_sensitive_: 1 for case sensitive comparison of strings, otherwise 0
Valore restituito: Valore restituito:
+1 -1
View File
@@ -278,7 +278,7 @@ per `/buffer close`):
/close /close
---- ----
[CAUTION] [WARNING]
Chiudere il buffer del server chiuderà tutti i canali/buffer privati. Chiudere il buffer del server chiuderà tutti i canali/buffer privati.
Disconnette dal server: Disconnette dal server:
+130 -145
View File
@@ -523,7 +523,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
[CAUTION] [WARNING]
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
@@ -672,7 +672,7 @@ include::includes/cmdline_options.it.adoc[tag=standard]
Some extra options are available for debug purposes only: Some extra options are available for debug purposes only:
// TRANSLATION MISSING // TRANSLATION MISSING
[CAUTION] [WARNING]
Do *NOT* use any of these options in production! Do *NOT* use any of these options in production!
include::includes/cmdline_options.it.adoc[tag=debug] include::includes/cmdline_options.it.adoc[tag=debug]
@@ -961,7 +961,7 @@ Esempio di terminale con WeeChat:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ bars "status" and "input" bar "nicklist" ▲ ▲ bars "status" and "input" bar "nicklist" ▲
@@ -1004,41 +1004,37 @@ La barra _status_ ha i seguenti elementi predefiniti:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Elemento | Esempio | Descrizione | Elemento | Esempio | Descrizione
| time | `12:55` | Ora. | time | `[12:55]` | Ora.
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_last_number | `5` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`). | buffer_last_number | `[5]` | Number of last buffer in list.
| buffer_plugin | `irc/libera` | Plugin del buffer attivo (il plugin irc può aggiungere il nome del server irc usato dal buffer). | buffer_plugin | `[irc/libera]` | Plugin del buffer attivo (il plugin irc può aggiungere il nome del server irc usato dal buffer).
| buffer_number | `2` | Numero del buffer corrente. | buffer_number | `2` | Numero del buffer corrente.
| buffer_name | `#test` | Nome del buffer attivo. | buffer_name | `#test` | Nome del buffer attivo.
| buffer_modes | `+n` | Modalità canale IRC. | buffer_modes | `+n` | Modalità canale IRC.
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_nicklist_count | `4` | Number of nicks displayed in nicklist. | buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed. | buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed.
| buffer_filter | `+*+` | Indicatore filtraggio: `+*+` significa che alcune righe sono filtrate (nascoste), valori vuoti indicano che tutte le righe sono visualizzate. | buffer_filter | `+*+` | Indicatore filtraggio: `+*+` significa che alcune righe sono filtrate (nascoste), valori vuoti indicano che tutte le righe sono visualizzate.
// TRANSLATION MISSING | scroll | `-ANCORA(50)-` | Indicatore di scorrimento, con il numero di righe sotto l'ultima riga visualizzata.
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,Toggle keys>>. | lag | `[Ritardo: 2.5]` | Indicatore ritardo, in secondi (nascosto se il ritardo è basso).
| scroll | `-ANCORA(50)-` | Indicatore di scorrimento, con il numero di righe sotto l'ultima riga visualizzata. | hotlist | `[H: 3:#abc(2,5), 5]` | Elenco dei buffer con attività (messaggi non letti) (nell'esempio, 2 notifiche e 5 messaggi non letti su #abc, un messaggio non letto sul buffer #5).
| lag | `Ritardo: 2.5` | Indicatore ritardo, in secondi (nascosto se il ritardo è basso). | completion | `abc(2) def(5)` | Elenco di parole per il completamento, con il numero di completamenti possibili per ogni parola.
| hotlist | `H: 3:#abc(2,5), 5` | Elenco dei buffer con attività (messaggi non letti) (nell'esempio, 2 notifiche e 5 messaggi non letti su #abc, un messaggio non letto sul buffer #5).
// TRANSLATION MISSING
| typing | `Typing: bob, (alice)` | Typing notification, see <<typing_notifications,typing notifications>>.
| completion | `abc(2) def(5)` | Elenco di parole per il completamento, con il numero di completamenti possibili per ogni parola.
|=== |===
La barra _input_ ha i seguenti elementi predefiniti: La barra _input_ ha i seguenti elementi predefiniti:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Elemento | Esempio | Descrizione | Elemento | Esempio | Descrizione
// TRANSLATION MISSING // TRANSLATION MISSING
| input_prompt | `@Flashy(i)` | Prompt per l'input, for irc: nick and modes (mode "+i" means invisible on libera). | input_prompt | `[@Flashy(i)]` | Prompt per l'input, for irc: nick and modes (mode "+i" means invisible on libera).
| away | `assente` | Indicatore di assenza. | away | `(assente)` | Indicatore di assenza.
// TRANSLATION MISSING // TRANSLATION MISSING
| input_search | `Search lines (~ str,msg)` | Search indicator (see below). | input_search | `[Search lines (~ str,msg)]` | Search indicator (see below).
| input_paste | `Incollare 7 righe ? [ctrl-y] Sì [ctrl-n] No` | Chiede all'utente se incollare le righe. | input_paste | `[Incollare 7 righe ? [ctrl-y] Sì [ctrl-n] No]` | Chiede all'utente se incollare le righe.
| input_text | `ciao peter!` | Testo in input. | input_text | `ciao peter!` | Testo in input.
|=== |===
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -1046,8 +1042,8 @@ There are two search modes:
// TRANSLATION MISSING // TRANSLATION MISSING
* search in lines, for example `[Search lines (~ str,msg)]`, with the following info: * search in lines, for example `[Search lines (~ str,msg)]`, with the following info:
** `~`: case-insensitive ** `~`: case insensitive
** `==`: case-sensitive ** `==`: case sensitive
** `str`: search string ** `str`: search string
** `regex`: search regular expression ** `regex`: search regular expression
** `msg`: search in messages ** `msg`: search in messages
@@ -1055,8 +1051,8 @@ There are two search modes:
** `pre\|msg`: search in prefixes and messages. ** `pre\|msg`: search in prefixes and messages.
* search in commands history, for example `[Search command (~ str,local)]`, * search in commands history, for example `[Search command (~ str,local)]`,
with the following info: with the following info:
** `~`: case-insensitive ** `~`: case insensitive
** `==`: case-sensitive ** `==`: case sensitive
** `str`: search string ** `str`: search string
** `regex`: search regular expression ** `regex`: search regular expression
** `local`: search in buffer local history ** `local`: search in buffer local history
@@ -1079,7 +1075,8 @@ Other items available (not used in bars by default):
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Item | Example | Description | Item | Example | Description
| buffer_count | `5` | Total number of buffers opened. | buffer_count | `10` | Total number of buffers opened.
| buffer_last_number | `10` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist. | buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
| buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist. | buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist.
| buffer_short_name | `#test` | Current buffer short name. | buffer_short_name | `#test` | Current buffer short name.
@@ -1096,8 +1093,7 @@ Other items available (not used in bars by default):
| irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host. | irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host.
| irc_nick_modes | `i` | IRC modes for self nick. | irc_nick_modes | `i` | IRC modes for self nick.
| irc_nick_prefix | `@` | IRC nick prefix on channel. | irc_nick_prefix | `@` | IRC nick prefix on channel.
// TRANSLATION MISSING | mouse_status | `M` | Mouse status (empty if mouse is disabled).
| spacer | | Special item used to align text in bars, see <<item_spacer,Spacer item>>.
| spell_dict | `fr,en` | Spelling dictionaries used on current buffer. | spell_dict | `fr,en` | Spelling dictionaries used on current buffer.
| spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled). | spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled).
| tls_version | `TLS1.3` | TLS version in use for current IRC server. | tls_version | `TLS1.3` | TLS version in use for current IRC server.
@@ -2207,9 +2203,9 @@ These keys and actions are used on the IRC /list buffer (see command <<command_i
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+` | kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+`
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+`
| kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+`
| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | | | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). |
| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | | | `n:xxx` | Show only channels with "xxx" in name (case insensitive). |
| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). |
| | `u:n` | Show only channels with at least "n" users. | | | `u:n` | Show only channels with at least "n" users. |
| | `u:>n` | Show only channels with more than "n" users. | | | `u:>n` | Show only channels with more than "n" users. |
| | `u:<n` | Show only channels with less than "n" users. | | | `u:<n` | Show only channels with less than "n" users. |
@@ -2273,27 +2269,27 @@ Example of fset buffer displaying options starting with `weechat.look` :
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggl>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│ │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
│ │hanges in input [predefinito: on] │ │ │hanges in input [default: on]
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines enum message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words bool on │ │ weechat.look.align_multiline_words boolean on
│ │ weechat.look.bar_more_down stringa "++" │ │ weechat.look.bar_more_down string "++" │
│ │ weechat.look.bar_more_left stringa "<<" │ │ weechat.look.bar_more_left string "<<" │
│ │ weechat.look.bar_more_right stringa ">>" │ │ weechat.look.bar_more_right string ">>" │
│ │ weechat.look.bar_more_up stringa "--" │ │ weechat.look.bar_more_up string "--" │
│ │## weechat.look.bare_display_exit_on_input bool on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format stringa "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber bool on │ │ weechat.look.buffer_auto_renumber boolean on
│ │ weechat.look.buffer_notify_default enum all │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position enum end │ │ weechat.look.buffer_position enum end │
│ │ weechat.look.buffer_search_case_sensitive bool off │ │ weechat.look.buffer_search_case_sensitive boolean off │
│ │ weechat.look.buffer_search_force_default bool off │ │ weechat.look.buffer_search_force_default boolean off │
│ │ weechat.look.buffer_search_history enum local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex bool off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where enum prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format stringa "%H:%M:%S" │ │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3588,7 +3584,7 @@ plugin).
// TRANSLATION MISSING // TRANSLATION MISSING
Some aliases are created by default, with name in upper case (to make them Some aliases are created by default, with name in upper case (to make them
different from standard commands); commands are not case-sensitive in WeeChat, different from standard commands); commands are not case sensitive in WeeChat,
so for example `/close` runs the alias `/CLOSE`. so for example `/close` runs the alias `/CLOSE`.
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -3725,15 +3721,13 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
By default no servers are defined. You can add as many servers as you want with By default no servers are defined. You can add as many servers as you want with
the <<command_irc_server,/server>> command. the <<command_irc_server,/server>> command.
For example to connect to https://libera.chat/[libera.chat ^↗^^]: For example to connect to https://libera.chat/[libera.chat ^↗^^]
with TLS (encrypted trafic):
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
Default port is 6697 and TLS (encrypted traffic) is enabled.
You can tell WeeChat to auto-connect to this server on startup: You can tell WeeChat to auto-connect to this server on startup:
---- ----
@@ -3774,52 +3768,51 @@ For example if you created the _libera_ server with the commands above, you'll
see this with the command `/fset libera`: see this with the command `/fset libera`:
.... ....
irc.server.libera.addresses stringa "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood intero null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect bool on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin stringa null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay intero null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic bool null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect bool null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay intero null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin bool null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay intero null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check intero null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks intero null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities stringa null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message enum null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command stringa null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay intero null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout intero null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes stringa null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 enum null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname stringa null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick stringa null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part stringa null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit stringa null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks stringa null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate bool null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify stringa null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password stringa null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy stringa null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname stringa null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode stringa null -> "r"
irc.server.libera.sasl_fail enum null -> reconnect irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_key stringa null -> "" irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_mechanism enum null -> plain irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_password stringa "${sec.data.libera}" irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_timeout intero null -> 15 irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_username stringa "alice" irc.server.libera.sasl_username string "alice"
irc.server.libera.split_msg_max_length intero null -> 512 irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.tls bool null -> on irc.server.libera.tls boolean on
irc.server.libera.tls_cert stringa null -> "" irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_dhkey_size intero null -> 2048 irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_fingerprint stringa null -> "" irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_password stringa null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_priorities stringa null -> "NORMAL" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_verify bool null -> on irc.server.libera.tls_verify boolean null -> on
irc.server.libera.usermode stringa null -> "" irc.server.libera.usermode string null -> ""
irc.server.libera.username stringa null -> "${username}" irc.server.libera.username string null -> "alice"
.... ....
For example if you want to automatically connect to all servers you define For example if you want to automatically connect to all servers you define
@@ -5089,21 +5082,13 @@ For example:
Now you can connect on port 9000 with a WeeChat or a remote interface using Now you can connect on port 9000 with a WeeChat or a remote interface using
password "mypassword". password "mypassword".
To connect to an _api_ relay running locally with WeeChat: To connect to an _api_ relay with WeeChat:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
To connect to an _api_ relay running elsewhere with WeeChat
(TLS is highly recommended):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
The remote WeeChat must expose the same API version as the local WeeChat, so The remote WeeChat must expose the same API version as the local WeeChat, so
it's highly recommended to use exactly the same WeeChat version on remote it's highly recommended to use exactly the same WeeChat version on remote
@@ -5121,7 +5106,7 @@ https://weechat.org/about/interfaces/[this page ^↗^^].
[IMPORTANT] [IMPORTANT]
// TRANSLATION MISSING // TRANSLATION MISSING
WeeChat itself cannot connect to another WeeChat with this protocol. WeeChat itself can NOT connect to another WeeChat with this protocol.
Ad esempio: Ad esempio:
@@ -5148,7 +5133,7 @@ A WebSocket can be opened in a HTML5 with a single line of JavaScript:
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
The port (9500 in example) is the port defined in Relay plugin. The port (9500 in example) is the port defined in Relay plugin.
@@ -5392,7 +5377,7 @@ A trigger has the following options (names are
| enabled | `on`, `off` | enabled | `on`, `off`
| When option is `off`, the trigger is disabled and actions are not executed | When option is `off`, the trigger is disabled and actions are not executed
anymore. any more.
| hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`, | hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`,
`+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+` `+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+`
@@ -6222,7 +6207,7 @@ For privacy considerations, the download of scripts is disabled by default. +
To enable it, type this command: To enable it, type this command:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -6233,33 +6218,33 @@ with the <<command_script_script,/script>> command:
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, >> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Automatically keep buffers grouped by se│ │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Aggiunge un buffer monitor per gli event │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Cerca espressione regolare nei buffer o │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Usa i colori dei nick di weechat nell'ar │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Passa rapidamente ai buffer. ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for re │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Aggiunge un elemento località alternativ │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Script di controllo e riproduzione per A │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Invia messaggi privati ed eventi ad uno │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Annuncia il titolo URL all'utente o al c │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highl │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidental │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Un semplice autoresponder. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@ │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Visualizza la canzone riprodotta da Auda │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | Un semplice script per l'assenza automat │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Consente l'autenticazione automatica al │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .wee │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Riapre server e canali aperti l'ultima v │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Entra automaticamente nei canali quando │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Mark buffers as read if there is no new │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | Automatically merge new buffers accordin │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+1 -5
View File
@@ -347,8 +347,6 @@ WeeChat "core" は以下のディレクトリに配置されています:
|       relay.c | relay の主要関数 |       relay.c | relay の主要関数
// TRANSLATION MISSING // TRANSLATION MISSING
|       relay-auth.c | Clients authentification. |       relay-auth.c | Clients authentification.
// TRANSLATION MISSING
|       relay-bar-item.c | Relay bar items.
|       relay-buffer.c | relay バッファ |       relay-buffer.c | relay バッファ
|       relay-client.c | relay クライアント |       relay-client.c | relay クライアント
|       relay-command.c | relay コマンド |       relay-command.c | relay コマンド
@@ -469,12 +467,10 @@ WeeChat "core" は以下のディレクトリに配置されています:
// TRANSLATION MISSING // TRANSLATION MISSING
|          test-core-dir.cpp | Tests: directory/file functions. |          test-core-dir.cpp | Tests: directory/file functions.
|          test-core-eval.cpp | テスト: 式の評価 |          test-core-eval.cpp | テスト: 式の評価
|          test-core-hashtable.cpp | テスト: ハッシュテーブル |          test-core-hashtble.cpp | テスト: ハッシュテーブル
|          test-core-hdata.cpp | テスト: hdata |          test-core-hdata.cpp | テスト: hdata
|          test-core-hook.cpp | テスト: フック |          test-core-hook.cpp | テスト: フック
|          test-core-infolist.cpp | テスト: インフォリスト |          test-core-infolist.cpp | テスト: インフォリスト
// TRANSLATION MISSING
|          test-core-input.cpp | Tests: input functions.
|          test-core-list.cpp | テスト: リスト |          test-core-list.cpp | テスト: リスト
// TRANSLATION MISSING // TRANSLATION MISSING
|          test-core-network.cpp | Tests: network functions. |          test-core-network.cpp | Tests: network functions.
+1 -1
View File
@@ -1282,7 +1282,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
=== WeeChat をサポートするプラットフォームのリストを教えてください。他のオペレーティングシステムへの移植予定はありますか。 === WeeChat をサポートするプラットフォームのリストを教えてください。他のオペレーティングシステムへの移植予定はありますか。
// TRANSLATION MISSING // TRANSLATION MISSING
WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, macOS and Windows WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, Mac OS and Windows
(Cygwin and Windows Subsystem for Linux). (Cygwin and Windows Subsystem for Linux).
我々は可能な限り多くのプラットフォームに移植することに最善を尽くしています。我々が持っていない 我々は可能な限り多くのプラットフォームに移植することに最善を尽くしています。我々が持っていない
+31 -61
View File
@@ -845,7 +845,7 @@ int diff = weechat_string_charcasecmp ("aaa", "CCC"); /* == -2 */
_WeeChat ≥ 3.8_ _WeeChat ≥ 3.8_
// TRANSLATION MISSING // TRANSLATION MISSING
Case-sensitive string comparison. Case sensitive string comparison.
プロトタイプ: プロトタイプ:
@@ -884,7 +884,7 @@ int diff = weechat_strcmp ("aaa", "ccc"); /* == -2 */
_WeeChat ≥ 3.8_ _WeeChat ≥ 3.8_
// TRANSLATION MISSING // TRANSLATION MISSING
Case-sensitive string comparison, for _max_ chars. Case sensitive string comparison, for _max_ chars.
プロトタイプ: プロトタイプ:
@@ -924,7 +924,7 @@ int diff = weechat_strncmp ("aabb", "aacc", 2); /* == 0 */
_WeeChat バージョン 1.0, 3.8 で更新。_ _WeeChat バージョン 1.0, 3.8 で更新。_
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string comparison. Case insensitive string comparison.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1018,7 +1018,7 @@ int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 *
_WeeChat バージョン 1.0, 3.8 で更新。_ _WeeChat バージョン 1.0, 3.8 で更新。_
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string comparison, for _max_ chars. Case insensitive string comparison, for _max_ chars.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -1141,7 +1141,7 @@ uppercase letters are properly converted to lowercase (by calling function
Return value: Return value:
* arithmetic result of subtracting the last compared UTF-8 char in * arithmetic result of subtracting the last compared UTF-8 char in
_string2_ (converted to lowercase if _case_sensitive_ is set to 0) from the last _string2_ (converted to lowercase if _case_sentitive_ is set to 0) from the last
compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is
set to 0): set to 0):
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -1164,7 +1164,7 @@ int diff = weechat_strcmp_ignore_chars ("a-b", "--a-e", "-", 1); /* == -3 */
_WeeChat バージョン 1.3, 3.8 で更新。_ _WeeChat バージョン 1.3, 3.8 で更新。_
// TRANSLATION MISSING // TRANSLATION MISSING
Case-insensitive string search. Case insensitive string search.
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
@@ -2875,7 +2875,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+==*+` | 2.9 | `+==*+` | 2.9
| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def ==* a*f+` + | >> `+abc def ==* a*f+` +
== `+1+` + == `+1+` +
+ +
@@ -2884,7 +2884,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+!!*+` | 2.9 | `+!!*+` | 2.9
| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
| >> `+abc def !!* a*f+` + | >> `+abc def !!* a*f+` +
== `+0+` + == `+0+` +
+ +
@@ -2893,7 +2893,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+=*+` | 1.8 | `+=*+` | 1.8
| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is matching mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def =* A*F+` + | >> `+abc def =* A*F+` +
== `+1+` + == `+1+` +
+ +
@@ -2902,7 +2902,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+!*+` | 1.8 | `+!*+` | 1.8
| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
| >> `+abc def !* A*F+` + | >> `+abc def !* A*F+` +
== `+0+` + == `+0+` +
+ +
@@ -2911,7 +2911,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+==-+` | 2.9 | `+==-+` | 2.9
| Is included, case-sensitive | Is included, case sensitive
| >> `+abc def ==- bc+` + | >> `+abc def ==- bc+` +
== `+1+` + == `+1+` +
+ +
@@ -2920,7 +2920,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+!!-+` | 2.9 | `+!!-+` | 2.9
| Is NOT included, case-sensitive | Is NOT included, case sensitive
| >> `+abc def !!- bc+` + | >> `+abc def !!- bc+` +
== `+0+` + == `+0+` +
+ +
@@ -2929,7 +2929,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+=-+` | 2.9 | `+=-+` | 2.9
| Is included, case-insensitive | Is included, case insensitive
| >> `+abc def =- BC+` + | >> `+abc def =- BC+` +
== `+1+` + == `+1+` +
+ +
@@ -2938,7 +2938,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
// TRANSLATION MISSING // TRANSLATION MISSING
| `+!-+` | 2.9 | `+!-+` | 2.9
| Is NOT included, case-insensitive | Is NOT included, case insensitive
| >> `+abc def !- BC+` + | >> `+abc def !- BC+` +
==  `+0+` + ==  `+0+` +
+ +
@@ -7069,7 +7069,7 @@ my_section_delete_option_cb (const void *pointer, void *data,
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */ /* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
} }
/* standard section, user cannot add/delete options */ /* standard section, user can not add/delete options */
struct t_config_section *new_section1 = struct t_config_section *new_section1 =
weechat_config_new_section (config_file, "section1", 0, 0, weechat_config_new_section (config_file, "section1", 0, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
@@ -8229,7 +8229,7 @@ def config_boolean_inherited(option: str) -> int: ...
# 例 # 例
option = weechat.config_get("irc.server.libera.autoconnect") option = weechat.config_get("irc.server.libera.autoconnect")
autoconnect = weechat.config_boolean_inherited(option) autoconect = weechat.config_boolean_inherited(option)
---- ----
==== config_integer ==== config_integer
@@ -9541,7 +9541,7 @@ _WeeChat バージョン 0.3.6 以上で利用可、バージョン 2.0 で更
キー割り当てを削除。 キー割り当てを削除。
[CAUTION] [WARNING]
この関数を呼び出す際には、ユーザのキー割り当てを削除しないように注意してください。 この関数を呼び出す際には、ユーザのキー割り当てを削除しないように注意してください。
プロトタイプ: プロトタイプ:
@@ -10143,7 +10143,7 @@ C examples:
[source,c] [source,c]
---- ----
/* hook modifier with priority = 2000 */ /* hook modifier with priority = 2000 */
/* high priority: called before other modifier callbacks */ /* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL); weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */ /* hook two signals with priority = 3000 */
@@ -11735,7 +11735,7 @@ C 言語での使用例:
[source,c] [source,c]
---- ----
int int
my_line_cb (const void *pointer, void *data, struct t_hashtable *line) my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
{ {
struct t_hashtable *hashtable; struct t_hashtable *hashtable;
@@ -12366,7 +12366,7 @@ WeeChat とプラグインが送信するシグナルのリスト:
| String: text sent to buffer. | String: text sent to buffer.
| Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). + | Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). +
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q" If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q"
cannot be used anymore to close the buffer. can not be used any more to close the buffer.
// TRANSLATION MISSING // TRANSLATION MISSING
| weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8 | weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8
@@ -12669,7 +12669,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
==== hook_signal_send ==== hook_signal_send
_WeeChat バージョン 1.0, 4.5.0 で更新。_ _WeeChat バージョン 1.0 で更新。_
シグナルを送信。 シグナルを送信。
@@ -12683,23 +12683,11 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
引数: 引数:
// TRANSLATION MISSING * _signal_: 送信するシグナル
* _signal_: 送信するシグナル; flags are allowed before the signal name (see below)
_(WeeChat ≥ 4.5.0)_
* _type_data_: シグナルと一緒に送信するデータの型 * _type_data_: シグナルと一緒に送信するデータの型
(<<_hook_signal,hook_signal>> を参照) (<<_hook_signal,hook_signal>> を参照)
* _signal_data_: シグナルと一緒に送信するデータ * _signal_data_: シグナルと一緒に送信するデータ
// TRANSLATION MISSING
The signal name can contain flags with the following format: `[flags:xxx,yyy]signal`
where `xxx` and `yyy` are names of flags, and `signal` the signal name. +
The following flags are supported:
* _stop_on_error_: exit immediately if a callback returns WEECHAT_RC_ERROR
(remaining callbacks are then NOT executed) _(WeeChat ≥ 4.5.0)_
* _ignore_eat_: consider any callback returning WEECHAT_RC_OK_EAT is in fact
WEECHAT_RC_OK and execute remaining callbacks _(WeeChat ≥ 4.5.0)_
戻り値 _(WeeChat バージョン 1.0 以上で利用可)_: 戻り値 _(WeeChat バージョン 1.0 以上で利用可)_:
* 最後に実行したコールバックの戻り値 * 最後に実行したコールバックの戻り値
@@ -12713,8 +12701,6 @@ C 言語での使用例:
[source,c] [source,c]
---- ----
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string); int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
WEECHAT_HOOK_SIGNAL_STRING, my_string);
---- ----
スクリプト (Python) での使用例: スクリプト (Python) での使用例:
@@ -12726,8 +12712,6 @@ def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
# 例 # 例
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string) rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
---- ----
[[signal_logger_backlog]] [[signal_logger_backlog]]
@@ -13014,7 +12998,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
==== hook_hsignal_send ==== hook_hsignal_send
_WeeChat バージョン 0.3.4 以上で利用可、バージョン 1.0, 4.5.0 で更新。_ _WeeChat バージョン 0.3.4 以上で利用可、バージョン 1.0 で更新。_
hsignal (ハッシュテーブルを持つシグナル) を送信。 hsignal (ハッシュテーブルを持つシグナル) を送信。
@@ -13027,9 +13011,7 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
引数: 引数:
// TRANSLATION MISSING * _signal_: 送信するシグナル
* _signal_: 送信するシグナル; flags are allowed before the signal name
(see function <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
* _hashtable_: ハッシュテーブル * _hashtable_: ハッシュテーブル
戻り値 _(WeeChat バージョン 1.0 以上で利用可)_: 戻り値 _(WeeChat バージョン 1.0 以上で利用可)_:
@@ -13044,7 +13026,7 @@ C 言語での使用例:
[source,c] [source,c]
---- ----
int rc, rc2; int rc;
struct t_hashtable *hashtable = weechat_hashtable_new (8, struct t_hashtable *hashtable = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
@@ -13054,7 +13036,6 @@ if (hashtable)
{ {
weechat_hashtable_set (hashtable, "key", "value"); weechat_hashtable_set (hashtable, "key", "value");
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable); rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
weechat_hashtable_free (hashtable); weechat_hashtable_free (hashtable);
} }
---- ----
@@ -13068,7 +13049,6 @@ def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
# 例 # 例
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"}) rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
---- ----
[[hsignal_irc_redirect_command]] [[hsignal_irc_redirect_command]]
@@ -15137,13 +15117,6 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
are *NOT* checked) + are *NOT* checked) +
"-1": ホットリストからバッファを削除 _(WeeChat バージョン 1.0 以上で利用可)_ "-1": ホットリストからバッファを削除 _(WeeChat バージョン 1.0 以上で利用可)_
// TRANSLATION MISSING
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
| priority: add buffer to hotlist with this priority
(conditions defined in option _weechat.look.hotlist_add_conditions_
are checked).
| completion_freeze | | "0" または "1" | completion_freeze | | "0" または "1"
| "0": 補完を止める (デフォルト) | "0": 補完を止める (デフォルト)
(グローバル設定、バッファへのポインタは使われない) + (グローバル設定、バッファへのポインタは使われない) +
@@ -15477,7 +15450,7 @@ int weechat_buffer_match_list (struct t_gui_buffer *buffer, const char *string);
// TRANSLATION MISSING // TRANSLATION MISSING
[NOTE] [NOTE]
Since version 4.0.0, comparison of buffer names is case-sensitive. Since version 4.0.0, comparison of buffer names is case sensitive.
戻り値: 戻り値:
@@ -17160,7 +17133,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
==== command_options ==== command_options
// TRANSLATION MISSING // TRANSLATION MISSING
_WeeChat ≥ 2.5, updated in 4.0.0, 4.5.0._ _WeeChat ≥ 2.5, updated in 4.0.0._
バッファにてオプション付きでコマンドを実行またはテキストを送信 バッファにてオプション付きでコマンドを実行またはテキストを送信
@@ -17176,17 +17149,14 @@ int weechat_command_options (struct t_gui_buffer *buffer, const char *command,
* _buffer_: バッファへのポインタ * _buffer_: バッファへのポインタ
(コマンドは指定したバッファで実行されます、現在のバッファで実行するには NULL を指定してください) (コマンドは指定したバッファで実行されます、現在のバッファで実行するには NULL を指定してください)
// TRANSLATION MISSING * _command_: 実行するコマンド ("/"
* _command_: 実行するコマンド (if beginning with a `/` or a command char)、またはバッファに送信するテキスト で始まっている場合)、またはバッファに送信するテキスト
* _options_: オプションを含むハッシュテーブル (キーと値は文字列です) * _options_: オプションを含むハッシュテーブル (キーと値は文字列です)
(NULL は使えません): (NULL は使えません):
* _options_: a hashtable with some options (keys and values must be string) * _options_: a hashtable with some options (keys and values must be string)
(can be NULL): (can be NULL):
// TRANSLATION MISSING
** _commands_: 指定したコマンドの中で実行を許可するコマンドのカンマ区切りリスト、リストの書式は関数 ** _commands_: 指定したコマンドの中で実行を許可するコマンドのカンマ区切りリスト、リストの書式は関数
<<_string_match_list,string_match_list>> を参考にしてください; <<_string_match_list,string_match_list>> を参考にしてください
the special value `-` (hyphen-minus) disables the execution of commands
and the string in _command_ is sent as-is to the buffer (_WeeChat ≥ 4.5.0_)
** _delay_: コマンド実行までの遅延時間、ミリ秒単位 ** _delay_: コマンド実行までの遅延時間、ミリ秒単位
// TRANSLATION MISSING // TRANSLATION MISSING
** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_) ** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_)
@@ -17220,7 +17190,7 @@ rc = weechat_command_options (NULL, "/some_command arguments", options);
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ... def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# 例: /exec 以外のコマンド実行を許可 # 例: /exec 以外のコマンド実行を許可
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"}) rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
+1 -1
View File
@@ -275,7 +275,7 @@ channels configured in the "autojoin" server option.
/close /close
---- ----
[CAUTION] [WARNING]
`/close` を用いてサーバから切断した場合、すべてのチャンネルおよびプライベートバッファは閉じられます。 `/close` を用いてサーバから切断した場合、すべてのチャンネルおよびプライベートバッファは閉じられます。
サーババッファ上で実行することで、サーバから切断します: サーババッファ上で実行することで、サーバから切断します:
+128 -143
View File
@@ -503,7 +503,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
[CAUTION] [WARNING]
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
@@ -644,7 +644,7 @@ include::includes/cmdline_options.ja.adoc[tag=standard]
Some extra options are available for debug purposes only: Some extra options are available for debug purposes only:
// TRANSLATION MISSING // TRANSLATION MISSING
[CAUTION] [WARNING]
Do *NOT* use any of these options in production! Do *NOT* use any of these options in production!
include::includes/cmdline_options.ja.adoc[tag=debug] include::includes/cmdline_options.ja.adoc[tag=debug]
@@ -936,7 +936,7 @@ WeeChat を起動した端末の例:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ "status" と "input" バー "nicklist" バー ▲ ▲ "status" と "input" バー "nicklist" バー ▲
@@ -976,39 +976,34 @@ By default, the screen is divided up into the following areas:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| 要素 | 例 | 説明 | 要素 | 例 | 説明
| time | `12:55` | 時刻 | time | `[12:55]` | 時刻
| buffer_last_number | `[5]` | リスト中の最後のバッファ番号
| buffer_plugin | `[irc/libera]` | 現在のバッファのプラグイン (irc プラグインではバッファで利用されている IRC サーバ名を追加できます)
| buffer_number | `2` | 現在のバッファの番号
| buffer_name | `#test` | 現在のバッファの名前
| buffer_modes | `+n` | IRC チャンネルモード
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_last_number | `5` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`). | buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
| buffer_plugin | `irc/libera` | 現在のバッファのプラグイン (irc プラグインではバッファで利用されている IRC サーバ名を追加できます) | buffer_zoom | ! | `!` はマージされたバッファがズームされている状態 (ズームされたものだけを表示する状態) を示します、空の場合はすべてのマージされたバッファが表示されていることを示します
| buffer_number | `2` | 現在のバッファの番号 | buffer_filter | `+*+` | フィルタ表示: `+*+` の場合いくつかの行がフィルタされ (隠され) ます、空の場合すべての行が表示されます。
| buffer_name | `#test` | 現在のバッファの名前 | scroll | `-MORE(50)-` | スクロール表示、最後の行が表示されてから追加された行数を含む。
| buffer_modes | `+n` | IRC チャンネルモード | lag | `[Lag: 2.5]` | 遅延秒表示 (遅延が短い場合は非表示)
// TRANSLATION MISSING | hotlist | `[H: 3:#abc(2,5), 5]` | 変化のあったバッファのリスト (未読メッセージ) (例では、_#abc_ に 2 個のハイライトと 5 個の未読メッセージ、5 番目のバッファに 1 個の未読メッセージがあることを意味します。)
| buffer_nicklist_count | `4` | Number of nicks displayed in nicklist. | completion | `abc(2) def(5)` | 補完候補の単語リスト、各単語に対して適応される補完候補の数を含む。
| buffer_zoom | ! | `!` はマージされたバッファがズームされている状態 (ズームされたものだけを表示する状態) を示します、空の場合はすべてのマージされたバッファが表示されていることを示します
| buffer_filter | `+*+` | フィルタ表示: `+*+` の場合いくつかの行がフィルタされ (隠され) ます、空の場合すべての行が表示されます。
// TRANSLATION MISSING
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,toggle keys>>.
| scroll | `-MORE(50)-` | スクロール表示、最後の行が表示されてから追加された行数を含む。
| lag | `Lag: 2.5` | 遅延秒表示 (遅延が短い場合は非表示)
| hotlist | `H: 3:#abc(2,5), 5` | 変化のあったバッファのリスト (未読メッセージ) (例では、_#abc_ に 2 個のハイライトと 5 個の未読メッセージ、5 番目のバッファに 1 個の未読メッセージがあることを意味します。)
// TRANSLATION MISSING
| typing | `Typing: bob, (alice)` | Typing notification, see <<typing_notifications,typing notifications>>.
| completion | `abc(2) def(5)` | 補完候補の単語リスト、各単語に対して適応される補完候補の数を含む。
|=== |===
入力 (_input_) バーは以下の初期要素を持っています: 入力 (_input_) バーは以下の初期要素を持っています:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| 要素 | 例 | 説明 | 要素 | 例 | 説明
| input_prompt | `@Flashy` | 入力プロンプト、irc の場合: ニックネームとモード (libera では "+i" モードは不可視状態を意味します) | input_prompt | `[@Flashy]` | 入力プロンプト、irc の場合: ニックネームとモード (libera では "+i" モードは不可視状態を意味します)
| away | `away` | 離席状態表示 | away | `(away)` | 離席状態表示
// TRANSLATION MISSING // TRANSLATION MISSING
| input_search | `Search lines (~ str,msg)` | Search indicator (see below). | input_search | `[Search lines (~ str,msg)]` | Search indicator (see below).
| input_paste | `Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No` | 行をペーストする場合にユーザへ行われる質問 | input_paste | `[Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No]` | 行をペーストする場合にユーザへ行われる質問
| input_text | `hi peter!` | 入力テキスト | input_text | `hi peter!` | 入力テキスト
|=== |===
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -1048,7 +1043,9 @@ There are two search modes:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| 要素 | 例 | 説明 | 要素 | 例 | 説明
| buffer_count | `5` | 開いているバッファの総数 | buffer_count | `10` | 開いているバッファの総数
// TRANSLATION MISSING
| buffer_last_number | `10` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist. | buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -1074,8 +1071,7 @@ There are two search modes:
| irc_nick_modes | `i` | 自分のニックネームに対する IRC モード | irc_nick_modes | `i` | 自分のニックネームに対する IRC モード
// TRANSLATION MISSING // TRANSLATION MISSING
| irc_nick_prefix | `@` | IRC nick prefix on channel. | irc_nick_prefix | `@` | IRC nick prefix on channel.
// TRANSLATION MISSING | mouse_status | `M` | マウスの状態 (マウスが無効化されている場合は空文字列)
| spacer | | Special item used to align text in bars, see <<item_spacer,Spacer item>>.
| spell_dict | `fr,en` | 現在のバッファにおけるスペリング辞書 | spell_dict | `fr,en` | 現在のバッファにおけるスペリング辞書
| spell_suggest | `print,prone,prune` | カーソル下の単語に対するスペリング候補 (スペルが間違っている場合) | spell_suggest | `print,prone,prune` | カーソル下の単語に対するスペリング候補 (スペルが間違っている場合)
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -2148,9 +2144,9 @@ These keys and actions are used on the IRC /list buffer (see command <<command_i
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+` | kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+`
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+`
| kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+`
| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | | | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). |
| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | | | `n:xxx` | Show only channels with "xxx" in name (case insensitive). |
| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). |
| | `u:n` | Show only channels with at least "n" users. | | | `u:n` | Show only channels with at least "n" users. |
| | `u:>n` | Show only channels with more than "n" users. | | | `u:>n` | Show only channels with more than "n" users. |
| | `u:<n` | Show only channels with less than "n" users. | | | `u:<n` | Show only channels with less than "n" users. |
@@ -2213,27 +2209,27 @@ Example of fset buffer displaying options starting with `weechat.look` :
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggl>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: 入力の変更に対する最小限表示モード │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c
│ │を終了する [デフォルト: on] │ │hanges in input [default: on] │
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines enum message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words ブール on │ │ weechat.look.align_multiline_words boolean on
│ │ weechat.look.bar_more_down 文字列 "++" │ │ weechat.look.bar_more_down string "++"
│ │ weechat.look.bar_more_left 文字列 "<<" │ │ weechat.look.bar_more_left string "<<"
│ │ weechat.look.bar_more_right 文字列 ">>" │ │ weechat.look.bar_more_right string ">>"
│ │ weechat.look.bar_more_up 文字列 "--" │ │ weechat.look.bar_more_up string "--"
│ │## weechat.look.bare_display_exit_on_input ブール on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format 文字列 "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber ブール on │ │ weechat.look.buffer_auto_renumber boolean on
│ │ weechat.look.buffer_notify_default enum all │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position enum end │ │ weechat.look.buffer_position enum end
│ │ weechat.look.buffer_search_case_sensitive ブール off │ │ weechat.look.buffer_search_case_sensitive boolean off
│ │ weechat.look.buffer_search_force_default ブール off │ │ weechat.look.buffer_search_force_default boolean off
│ │ weechat.look.buffer_search_history enum local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex ブール off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where enum prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format 文字列 "%H:%M:%S" │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3609,15 +3605,13 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
By default no servers are defined. You can add as many servers as you want with By default no servers are defined. You can add as many servers as you want with
the <<command_irc_server,/server>> command. the <<command_irc_server,/server>> command.
For example to connect to https://libera.chat/[libera.chat ^↗^^]: For example to connect to https://libera.chat/[libera.chat ^↗^^]
with TLS (encrypted trafic):
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
Default port is 6697 and TLS (encrypted traffic) is enabled.
You can tell WeeChat to auto-connect to this server on startup: You can tell WeeChat to auto-connect to this server on startup:
---- ----
@@ -3658,52 +3652,51 @@ For example if you created the _libera_ server with the commands above, you'll
see this with the command `/fset libera`: see this with the command `/fset libera`:
.... ....
irc.server.libera.addresses 文字列 "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood 整数 null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect ブール on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin 文字列 null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay 整数 null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic ブール null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect ブール null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay 整数 null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin ブール null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay 整数 null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check 整数 null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks 整数 null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities 文字列 null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message enum null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command 文字列 null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay 整数 null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout 整数 null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes 文字列 null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 enum null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname 文字列 null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick 文字列 null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part 文字列 null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit 文字列 null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks 文字列 null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate ブール null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify 文字列 null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password 文字列 null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy 文字列 null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname 文字列 null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode 文字列 null -> "r" irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_fail enum null -> reconnect irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_key 文字列 null -> "" irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_mechanism enum null -> plain irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_password 文字列 "${sec.data.libera}" irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_timeout 整数 null -> 15 irc.server.libera.sasl_username string "alice"
irc.server.libera.sasl_username 文字列 "alice" irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.split_msg_max_length 整数 null -> 512 irc.server.libera.tls boolean on
irc.server.libera.tls ブール null -> on irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_cert 文字列 null -> "" irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_dhkey_size 整数 null -> 2048 irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_fingerprint 文字列 null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_password 文字列 null -> "" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_priorities 文字列 null -> "NORMAL" irc.server.libera.tls_verify boolean null -> on
irc.server.libera.tls_verify ブール null -> on irc.server.libera.usermode string null -> ""
irc.server.libera.usermode 文字列 null -> "" irc.server.libera.username string null -> "alice"
irc.server.libera.username 文字列 null -> "${username}"
.... ....
For example if you want to automatically connect to all servers you define For example if you want to automatically connect to all servers you define
@@ -4941,21 +4934,13 @@ For example:
Now you can connect on port 9000 with a WeeChat or a remote interface using Now you can connect on port 9000 with a WeeChat or a remote interface using
password "mypassword". password "mypassword".
To connect to an _api_ relay running locally with WeeChat: To connect to an _api_ relay with WeeChat:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
To connect to an _api_ relay running elsewhere with WeeChat
(TLS is highly recommended):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
The remote WeeChat must expose the same API version as the local WeeChat, so The remote WeeChat must expose the same API version as the local WeeChat, so
it's highly recommended to use exactly the same WeeChat version on remote it's highly recommended to use exactly the same WeeChat version on remote
@@ -4997,7 +4982,7 @@ HTML5 を使えばたった 1 行の JavaScript で WebSocket をオープンす
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
ポート番号 (例では 9500 番) は Relay プラグインで定義したものです。 ポート番号 (例では 9500 番) は Relay プラグインで定義したものです。
@@ -6071,7 +6056,7 @@ For privacy considerations, the download of scripts is disabled by default. +
To enable it, type this command: To enable it, type this command:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
@@ -6082,33 +6067,33 @@ with the <<command_script_script,/script>> command:
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 個のスクリプト (フィルタ: {x}) | ソート: i,p,n | Alt+key/input: i=インストール、r=削除、l=ロ>> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | サーバによるグループ化と名前によるソート │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | ハイライトモニタバッファを追加。 │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | バッファとログファイルから正規表現で検索 │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | チャットエリアとコマンドラインで weechat │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | 素早くバッファへ移動。 ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | テキスト書式を変更します、書式機能を持た │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | 代替タイムゾーン要素を追加。 │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 の操作と現在再生中の局に関する │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | プライベートメッセージとハイライトを AMQ │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | URL タイトルをユーザまたはチャンネルに通 │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | プライベートメッセージ、ハイライト、DCC │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidental │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | ユーザが s/誤/正 を送信したらテキストを │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | 単純な自動応答。 │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | "@" 文字の後でニックネームのタブ補完。 │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Audacious が現在再生中の曲を表示。 │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | SASL ユーザ名およびパスワードを使って Ni │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | 簡単な自動離席スクリプト。 │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | ニックネームを変更した際に自動認証を許可 │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | バッファの活発さに応じて並び替える。 │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | 変更されたオプションを .weerc ファイルに │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | WeeChat の終了時に開いていたサーバとチャ │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | チャンネルに招待されたら自動的に参加。 │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | 特定の時間内に新しいメッセージを受け取っ │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | 新しいバッファを事前に定義した規則に従っ │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+5 -3
View File
@@ -313,7 +313,8 @@ samą zawartość obecnie wybranego okna, bez żadnego formatowania.
Możesz użyć terminala z prostokątnym zaznaczaniem (jak rxvt-unicode, Możesz użyć terminala z prostokątnym zaznaczaniem (jak rxvt-unicode,
konsole, gnome-terminal, ...). Klawisze to zazwyczaj kbd:[Ctrl] + kbd:[Alt] + zaznaczenie myszką. konsole, gnome-terminal, ...). Klawisze to zazwyczaj kbd:[Ctrl] + kbd:[Alt] + zaznaczenie myszką.
Możesz wyłączyć listę nicków i włączyć ją, kiedy będzie potrzebna za pomocą // TRANSLATION MISSING
You can toggle nicklist and make it visible only when needed, with key
kbd:[Alt+Shift+N]. kbd:[Alt+Shift+N].
Innym rozwiązaniem jest przesunięcie listy nicków na górę lub dół, na przykład: Innym rozwiązaniem jest przesunięcie listy nicków na górę lub dół, na przykład:
@@ -330,7 +331,8 @@ Możesz użyć prostego trybu wyświetlania (domyślnie: kbd:[Alt+l] (`L`)).
Żeby operowanie na URLach było latwiejsze możesz: Żeby operowanie na URLach było latwiejsze możesz:
* wyłączyć listę nicków i pokazać ja tylko, kiedy będzie potrzebna, za pomocą kbd:[Alt+Shift+N] // TRANSLATION MISSING
* toggle nicklist and make it visible only when needed, with key kbd:[Alt+Shift+N]
* przenieść listę nicków na górę: * przenieść listę nicków na górę:
@@ -1239,7 +1241,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /ścieżka/do/weechat
[[supported_os]] [[supported_os]]
=== Jaka jest lista platform wspieranych przez WeeChat? Czy będzie przeportowany na inne systemy operacyjne? === Jaka jest lista platform wspieranych przez WeeChat? Czy będzie przeportowany na inne systemy operacyjne?
WeeChat działa dobrze na większości systemów Linux/BSD, GNU/Hurd, macOS i Windowsie WeeChat działa dobrze na większości systemów Linux/BSD, GNU/Hurd, Mac OS i Windowsie
(Cygwin i Windows Subsystem for Linux). (Cygwin i Windows Subsystem for Linux).
Robimy co w naszej mocy, aby WeeChat działał na tylu platformach ile to tylko Robimy co w naszej mocy, aby WeeChat działał na tylu platformach ile to tylko
+1 -1
View File
@@ -271,7 +271,7 @@ Zamknij serwer, kanał albo prywatny bufor (`/close` to alias dla
/close /close
---- ----
[CAUTION] [WARNING]
Zamknięcie buforu serwera poskutkuje zamknięciem wszystkich buforów prywatnych/kanałów. Zamknięcie buforu serwera poskutkuje zamknięciem wszystkich buforów prywatnych/kanałów.
Rozłączanie się z serwerem, w buforze serwera: Rozłączanie się z serwerem, w buforze serwera:
+127 -141
View File
@@ -469,7 +469,7 @@ WeeChat w przypadku wystąpienia problemu:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
[CAUTION] [WARNING]
Powinieneś włączyć tą opcję tylko jeśli chcesz wymusić awarię aplikacji, Powinieneś włączyć tą opcję tylko jeśli chcesz wymusić awarię aplikacji,
nie powinno się tego używać do codziennej pracy. nie powinno się tego używać do codziennej pracy.
@@ -606,7 +606,7 @@ include::includes/cmdline_options.pl.adoc[tag=standard]
Kilka dodatkowych opcji jest dostępne tylko do celu debugowania: Kilka dodatkowych opcji jest dostępne tylko do celu debugowania:
[CAUTION] [WARNING]
*NIE* używaj żadnej z nich podczas codziennej pracy! *NIE* używaj żadnej z nich podczas codziennej pracy!
include::includes/cmdline_options.pl.adoc[tag=debug] include::includes/cmdline_options.pl.adoc[tag=debug]
@@ -881,7 +881,7 @@ Przykład terminala z WeeChat:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
▲ bars "status" and "input" bar "nicklist" ▲ ▲ bars "status" and "input" bar "nicklist" ▲
@@ -920,36 +920,32 @@ Pasek _status_ posiada następujące domyślne elementy:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Element | Przykład | Opis | Element | Przykład | Opis
| time | `12:55` | Czas. | time | `[12:55]` | Czas.
| buffer_last_number | `5` | Liczba najnowszych buforów (może się różnić od `buffer_count` jeśli opcja <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> jest ustawiona na `off`). | buffer_last_number | `[5]` | Numer ostatniego buforu na liście.
| buffer_plugin | `irc/libera` | Wtyczka dla obecnego bufora (wtyczka irc może dodać nazwę serwera IRC używanego przez bufor). | buffer_plugin | `[irc/libera]` | Wtyczka dla obecnego bufora (wtyczka irc może dodać nazwę serwera IRC używanego przez bufor).
| buffer_number | `2` | Numer obecnego buforu. | buffer_number | `2` | Numer obecnego buforu.
| buffer_name | `#test` | Nazwa obecnego buforu. | buffer_name | `#test` | Nazwa obecnego buforu.
| buffer_modes | `+n` | Tryby kanału IRC. | buffer_modes | `+n` | Tryby kanału IRC.
| buffer_nicklist_count | `4` | Ilość nicków wyświetlanych na liście nicków. | buffer_nicklist_count | `{4}` | Ilość nicków wyświetlanych na liście nicków.
| buffer_zoom | ! | `!` oznacza, że połączony bufor jest przybliżony (tylko ten jest wyświetlany), pusta wartość oznacza, że wszystkie połączone bufory są wyświetlane. | buffer_zoom | ! | `!` oznacza, że połączony bufor jest przybliżony (tylko ten jest wyświetlany), pusta wartość oznacza, że wszystkie połączone bufory są wyświetlane.
| buffer_filter | `+*+` | Wskaźnik filtrowania: `+*+` oznacza, że niektóre linie zostały odfiltrowywane (ukryte), pusta wartość oznacza, że wszystkie linie są wyświetlane. | buffer_filter | `+*+` | Wskaźnik filtrowania: `+*+` oznacza, że niektóre linie zostały odfiltrowywane (ukryte), pusta wartość oznacza, że wszystkie linie są wyświetlane.
// TRANSLATION MISSING | scroll | `-Więcej(50)-` | Wskaźnik przewijania, z numerem linii poniżej ostatniej wyświetlanej.
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,Włącz/wyłącz>>. | lag | `[Lag: 2.5]` | Wskaźnik opóźnienia, w sekundach (ukryty dla niskich opóźnień).
| scroll | `-Więcej(50)-` | Wskaźnik przewijania, z numerem linii poniżej ostatniej wyświetlanej. | hotlist | `[H: 3:#abc(2,5), 5]` | Lista buforów z aktywnością (nieprzeczytane wiadomości) (w przykładzie, 2 podświetlenia i 5 nieprzeczytanych wiadomości w _#abc_, jedna wiadomość w buforze #5).
| lag | `Lag: 2.5` | Wskaźnik opóźnienia, w sekundach (ukryty dla niskich opóźnień). | completion | `abc(2) def(5)` | Lista słów do dopełnienia, z ilością możliwych dopnień dla każdego słowa.
| hotlist | `H: 3:#abc(2,5), 5` | Lista buforów z aktywnością (nieprzeczytane wiadomości) (w przykładzie, 2 podświetlenia i 5 nieprzeczytanych wiadomości w _#abc_, jedna wiadomość w buforze #5).
// TRANSLATION MISSING
| typing | `Typing: bob, (alice)` | Typing notification, see <<typing_notifications,Powiadomienia o pisaniu>>.
| completion | `abc(2) def(5)` | Lista słów do dopełnienia, z ilością możliwych dopełnień dla każdego słowa.
|=== |===
Pasek _input_ posiada następujące domyślne elementy: Pasek _input_ posiada następujące domyślne elementy:
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Element | Przykład | Opis | Element | Przykład | Opis
| input_prompt | `@Flashy(i)` | Input prompt, dla irc: nick i tryby (tryb "+i" oznacza niewidzialny na libera). | input_prompt | `[@Flashy(i)]` | Input prompt, dla irc: nick i tryby (tryb "+i" oznacza niewidzialny na libera).
| away | `away` | Wskaźnik nieobecności. | away | `(away)` | Wskaźnik nieobecności.
| input_search | `Search lines (~ str,msg)` | Wskaźnik wyszukiwania (zobacz poniżej). | input_search | `[Search lines (~ str,msg)]` | Wskaźnik wyszukiwania (zobacz poniżej).
| input_paste | `Wkleić 7 linii ? [ctrl-y] Tak [ctrl-n] Nie` | Pyta użytkownika podczas wklejania kilku linii tekstu. | input_paste | `[Wkleić 7 linii ? [ctrl-y] Tak [ctrl-n] Nie]` | Pyta użytkownika podczas wklejania kilku linii tekstu.
| input_text | `hi peter!` | Wprowadzony tekst. | input_text | `hi peter!` | Wprowadzony tekst.
|=== |===
Dostępne są dwa tryby wyszukiwania: Dostępne są dwa tryby wyszukiwania:
@@ -984,7 +980,8 @@ Inne dostępne elementy (nie używane domyślnie w paskach):
[width="100%",cols="^3,^3,9",options="header"] [width="100%",cols="^3,^3,9",options="header"]
|=== |===
| Element | Przykład | Opis | Element | Przykład | Opis
| buffer_count | `5` | Liczba otwartych buforów. | buffer_count | `10` | Liczba otwartych buforów.
| buffer_last_number | `10` | Liczba najnowszych buforów (może się różnić od `buffer_count` jeśli opcja <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> jest ustawiona na `off`).
| buffer_nicklist_count_all | `4` | Liczba widocznych grup i nicków na nickliście. | buffer_nicklist_count_all | `4` | Liczba widocznych grup i nicków na nickliście.
| buffer_nicklist_count_groups | `0` | Liczba widocznych grup na nickliście. | buffer_nicklist_count_groups | `0` | Liczba widocznych grup na nickliście.
| buffer_short_name | `#test` | Skrócona nazwa obecnego buforu. | buffer_short_name | `#test` | Skrócona nazwa obecnego buforu.
@@ -999,8 +996,7 @@ Inne dostępne elementy (nie używane domyślnie w paskach):
| irc_nick_host | `+Flashy!user@host.com+` | Aktualny nick i host IRC. | irc_nick_host | `+Flashy!user@host.com+` | Aktualny nick i host IRC.
| irc_nick_modes | `i` | Atrybuty IRC dla własnego nicka. | irc_nick_modes | `i` | Atrybuty IRC dla własnego nicka.
| irc_nick_prefix | `@` | Prefiks nicku na kanale IRC. | irc_nick_prefix | `@` | Prefiks nicku na kanale IRC.
// TRANSLATION MISSING | mouse_status | `M` | Status obsługi myszy (pusty jeśli obsługa myszy jest wyłączona).
| spacer | | Special item used to align text in bars, see <<item_spacer,Odstęp>>.
| spell_dict | `fr,en` | Słowniki używane w obecnym buforze. | spell_dict | `fr,en` | Słowniki używane w obecnym buforze.
| spell_suggest | `print,prone,prune` | Sugestie dla słowa pod kursorem (jeśli zawiera błąd). | spell_suggest | `print,prone,prune` | Sugestie dla słowa pod kursorem (jeśli zawiera błąd).
| tls_version | `TLS1.3` | Wersja TLS używana przez obecny serwer IRC. | tls_version | `TLS1.3` | Wersja TLS używana przez obecny serwer IRC.
@@ -2038,27 +2034,27 @@ Przykład bufora fset wyświetlający opcje zaczynające się od `weechat.look`
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Filtr: weechat.look.* | Sortowanie: ~name | Klawisz(wejście): alt+>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: wyjście z trybu niesformatowanego w │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c
│ │yświetlania po każdej zmianie wejścia [domyślnie: on] │ │hanges in input [default: on]
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines enum message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words bool on │ │ weechat.look.align_multiline_words boolean on
│ │ weechat.look.bar_more_down ciąg "++" │ │ weechat.look.bar_more_down string "++" │
│ │ weechat.look.bar_more_left ciąg "<<" │ │ weechat.look.bar_more_left string "<<" │
│ │ weechat.look.bar_more_right ciąg ">>" │ │ weechat.look.bar_more_right string ">>" │
│ │ weechat.look.bar_more_up ciąg "--" │ │ weechat.look.bar_more_up string "--" │
│ │## weechat.look.bare_display_exit_on_input bool on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format ciąg "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber bool on │ │ weechat.look.buffer_auto_renumber boolean on
│ │ weechat.look.buffer_notify_default enum all │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position enum end │ │ weechat.look.buffer_position enum end
│ │ weechat.look.buffer_search_case_sensitive bool off │ │ weechat.look.buffer_search_case_sensitive boolean off │
│ │ weechat.look.buffer_search_force_default bool off │ │ weechat.look.buffer_search_force_default boolean off │
│ │ weechat.look.buffer_search_history enum local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex bool off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where enum prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format ciąg "%H:%M:%S" │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3427,16 +3423,13 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
Domyślnie nie są zdefiniowane żadne serwery. Możesz dodać ich tyle ile chcesz Domyślnie nie są zdefiniowane żadne serwery. Możesz dodać ich tyle ile chcesz
za pomocą polecenia <<command_irc_server,/server>>. za pomocą polecenia <<command_irc_server,/server>>.
Na przykład w celu połączenia się do https://libera.chat/[libera.chat ^↗^^]: Na przykład w celu połączenia się do https://libera.chat/[libera.chat ^↗^^]
używając TLS (szyfrowane połączenie):
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
// TRANSLATION MISSING
Default port is 6697 and TLS (encrypted traffic) is enabled.
Możesz powiedzieć WeeChat, aby automatycznie łączył się z tym serwerem po Możesz powiedzieć WeeChat, aby automatycznie łączył się z tym serwerem po
uruchomieniu: uruchomieniu:
@@ -3479,52 +3472,51 @@ Na przykład jeśli stworzyłeś serwer _libera_ za pomocą po wyższych komend
zobaczysz to po wykonaniu `/fset libera`: zobaczysz to po wykonaniu `/fset libera`:
.... ....
irc.server.libera.addresses ciąg "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood liczba null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect bool on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin ciąg null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay liczba null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic bool null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect bool null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay liczba null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin bool null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay liczba null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check liczba null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks liczba null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities ciąg null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message enum null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command ciąg null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay liczba null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout liczba null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes ciąg null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 enum null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname ciąg null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick ciąg null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part ciąg null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit ciąg null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks ciąg null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate bool null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify ciąg null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password ciąg null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy ciąg null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname ciąg null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode ciąg null -> "r" irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_fail enum null -> reconnect irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_key ciąg null -> "" irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_mechanism enum null -> plain irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_password ciąg "${sec.data.libera}" irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_timeout liczba null -> 15 irc.server.libera.sasl_username string "alice"
irc.server.libera.sasl_username ciąg "alice" irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.split_msg_max_length liczba null -> 512 irc.server.libera.tls boolean on
irc.server.libera.tls bool null -> on irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_cert ciąg null -> "" irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_dhkey_size liczba null -> 2048 irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_fingerprint ciąg null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_password ciąg null -> "" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_priorities ciąg null -> "NORMAL" irc.server.libera.tls_verify boolean null -> on
irc.server.libera.tls_verify bool null -> on irc.server.libera.usermode string null -> ""
irc.server.libera.usermode ciąg null -> "" irc.server.libera.username string null -> "alice"
irc.server.libera.username ciąg null -> "${username}"
.... ....
Na przykład jeśli chcesz automatycznie połączyć się ze wszystkimi zdefiniowanym Na przykład jeśli chcesz automatycznie połączyć się ze wszystkimi zdefiniowanym
@@ -4734,23 +4726,17 @@ Na przykład:
---- ----
Możesz teraz połączyć się na porcie 9000 używając WeeChat lub zdalnym interfejsem Możesz teraz połączyć się na porcie 9000 używając WeeChat lub zdalnym interfejsem
używając hasła 'mypassword'. używając hasła
Now you can connect on port 9000 with a WeeChat or a remote interface using
password "moje_hasło".
Połączenie z pośrednikiem _api_ działającym lokalnie z WeeChat: Łączenie się z pośrednikiem _api_ z WeeChat:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
Połączenie z pośrednikiem _api_ działającym gdzieś z WeeChat
(TLS jest baredzo zalecany):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
Zdalny WeeChat musi używać tej samej wersji API co lokalny WeeChat, zaleca się Zdalny WeeChat musi używać tej samej wersji API co lokalny WeeChat, zaleca się
używanie dokładnie tych samych wersji WeeChat zarówno lokalnie jak i na zdalnej używanie dokładnie tych samych wersji WeeChat zarówno lokalnie jak i na zdalnej
@@ -4792,7 +4778,7 @@ WebSocket może zostać otworzony w HTML5 za pomocą jednej linii w JavaScript:
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
Port (9500 w przykładzie) to port zdefiniowany we wtyczce relay. Port (9500 w przykładzie) to port zdefiniowany we wtyczce relay.
@@ -5848,7 +5834,7 @@ W trosce o prywatność pobieranie skryptów jest domyślnie wyłąćzone. +
Żeby je włączyć, wpisz poniższe polecenie: Żeby je włączyć, wpisz poniższe polecenie:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
Następnie możesz pobrać listę skryptów i wyświetlić je w nowym buforze Następnie możesz pobrać listę skryptów i wyświetlić je w nowym buforze
@@ -5858,33 +5844,33 @@ za pomocą polecenia <<command_script_script,/script>>:
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 skrypty (filtr: {x}) | Sort: i,p,n | Alt+klawisz/wejście: i=instaluj r=usuń l=załaduj L=prze>> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Automatycznie grupowanie buforów wg serw │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Dodaje bufor monitorujący higlighty. │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Przeszukuje bufor lub plik z logami za p │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Używaj kolorów nicków weechat w oknie ro │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Szybkie przemieszczanie się pomiędzy buf## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Spraw, że wiadomości będą bardziej E S T │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Alternatywne formatowanie tekstu, przyda │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Dodaje alternatywny element strefy czaso │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Kontrola i wyświetlanie aktualnie odtwar │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Wysyła prywatne wiadomości i higlighty d │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Prezentuje tytuł URL'a użytkownikowi lub │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Powiadomienia na ekranie dla prywatnych │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Zapobiega przypadkowemu wysłaniu hasła d │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Wyświetla poprawiony tekst, kiedy użytko │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Prosty autoresponder. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Dopełnianie tabem dla nicków poprzedzony │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Wyświetla aktualnie odtwarzany utwór prz │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | Automatyczne uwierzytelnianie w NickServ │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | Prosty skrypt auto-away. │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Pozwala na automatyczną identyfikację po │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Ustawia bufory według aktywności. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Automatyczne zapisywanie/ładowanie zapis │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Otwiera kanały i serwery otwarte przed o │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Automatycznie wchodzi na kanał po otrzym │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Oznacza bufor jako przeczytany jeśli nie │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | Automatyczna łączenie nowych buforów zgo │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+1 -1
View File
@@ -292,7 +292,7 @@ channels configured in the "autojoin" server option.
/close /close
---- ----
[CAUTION] [WARNING]
Закрытие соединения с сервером закроет все каналы/частные буферы. Закрытие соединения с сервером закроет все каналы/частные буферы.
Отключиться от сервера, на серверном буфере: Отключиться от сервера, на серверном буфере:
+1 -3
View File
@@ -328,7 +328,6 @@ WeeChat „језгро” се налази у следећим директо
|    relay/ | Релеј додатак (IRC прокси и релеј за удаљене интерфејсе). |    relay/ | Релеј додатак (IRC прокси и релеј за удаљене интерфејсе).
|       relay.c | Главне релеј функције. |       relay.c | Главне релеј функције.
|       relay-auth.c | Аутентификација клијената. |       relay-auth.c | Аутентификација клијената.
|       relay-bar-item.c | Ставке траке Релеја.
|       relay-buffer.c | Релеј бафер. |       relay-buffer.c | Релеј бафер.
|       relay-client.c | Клијенти релеја. |       relay-client.c | Клијенти релеја.
|       relay-command.c | Релеј команде. |       relay-command.c | Релеј команде.
@@ -425,11 +424,10 @@ WeeChat „језгро” се налази у следећим директо
|          test-core-crypto.cpp | Тестови: криптографске функције. |          test-core-crypto.cpp | Тестови: криптографске функције.
|          test-core-dir.cpp | Тестови: функције директоријума/фајла. |          test-core-dir.cpp | Тестови: функције директоријума/фајла.
|          test-core-eval.cpp | Тестови: израчунавање израза. |          test-core-eval.cpp | Тестови: израчунавање израза.
|          test-core-hashtable.cpp | Тестови: hashtables. |          test-core-hashtble.cpp | Тестови: hashtables.
|          test-core-hdata.cpp | Тестови: hdata. |          test-core-hdata.cpp | Тестови: hdata.
|          test-core-hook.cpp | Тестови: куке. |          test-core-hook.cpp | Тестови: куке.
|          test-core-infolist.cpp | Тестови: infolists. |          test-core-infolist.cpp | Тестови: infolists.
|          test-core-input.cpp | Тестови: функције за унос.
|          test-core-list.cpp | Тестови: листе. |          test-core-list.cpp | Тестови: листе.
|          test-core-network.cpp | Тестови: мрежне функције. |          test-core-network.cpp | Тестови: мрежне функције.
|          test-core-secure.cpp | Тестови: обезбеђени подаци. |          test-core-secure.cpp | Тестови: обезбеђени подаци.
+5 -3
View File
@@ -264,7 +264,8 @@ _прозор_ је површина екрана која приказује б
Можете да користите терминал са правоугаоним избором (као rxvt-unicode, konsole, gnome-terminal, итд.). Тастер је обично kbd:[Ctrl] + kbd:[Alt] + избор мишем. Можете да користите терминал са правоугаоним избором (као rxvt-unicode, konsole, gnome-terminal, итд.). Тастер је обично kbd:[Ctrl] + kbd:[Alt] + избор мишем.
Листу надимака можете да укључите/искључите и да је прикажете само када је потребна, користећи пречицу // TRANSLATION MISSING
You can toggle nicklist and make it visible only when needed, with key
kbd:[Alt+Shift+N]. kbd:[Alt+Shift+N].
Друго решење је да листу надимака померите на врх или дно, на пример: Друго решење је да листу надимака померите на врх или дно, на пример:
@@ -281,7 +282,8 @@ kbd:[Alt+Shift+N].
Ако желите да олакшате отварање URL адреса, можете да: Ако желите да олакшате отварање URL адреса, можете да:
* укључите/искључите листу надимака и да је прикажете само када је потребна, користећи пречицу kbd:[Alt+Shift+N] // TRANSLATION MISSING
* toggle nicklist and make it visible only when needed, with key kbd:[Alt+Shift+N]
* померите листу надимака на врх: * померите листу надимака на врх:
@@ -1113,7 +1115,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /путања/до/програма/weecha
[[supported_os]] [[supported_os]]
=== Како изгледа листа платформи које подржава програм WeeChat? Да ли ће се портовати на друге оперативне системе? === Како изгледа листа платформи које подржава програм WeeChat? Да ли ће се портовати на друге оперативне системе?
WeeChat се лепо извршава на већини Linux/BSD дистрибуција, GNU/Hurd, macOS и Windows (Cygwin и Windows Subsystem for Linux). WeeChat се лепо извршава на већини Linux/BSD дистрибуција, GNU/Hurd, Mac OS и Windows (Cygwin и Windows Subsystem for Linux).
Чинимо што год можемо како би се извршавао на што више различитих платформи. Потребна нам је помоћ око неких ОС које не поседујемо, како би могли да тестирамо програм WeeChat. Чинимо што год можемо како би се извршавао на што више различитих платформи. Потребна нам је помоћ око неких ОС које не поседујемо, како би могли да тестирамо програм WeeChat.
+32 -54
View File
@@ -7900,7 +7900,7 @@ def config_boolean_inherited(option: str) -> int: ...
# пример # пример
option = weechat.config_get("irc.server.libera.autoconnect") option = weechat.config_get("irc.server.libera.autoconnect")
autoconnect = weechat.config_boolean_inherited(option) autoconect = weechat.config_boolean_inherited(option)
---- ----
==== config_integer ==== config_integer
@@ -9233,7 +9233,7 @@ _WeeChat ≥ 0.3.6, ажурирано у верзији 2.0._
Уклања тастерску пречицу (или више њих). Уклања тастерску пречицу (или више њих).
[CAUTION] [WARNING]
Када се ова функција позива, обезбедите да не уклоните корисникове тастерске пречице. Када се ова функција позива, обезбедите да не уклоните корисникове тастерске пречице.
Прототип: Прототип:
@@ -10878,9 +10878,12 @@ struct t_hook *weechat_hook_connect (const char *proxy,
* _address_: име или IP адреса са којом се повезује * _address_: име или IP адреса са којом се повезује
* _port_: број порта * _port_: број порта
* _ipv6_: * _ipv6_:
** `WEECHAT_HOOK_CONNECT_IPV6_DISABLE` ^(1)^: искључује IPv6 (користи се само IPv4) // TRANSLATION MISSING
** `WEECHAT_HOOK_CONNECT_IPV6_AUTO` ^(1)^: користи се IPv6 са преласком на IPv4 по потреби ** `WEECHAT_HOOK_CONNECT_IPV6_DISABLE` ^(1)^: disable IPv6 (use only IPv4)
** `WEECHAT_HOOK_CONNECT_IPV6_FORCE` ^(1)^: форсира се IPv6 (не користи се IPv4) _(WeeChat ≥ 4.4.0)_ // TRANSLATION MISSING
** `WEECHAT_HOOK_CONNECT_IPV6_AUTO` ^(1)^: use IPv6 with fallback to IPv4
// TRANSLATION MISSING
** `WEECHAT_HOOK_CONNECT_IPV6_FORCE` ^(1)^: force IPv6 (do not use IPv4) _(WeeChat ≥ 4.4.0)_
* _retry_: број поновних покушаја, користи се за прелаз на IPv4 хостове ако се IPv6 хостови успостављају везу али онда не прихватају клијента * _retry_: број поновних покушаја, користи се за прелаз на IPv4 хостове ако се IPv6 хостови успостављају везу али онда не прихватају клијента
* _gnutls_sess_: GnuTLS сесија (није обавезна) * _gnutls_sess_: GnuTLS сесија (није обавезна)
* _gnutls_cb_: GnuTLS функција повратног позива (није обавезна) * _gnutls_cb_: GnuTLS функција повратног позива (није обавезна)
@@ -10918,10 +10921,11 @@ struct t_hook *weechat_hook_connect (const char *proxy,
* _callback_pointer_: показивач који се прослеђује функцији повратног позива када је позове програм WeeChat * _callback_pointer_: показивач који се прослеђује функцији повратног позива када је позове програм WeeChat
* _callback_data_: показивач који се прослеђује функцији повратног позива када је позове програм WeeChat; ако није NULL, алоцирала га је malloc (или нека слична функција) и аутоматски се ослобађа када се кука обрише * _callback_data_: показивач који се прослеђује функцији повратног позива када је позове програм WeeChat; ако није NULL, алоцирала га је malloc (или нека слична функција) и аутоматски се ослобађа када се кука обрише
// TRANSLATION MISSING
[NOTE] [NOTE]
^(1)^ Констате за параметар _ipv6_ су доступне почевши од WeeChat 4.4.0. + ^(1)^ Constants for parameter _ipv6_ are available since WeeChat 4.4.0. +
У старијим издањима су дозвољене вредности `1` (користи се IPv6 са преласком на IPv4 у случају потребе) и For older releases, allowed values are `1` (use IPv6 with fallback to IPv4) and
`0` (искључује се IPv6, користи се само IPv4). + `0` (disable IPv6, use only IPv4). +
^(2)^ У скриптама и програмом WeeChat ≥ 2.0, аргументи функције повратног позива _status_, _gnutls_rc_ и _sock_ су цели бројеви (у програму WeeChat ≤ 1.9, били су стрингови). + ^(2)^ У скриптама и програмом WeeChat ≥ 2.0, аргументи функције повратног позива _status_, _gnutls_rc_ и _sock_ су цели бројеви (у програму WeeChat ≤ 1.9, били су стрингови). +
Да би се одржала компатибилност са свим верзијама, препоручује се да аргумент пре употребе конвертујете у цео број, на пример у језику Python: `int(sock)`. Да би се одржала компатибилност са свим верзијама, препоручује се да аргумент пре употребе конвертујете у цео број, на пример у језику Python: `int(sock)`.
@@ -11269,7 +11273,7 @@ C пример:
[source,c] [source,c]
---- ----
int int
my_line_cb (const void *pointer, void *data, struct t_hashtable *line) my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
{ {
struct t_hashtable *hashtable; struct t_hashtable *hashtable;
@@ -11850,7 +11854,8 @@ struct t_hook *weechat_hook_signal (const char *signal,
| weechat | [[hook_signal_buffer_time_for_each_line_changed]] buffer_time_for_each_line_changed | 4.4.0 | weechat | [[hook_signal_buffer_time_for_each_line_changed]] buffer_time_for_each_line_changed | 4.4.0
| Показивач: бафер. | Показивач: бафер.
| Време приказа за сваку измењену линију. // TRANSLATION MISSING
| Display time for each line changed.
| weechat | [[hook_signal_buffer_type_changed]] buffer_type_changed | | weechat | [[hook_signal_buffer_type_changed]] buffer_type_changed |
| Показивач: бафер. | Показивач: бафер.
@@ -11962,13 +11967,15 @@ struct t_hook *weechat_hook_signal (const char *signal,
| Стринг: комбинација тастера. | Стринг: комбинација тастера.
| Комбинација тастера у _cursor_ контексту. | Комбинација тастера у _cursor_ контексту.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0 | weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| Стринг: име распореда. | String: layout name.
| Распоред који се примењује за бафере. | Layout applied for buffers.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0 | weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| Стринг: име распореда. | String: layout name.
| Распоред који се примењује за прозоре. | Layout applied for windows.
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1 | weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| - | | - |
@@ -12163,7 +12170,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
==== hook_signal_send ==== hook_signal_send
_Ажурирано у верзији 1.0, 4.5.0._ _Ажурирано у верзији 1.0._
Шаље сигнал. Шаље сигнал.
@@ -12177,22 +12184,10 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
Аргументи: Аргументи:
// TRANSLATION MISSING * _signal_: сигнал који се шаље
* _signal_: сигнал који се шаље; flags are allowed before the signal name (see below)
_(WeeChat ≥ 4.5.0)_
* _type_data_: тип података који се шаљу уз сигнал (погледајте <<_hook_signal,hook_signal>>) * _type_data_: тип података који се шаљу уз сигнал (погледајте <<_hook_signal,hook_signal>>)
* _signal_data_: подаци који се шаљу уз сигнал * _signal_data_: подаци који се шаљу уз сигнал
// TRANSLATION MISSING
The signal name can contain flags with the following format: `[flags:xxx,yyy]signal`
where `xxx` and `yyy` are names of flags, and `signal` the signal name. +
The following flags are supported:
* _stop_on_error_: exit immediately if a callback returns WEECHAT_RC_ERROR
(remaining callbacks are then NOT executed) _(WeeChat ≥ 4.5.0)_
* _ignore_eat_: consider any callback returning WEECHAT_RC_OK_EAT is in fact
WEECHAT_RC_OK and execute remaining callbacks _(WeeChat ≥ 4.5.0)_
Повратна вредност _(WeeChat ≥ 1.0)_: Повратна вредност _(WeeChat ≥ 1.0)_:
* повратни кôд последње извршене функције повратног позива (_WEECHAT_RC_OK_ ако ниједна функција повратног позива није била извршена): * повратни кôд последње извршене функције повратног позива (_WEECHAT_RC_OK_ ако ниједна функција повратног позива није била извршена):
@@ -12205,8 +12200,6 @@ C пример:
[source,c] [source,c]
---- ----
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string); int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
WEECHAT_HOOK_SIGNAL_STRING, my_string);
---- ----
Скрипта (Python): Скрипта (Python):
@@ -12216,10 +12209,8 @@ int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2"
# прототип # прототип
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ... def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
# примери # пример
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string) rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
---- ----
[[signal_logger_backlog]] [[signal_logger_backlog]]
@@ -12492,7 +12483,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
==== hook_hsignal_send ==== hook_hsignal_send
_WeeChat ≥ 0.3.4, ажурирано у верзији 1.0, 4.5.0._ _WeeChat ≥ 0.3.4, ажурирано у верзији 1.0._
Шаље hsignal (сигнал са хеш табелом). Шаље hsignal (сигнал са хеш табелом).
@@ -12505,9 +12496,7 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
Аргументи: Аргументи:
// TRANSLATION MISSING * _signal_: сигнал који се шаље
* _signal_: сигнал који се шаље; flags are allowed before the signal name
(see function <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
* _hashtable_: хеш табела * _hashtable_: хеш табела
Повратна вредност _(WeeChat ≥ 1.0)_: Повратна вредност _(WeeChat ≥ 1.0)_:
@@ -12521,7 +12510,7 @@ C пример:
[source,c] [source,c]
---- ----
int rc, rc2; int rc;
struct t_hashtable *hashtable = weechat_hashtable_new (8, struct t_hashtable *hashtable = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING,
@@ -12531,7 +12520,6 @@ if (hashtable)
{ {
weechat_hashtable_set (hashtable, "key", "value"); weechat_hashtable_set (hashtable, "key", "value");
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable); rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
weechat_hashtable_free (hashtable); weechat_hashtable_free (hashtable);
} }
---- ----
@@ -12543,9 +12531,8 @@ if (hashtable)
# прототип # прототип
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ... def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
# примери # пример
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"}) rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
---- ----
[[hsignal_irc_redirect_command]] [[hsignal_irc_redirect_command]]
@@ -14459,12 +14446,6 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
се *НЕ* проверавају) + се *НЕ* проверавају) +
"-1": уклања бафер из вруће листе _(WeeChat ≥ 1.0)_. "-1": уклања бафер из вруће листе _(WeeChat ≥ 1.0)_.
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
| приоритет: бафер се на врућу листу додаје са овим приоритетом
(услови дефинисани у опцији _weechat.look.hotlist_add_conditions_
се проверавају).
| completion_freeze | | "0" или "1" | completion_freeze | | "0" или "1"
| "0": нема замрзавања довршавања (подразумевана вредност) | "0": нема замрзавања довршавања (подразумевана вредност)
(глобално подешавање, не користи се показивач на бафер) + (глобално подешавање, не користи се показивач на бафер) +
@@ -16418,7 +16399,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
==== command_options ==== command_options
_WeeChat ≥ 2.5, ажурирано у верзији 4.0.0, 4.5.0._ _WeeChat ≥ 2.5, ажурирано у верзији 4.0.0._
Извршава команду или шаље текст у бафер са опцијама. Извршава команду или шаље текст у бафер са опцијама.
@@ -16433,12 +16414,9 @@ int weechat_command_options (struct t_gui_buffer *buffer, const char *command,
Аргументи: Аргументи:
* _buffer_: показивач на бафер (команда се извршава у овом баферу, употребите NULL за текући бафер) * _buffer_: показивач на бафер (команда се извршава у овом баферу, употребите NULL за текући бафер)
* _command_: команда која се извршава (ако почиње са `/` или командним карактером), или текст који се шаље у бафер * _command_: команда која се извршава (ако почиње са „/”), или текст који се шаље у бафер
* _options_: хеш табела са неким опцијама (кључеви и вредности морају бити стринг) (може да буде NULL): * _options_: хеш табела са неким опцијама (кључеви и вредности морају бити стринг) (може да буде NULL):
** _commands_: листа команди које смеју да се изврше током овог позива раздвојене запетама ** _commands_: листа команди које смеју да се изврше током овог позива раздвојене запетама; за формат, погледајте функцију <<_string_match_list,string_match_list>>
(за формат, погледајте функцију <<_string_match_list,string_match_list>>);
специјална вредност `-` (цртица-минус) искључује извршавање команди
и стрингу _command_ се шаље у бафер онакав какав је (_WeeChat ≥ 4.5.0_)
** _delay_: пауза за извршавање команде, у милисекундама ** _delay_: пауза за извршавање команде, у милисекундама
** _split_newline_: `1` да се команде поделе на карактеру прелома линије (`\n`) (_WeeChat ≥ 4.0.0_) ** _split_newline_: `1` да се команде поделе на карактеру прелома линије (`\n`) (_WeeChat ≥ 4.0.0_)
@@ -16471,7 +16449,7 @@ rc = weechat_command_options (NULL, "/some_command arguments", options);
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ... def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# пример: дозвољава се било која команда осим /exec # пример: дозвољава се било која команда осим /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"}) rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
---- ----
[[completion]] [[completion]]
+1 -1
View File
@@ -238,7 +238,7 @@ WeeChat такође можете подесити да аутоматски а
/close /close
---- ----
[CAUTION] [WARNING]
Затварање бафера сервера ће затворити и све бафере канала и приватне бафере. Затварање бафера сервера ће затворити и све бафере канала и приватне бафере.
Прекид везе са сервером, у баферу сервера: Прекид везе са сервером, у баферу сервера:
+2 -1
View File
@@ -2004,7 +2004,8 @@ hda:
Ова порука се шаље клијенту онда када WeeChat пошаље сигнал „buffer_line_data_changed”. Ова порука се шаље клијенту онда када WeeChat пошаље сигнал „buffer_line_data_changed”.
Подаци се шаљу као hdata: исти подаци као <<message_buffer_line_added,_buffer_line_added>>. // TRANSLATION MISSING
Data sent as hdata: same data as <<message_buffer_line_added,_buffer_line_added>>.
Пример: порука _hello!_ од надимка _FlashCode_ у баферу _irc.libera.#weechat_ је ажурирана: Пример: порука _hello!_ од надимка _FlashCode_ у баферу _irc.libera.#weechat_ је ажурирана:
+124 -137
View File
@@ -457,7 +457,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
[CAUTION] [WARNING]
Чистач адресе би требало да укључите само ако покушавате да откријете узрок краха, то се не препоручује за програм који се нормално користи. Чистач адресе би требало да укључите само ако покушавате да откријете узрок краха, то се не препоручује за програм који се нормално користи.
Затим када се компајлира и инсталира, програм WeeChat морате покренути на следећи начин: Затим када се компајлира и инсталира, програм WeeChat морате покренути на следећи начин:
@@ -581,7 +581,7 @@ include::includes/cmdline_options.sr.adoc[tag=standard]
Неке додатне опције су доступне само за потребе откањања грешака: Неке додатне опције су доступне само за потребе откањања грешака:
[CAUTION] [WARNING]
Ниједну од ових опција *НЕМОЈТЕ* користити у продукцији! Ниједну од ових опција *НЕМОЈТЕ* користити у продукцији!
include::includes/cmdline_options.sr.adoc[tag=debug] include::includes/cmdline_options.sr.adoc[tag=debug]
@@ -829,7 +829,7 @@ https://github.com/weechat/weechat/blob/main/UPGRADING.md[UPGRADING.md ^↗^^]
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │ │ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]
│ │[@Flashy(i)] hi peter!█ │ │ │[@Flashy(i)] hi peter!█ │
└─────────────────────────────────────────────────────────────────────────────────────────┘ └─────────────────────────────────────────────────────────────────────────────────────────┘
▲ траке „status” и „input” трака „nicklist” ▲ ▲ траке „status” и „input” трака „nicklist” ▲
@@ -868,34 +868,32 @@ _status_ трака садржи следеће подразумеване ст
[width="100%", cols="^3,^3,9", options="header"] [width="100%", cols="^3,^3,9", options="header"]
|=== |===
| Ставка | Пример | Опис | Ставка | Пример | Опис
| time | `12:55` | Време. | time | `[12:55]` | Време.
| buffer_last_number | `5` | Број најновијег бафера (може да се разликује од `buffer_count` ако је опција <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> `off`). | buffer_last_number | `[5]` | Број последњег бафера у листи.
| buffer_plugin | `irc/libera` | Додатак текућег бафера (irc додатак може да дода име IRC сервера који бафер користи). | buffer_plugin | `[irc/libera]` | Додатак текућег бафера (irc додатак може да дода име IRC сервера који бафер користи).
| buffer_number | `2` | Број текућег бафера. | buffer_number | `2` | Број текућег бафера.
| buffer_name | `#test` | Име текућег бафера. | buffer_name | `#test` | Име текућег бафера.
| buffer_modes | `+n` | Режими IRC канала. | buffer_modes | `+n` | Режими IRC канала.
| buffer_nicklist_count | `4` | Број надимака у листи надимака. | buffer_nicklist_count | `{4}` | Број надимака у листи надимака.
| buffer_zoom | ! | `!` значи да је спојени бафер зумиран (само он се приказује), празна вредност значи да се приказују сви спојени бафери. | buffer_zoom | ! | `!` значи да је спојени бафер зумиран (само он се приказује), празна вредност значи да се приказују сви спојени бафери.
| buffer_filter | `+*+` | Индикатор филтрирања: `+*+` значи да су неке линије филтриране (скривене), празна вредност значи да се приказују све линије. | buffer_filter | `+*+` | Индикатор филтрирања: `+*+` значи да су неке линије филтриране (скривене), празна вредност значи да се приказују све линије.
| mouse_status | `M` | Статус миша (празно ако је миш искључен), погледајте команду <<command_weechat_mouse,/mouse>> и <<key_bindings_toggle_keys,тастери преклопници>>. | scroll | `-ЈОШ(50)-` | Скрол индикатор, са бројем линија испод последње приказане линије.
| scroll | `-ЈОШ(50)-` | Скрол индикатор, са бројем линија испод последње приказане линије. | lag | `[Кашњење: 2.5]` | Индикатор кашњења, у секундама (скривен је ако је кашњење мало).
| lag | `Кашњење: 2.5` | Индикатор кашњења, у секундама (скривен је ако је кашњење мало). | hotlist | `[H: 3:#abc(2,5), 5]` | Листа бафера који имају активност (непрочитане поруке) (у примеру, 2 истицања и 5 непрочитаних порука на _#abc_, једна непрочитана порука у баферу #5).
| hotlist | `H: 3:#abc(2,5), 5` | Листа бафера који имају активност (непрочитане поруке) (у примеру, 2 истицања и 5 непрочитаних порука на _#abc_, једна непрочитана порука у баферу #5). | completion | `abc(2) def(5)` | Листа речи за довршавање, са бројем могућих довршавања за сваку реч.
| typing | `Куца: bob, (alice)` | Обавештење о куцању, погледајте <<typing_notifications,Обавештења о куцању>>.
| completion | `abc(2) def(5)` | Листа речи за довршавање, са бројем могућих довршавања за сваку реч.
|=== |===
_input_ трака садржи следеће подразумеване ставке: _input_ трака садржи следеће подразумеване ставке:
[width="100%", cols="^3,^3,9", options="header"] [width="100%", cols="^3,^3,9", options="header"]
|=== |===
| Ставка | Пример | Опис | Ставка | Пример | Опис
| input_prompt | `@Flashy(i)` | Одзив за унос, за irc: надимак и режими (режим „+i” значи невидљив на серверу libera). | input_prompt | `[@Flashy(i)]` | Одзив за унос, за irc: надимак и режими (режим „+i” значи невидљив на серверу libera).
| away | `одсутан` | Индикатор одсутности. | away | `(одсутан)` | Индикатор одсутности.
| input_search | `Претрага линија (~ str,msg)` | Индикатор претраге (погледајте испод). | input_search | `[Претрага линија (~ str,msg)]` | Индикатор претраге (погледајте испод).
| input_paste | `Да налепим 7 линија? [ctrl-y] Да [ctrl-n] Не` | Питање за корисника пре налељпивања линија. | input_paste | `[Да налепим 7 линија? [ctrl-y] Да [ctrl-n] Не]` | Питање за корисника пре налељпивања линија.
| input_text | `ћао петре!` | Текст уноса. | input_text | `ћао петре!` | Текст уноса.
|=== |===
Постоје два режима претраге: Постоје два режима претраге:
@@ -930,7 +928,8 @@ _nicklist_ трака садржи следеће подразумеване с
[width="100%", cols="^3,^3,9", options="header"] [width="100%", cols="^3,^3,9", options="header"]
|=== |===
| Ставка | Пример | Опис | Ставка | Пример | Опис
| buffer_count | `5` | Укупан број отворених бафера. | buffer_count | `10` | Укупан број отворених бафера.
| buffer_last_number | `10` | Број најновијег бафера (може да се разликује од `buffer_count` ако је опција <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> `off`).
| buffer_nicklist_count_all | `4` | Број видљивих група и надимака у листи надимака. | buffer_nicklist_count_all | `4` | Број видљивих група и надимака у листи надимака.
| buffer_nicklist_count_groups | `0` | Број видљивих група у листи надимака. | buffer_nicklist_count_groups | `0` | Број видљивих група у листи надимака.
| buffer_short_name | `#test` | Кратко име текућег бафера. | buffer_short_name | `#test` | Кратко име текућег бафера.
@@ -945,7 +944,7 @@ _nicklist_ трака садржи следеће подразумеване с
| irc_nick_host | `+Flashy!user@host.com+` | Тренутни IRC надимак и име хоста. | irc_nick_host | `+Flashy!user@host.com+` | Тренутни IRC надимак и име хоста.
| irc_nick_modes | `i` | IRC режими са ваш надимак. | irc_nick_modes | `i` | IRC режими са ваш надимак.
| irc_nick_prefix | `@` | IRC префикс надимка на каналу. | irc_nick_prefix | `@` | IRC префикс надимка на каналу.
| spacer | | Специјална ставка која се користи за поравнање текста у тракама, погледајте <<item_spacer,Spacer ставка>>. | mouse_status | `M` | Статус миша (празно ако је миш искључен).
| spell_dict | `fr,en` | Речници за проверу правописа који се користе у текућем баферу. | spell_dict | `fr,en` | Речници за проверу правописа који се користе у текућем баферу.
| spell_suggest | `print,prone,prune` | Правописни предлози за реч под курсором (у случају да је погрешно исписана). | spell_suggest | `print,prone,prune` | Правописни предлози за реч под курсором (у случају да је погрешно исписана).
| tls_version | `TLS1.3` | TLS верзија која се користи за текући IRC сервер. | tls_version | `TLS1.3` | TLS верзија која се користи за текући IRC сервер.
@@ -1944,27 +1943,27 @@ Fast Set додатак приказује листу опција у бафер
[subs="quotes"] [subs="quotes"]
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│7/125 | Филтер: weechat.look.* | Сорт: ~name | Тастер(улаз): alt+space=пре>> │1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle
│2.fset │weechat.look.bare_display_exit_on_input: режим огољеног приказа се напушта п │2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c
│ │ри било каквој промени уноса [подразумевано: on] │ │hanges in input [default: on]
│ │----------------------------------------------------------------------------│ │ │----------------------------------------------------------------------------│
│ │ weechat.look.align_end_of_lines набрајање message │ │ weechat.look.align_end_of_lines enum message │
│ │ weechat.look.align_multiline_words логичка on │ │ │ weechat.look.align_multiline_words boolean on
│ │ weechat.look.bar_more_down стринг "++" │ │ weechat.look.bar_more_down string "++" │
│ │ weechat.look.bar_more_left стринг "<<" │ │ weechat.look.bar_more_left string "<<" │
│ │ weechat.look.bar_more_right стринг ">>" │ │ weechat.look.bar_more_right string ">>" │
│ │ weechat.look.bar_more_up стринг "--" │ │ weechat.look.bar_more_up string "--" │
│ │## weechat.look.bare_display_exit_on_input логичка on ##│ │ │## weechat.look.bare_display_exit_on_input boolean on ##│
│ │ weechat.look.bare_display_time_format стринг "%H:%M" │ │ weechat.look.bare_display_time_format string "%H:%M" │
│ │ weechat.look.buffer_auto_renumber логичка on │ │ │ weechat.look.buffer_auto_renumber boolean on
│ │ weechat.look.buffer_notify_default набрајање all │ │ weechat.look.buffer_notify_default enum all │
│ │ weechat.look.buffer_position набрајање end │ │ weechat.look.buffer_position enum end
│ │ weechat.look.buffer_search_case_sensitive логичка off │ │ weechat.look.buffer_search_case_sensitive boolean off
│ │ weechat.look.buffer_search_force_default логичка off │ │ weechat.look.buffer_search_force_default boolean off
│ │ weechat.look.buffer_search_history набрајање local │ │ weechat.look.buffer_search_regex boolean off
│ │ weechat.look.buffer_search_regex логичка off │ │ weechat.look.buffer_search_where enum prefix_message
│ │ weechat.look.buffer_search_where набрајање prefix_message │ │ weechat.look.buffer_time_format string "%H:%M:%S"
│ │ weechat.look.buffer_time_format стринг "%H:%M:%S" │ │ weechat.look.buffer_time_same string ""
│ │[12:55] [2] [fset] 2:fset │ │ │[12:55] [2] [fset] 2:fset │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
@@ -3213,16 +3212,13 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
Подразумевано није дефинисан ниједан сервер. Командом <<command_irc_server,/server>> Подразумевано није дефинисан ниједан сервер. Командом <<command_irc_server,/server>>
можете додати произвољан број сервера. можете додати произвољан број сервера.
На пример, да бисте се повезали на https://libera.chat/[libera.chat ^↗^^]: На пример, да бисте се повезали на https://libera.chat/[libera.chat ^↗^^]
са TLS (шифровани саобраћај):
---- ----
/server add libera irc.libera.chat /server add libera irc.libera.chat/6697 -tls
---- ----
[NOTE]
// TRANSLATION MISSING
Default port is 6697 and TLS (encrypted traffic) is enabled.
Програму WeeChat можете наложити да се приликом покретања аутоматски повеже са овим сервером: Програму WeeChat можете наложити да се приликом покретања аутоматски повеже са овим сервером:
---- ----
@@ -3263,52 +3259,51 @@ Default port is 6697 and TLS (encrypted traffic) is enabled.
следећи списак када будете извршите команду `/fset libera`: следећи списак када будете извршите команду `/fset libera`:
.... ....
irc.server.libera.addresses стринг "irc.libera.chat" irc.server.libera.addresses string "irc.libera.chat/6697"
irc.server.libera.anti_flood целобројна null -> 2000 irc.server.libera.anti_flood_prio_high integer null -> 2
irc.server.libera.autoconnect логичка on irc.server.libera.anti_flood_prio_low integer null -> 2
irc.server.libera.autojoin стринг null -> "" irc.server.libera.autoconnect boolean on
irc.server.libera.autojoin_delay целобројна null -> 0 irc.server.libera.autojoin string null -> ""
irc.server.libera.autojoin_dynamic логичка null -> off irc.server.libera.autojoin_dynamic boolean null -> off
irc.server.libera.autoreconnect логичка null -> on irc.server.libera.autoreconnect boolean null -> on
irc.server.libera.autoreconnect_delay целобројна null -> 10 irc.server.libera.autoreconnect_delay integer null -> 10
irc.server.libera.autorejoin логичка null -> off irc.server.libera.autorejoin boolean null -> off
irc.server.libera.autorejoin_delay целобројна null -> 30 irc.server.libera.autorejoin_delay integer null -> 30
irc.server.libera.away_check целобројна null -> 0 irc.server.libera.away_check integer null -> 0
irc.server.libera.away_check_max_nicks целобројна null -> 25 irc.server.libera.away_check_max_nicks integer null -> 25
irc.server.libera.capabilities стринг null -> "*" irc.server.libera.capabilities string null -> "*"
irc.server.libera.charset_message набрајање null -> message irc.server.libera.charset_message enum null -> message
irc.server.libera.command стринг null -> "" irc.server.libera.command string null -> ""
irc.server.libera.command_delay целобројна null -> 0 irc.server.libera.command_delay integer null -> 0
irc.server.libera.connection_timeout целобројна null -> 60 irc.server.libera.connection_timeout integer null -> 60
irc.server.libera.default_chantypes стринг null -> "#&" irc.server.libera.default_chantypes string null -> "#&"
irc.server.libera.ipv6 набрајање null -> auto irc.server.libera.ipv6 boolean null -> on
irc.server.libera.local_hostname стринг null -> "" irc.server.libera.local_hostname string null -> ""
irc.server.libera.msg_kick стринг null -> "" irc.server.libera.msg_kick string null -> ""
irc.server.libera.msg_part стринг null -> "WeeChat ${info:version}" irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit стринг null -> "WeeChat ${info:version}" irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
irc.server.libera.nicks стринг null -> "${username},${username}2,${username}3,${username}4,${username}5" irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate логичка null -> on irc.server.libera.nicks_alternate boolean null -> on
irc.server.libera.notify стринг null -> "" irc.server.libera.notify string null -> ""
irc.server.libera.password стринг null -> "" irc.server.libera.password string null -> ""
irc.server.libera.proxy стринг null -> "" irc.server.libera.proxy string null -> ""
irc.server.libera.realname стринг null -> "" irc.server.libera.realname string null -> ""
irc.server.libera.registered_mode стринг null -> "r" irc.server.libera.sasl_fail enum null -> reconnect
irc.server.libera.sasl_fail набрајање null -> reconnect irc.server.libera.sasl_key string null -> ""
irc.server.libera.sasl_key стринг null -> "" irc.server.libera.sasl_mechanism enum null -> plain
irc.server.libera.sasl_mechanism набрајање null -> plain irc.server.libera.sasl_password string "${sec.data.libera}"
irc.server.libera.sasl_password стринг "${sec.data.libera}" irc.server.libera.sasl_timeout integer null -> 15
irc.server.libera.sasl_timeout целобројна null -> 15 irc.server.libera.sasl_username string "alice"
irc.server.libera.sasl_username стринг "alice" irc.server.libera.split_msg_max_length integer null -> 512
irc.server.libera.split_msg_max_length целобројна null -> 512 irc.server.libera.tls boolean on
irc.server.libera.tls логичка null -> on irc.server.libera.tls_cert string null -> ""
irc.server.libera.tls_cert стринг null -> "" irc.server.libera.tls_dhkey_size integer null -> 2048
irc.server.libera.tls_dhkey_size целобројна null -> 2048 irc.server.libera.tls_fingerprint string null -> ""
irc.server.libera.tls_fingerprint стринг null -> "" irc.server.libera.tls_password string null -> ""
irc.server.libera.tls_password стринг null -> "" irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_priorities стринг null -> "NORMAL" irc.server.libera.tls_verify boolean null -> on
irc.server.libera.tls_verify логичка null -> on irc.server.libera.usermode string null -> ""
irc.server.libera.usermode стринг null -> "" irc.server.libera.username string null -> "alice"
irc.server.libera.username стринг null -> "${username}"
.... ....
На пример, ако желите да се аутоматски повежете са свим серверима које сте дефинисали, без На пример, ако желите да се аутоматски повежете са свим серверима које сте дефинисали, без
@@ -4465,21 +4460,13 @@ https://weechat.org/about/interfaces/[ову страницу ^↗^^].
Сада са WeeChat или са удаљеним интерфејсом можете да се повежете портом 9000 користећи Сада са WeeChat или са удаљеним интерфејсом можете да се повежете портом 9000 користећи
лозинку „mypassword”. лозинку „mypassword”.
Да се са WeeChat повежете на _api_ релеј који се извршава локално: Ако желите да се повежете на _api_ рејел са WeeChat:
---- ----
/remote add weechat http://localhost:9000 -password=mypassword /remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat /remote connect weechat
---- ----
Да се са WeeChat повежете на _api_ релеј који се извршава на другом месту
(TLS се снажно прпоручује):
----
/remote add weechat https://example.com:9000 -password=mypassword
/remote connect weechat
----
[NOTE] [NOTE]
Удаљени WeeChat мора да објави исту API верзију као и локални WeeChat, тако Удаљени WeeChat мора да објави исту API верзију као и локални WeeChat, тако
да се снажно препоручује да користите потпуно исту WeeChat верзију на удаљеном да се снажно препоручује да користите потпуно исту WeeChat верзију на удаљеном
@@ -4516,7 +4503,7 @@ https://weechat.org/about/interfaces/[ову страницу ^↗^^].
[source,javascript] [source,javascript]
---- ----
websocket = new WebSocket("ws://example.com:9500/weechat"); websocket = new WebSocket("ws://server.com:9500/weechat");
---- ----
Порт (9500 у примеру) је порт који је дефинисан у Релеј додатку. Порт (9500 у примеру) је порт који је дефинисан у Релеј додатку.
@@ -5503,7 +5490,7 @@ https://weechat.org/scripts/[овој страници ^↗^^].
Ако желите да га укључите, откуцајте следећу команду: Ако желите да га укључите, откуцајте следећу команду:
---- ----
/script enable /set script.scripts.download_enabled on
---- ----
Сада можете да преузмете листу скрипти и да је прикажете у новом баферу командом Сада можете да преузмете листу скрипти и да је прикажете у новом баферу командом
@@ -5513,33 +5500,33 @@ https://weechat.org/scripts/[овој страници ^↗^^].
:x: * :x: *
.... ....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│322/322 скрипти (филтер: {x}) | Сортирање: i,p,n | Alt+тастер/унос: i=инсталација, r=уклањање, l=учи>> │1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Automatically keep buffers grouped by se│ │2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Search regular expression in buffers or │ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer.
│ │{x} colorize_nicks.py 32 2023-10-30 | Use the weechat nick colors in the chat │ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Quick jump to buffers. ## │ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L │ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for re │ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers.
│ │ alternatetz.py 0.4 2022-01-25 | Add an alternate timezone item. │ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text.
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script. │ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to │ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel │ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item.
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highl │ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidental │ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s │ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel.
│ │ arespond.py 0.1.2 2022-01-25 | Simple autoresponder. │ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@ │ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currentl │ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ │ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder.
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@".
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changi │ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .wee │ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script.
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last │ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Auto joins channels when invited. │ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity.
│ │ automarkbuffer.py 1.0 2015-03-31 | Mark buffers as read if there is no new │ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f
│ │ automerge.py 0.2 2018-03-03 | Automatically merge new buffers accordin │ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time
│ │[12:55] [2] [script] 2:scripts │ │ │[12:55] [2] [script] 2:scripts │
│ │█ │ │ │█ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+1 -7
View File
@@ -42,13 +42,7 @@ set(BUGS_ADDRESS "flashcode@flashtux.org")
set(POT_FILE "${PROJECT_NAME}.pot") set(POT_FILE "${PROJECT_NAME}.pot")
set(POT_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${POT_FILE}") set(POT_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${POT_FILE}")
file(GLOB_RECURSE WEECHAT_SOURCES include(srcfiles.cmake)
RELATIVE "${CMAKE_SOURCE_DIR}"
"${CMAKE_SOURCE_DIR}/src/*.c"
"${CMAKE_SOURCE_DIR}/src/*.cpp"
"${CMAKE_SOURCE_DIR}/src/*.h"
)
list(SORT WEECHAT_SOURCES)
# Create PO template file weechat.pot # Create PO template file weechat.pot
set(SRC_FILES) set(SRC_FILES)
+1084 -1159
View File
File diff suppressed because it is too large Load Diff
+1195 -1226
View File
File diff suppressed because it is too large Load Diff
+1150 -1234
View File
File diff suppressed because it is too large Load Diff
+1184 -1214
View File
File diff suppressed because it is too large Load Diff
+1051 -1097
View File
File diff suppressed because it is too large Load Diff
+1072 -1147
View File
File diff suppressed because it is too large Load Diff
+1123 -1268
View File
File diff suppressed because it is too large Load Diff
+1162 -1565
View File
File diff suppressed because it is too large Load Diff
+1105 -1227
View File
File diff suppressed because it is too large Load Diff
+1077 -1128
View File
File diff suppressed because it is too large Load Diff
+1050 -1096
View File
File diff suppressed because it is too large Load Diff
+1260 -1248
View File
File diff suppressed because it is too large Load Diff
+480
View File
@@ -0,0 +1,480 @@
SET(WEECHAT_SOURCES
./src/core/hook/hook-command.c
./src/core/hook/hook-command.h
./src/core/hook/hook-command-run.c
./src/core/hook/hook-command-run.h
./src/core/hook/hook-completion.c
./src/core/hook/hook-completion.h
./src/core/hook/hook-config.c
./src/core/hook/hook-config.h
./src/core/hook/hook-connect.c
./src/core/hook/hook-connect.h
./src/core/hook/hook-fd.c
./src/core/hook/hook-fd.h
./src/core/hook/hook-focus.c
./src/core/hook/hook-focus.h
./src/core/hook/hook-hdata.c
./src/core/hook/hook-hdata.h
./src/core/hook/hook-hsignal.c
./src/core/hook/hook-hsignal.h
./src/core/hook/hook-info.c
./src/core/hook/hook-info.h
./src/core/hook/hook-info-hashtable.c
./src/core/hook/hook-info-hashtable.h
./src/core/hook/hook-infolist.c
./src/core/hook/hook-infolist.h
./src/core/hook/hook-line.c
./src/core/hook/hook-line.h
./src/core/hook/hook-modifier.c
./src/core/hook/hook-modifier.h
./src/core/hook/hook-print.c
./src/core/hook/hook-print.h
./src/core/hook/hook-process.c
./src/core/hook/hook-process.h
./src/core/hook/hook-signal.c
./src/core/hook/hook-signal.h
./src/core/hook/hook-timer.c
./src/core/hook/hook-timer.h
./src/core/hook/hook-url.c
./src/core/hook/hook-url.h
./src/core/core-arraylist.c
./src/core/core-arraylist.h
./src/core/core-backtrace.c
./src/core/core-backtrace.h
./src/core/core-calc.c
./src/core/core-calc.h
./src/core/weechat.c
./src/core/weechat.h
./src/core/core-command.c
./src/core/core-command.h
./src/core/core-completion.c
./src/core/core-completion.h
./src/core/core-config.c
./src/core/core-config-file.c
./src/core/core-config-file.h
./src/core/core-config.h
./src/core/core-crypto.c
./src/core/core-crypto.h
./src/core/core-debug.c
./src/core/core-debug.h
./src/core/core-dir.c
./src/core/core-dir.h
./src/core/core-doc.c
./src/core/core-doc.h
./src/core/core-eval.c
./src/core/core-eval.h
./src/core/core-hashtable.c
./src/core/core-hashtable.h
./src/core/core-hdata.c
./src/core/core-hdata.h
./src/core/core-hook.c
./src/core/core-hook.h
./src/core/core-infolist.c
./src/core/core-infolist.h
./src/core/core-input.c
./src/core/core-input.h
./src/core/core-list.c
./src/core/core-list.h
./src/core/core-log.c
./src/core/core-log.h
./src/core/core-network.c
./src/core/core-network.h
./src/core/core-proxy.c
./src/core/core-proxy.h
./src/core/core-secure-buffer.c
./src/core/core-secure-buffer.h
./src/core/core-secure.c
./src/core/core-secure-config.c
./src/core/core-secure-config.h
./src/core/core-secure.h
./src/core/core-signal.c
./src/core/core-signal.h
./src/core/core-string.c
./src/core/core-string.h
./src/core/core-sys.c
./src/core/core-sys.h
./src/core/core-upgrade.c
./src/core/core-upgrade-file.c
./src/core/core-upgrade-file.h
./src/core/core-upgrade.h
./src/core/core-url.c
./src/core/core-url.h
./src/core/core-utf8.c
./src/core/core-utf8.h
./src/core/core-util.c
./src/core/core-util.h
./src/core/core-version.c
./src/core/core-version.h
./src/gui/curses/gui-curses-bar-window.c
./src/gui/curses/gui-curses-bar-window.h
./src/gui/curses/gui-curses-chat.c
./src/gui/curses/gui-curses-chat.h
./src/gui/curses/gui-curses-color.c
./src/gui/curses/gui-curses-color.h
./src/gui/curses/gui-curses.h
./src/gui/curses/gui-curses-key.c
./src/gui/curses/gui-curses-key.h
./src/gui/curses/gui-curses-main.c
./src/gui/curses/gui-curses-main.h
./src/gui/curses/gui-curses-mouse.c
./src/gui/curses/gui-curses-mouse.h
./src/gui/curses/gui-curses-term.c
./src/gui/curses/gui-curses-window.c
./src/gui/curses/gui-curses-window.h
./src/gui/curses/headless/main.c
./src/gui/curses/headless/ncurses-fake.c
./src/gui/curses/headless/ncurses-fake.h
./src/gui/curses/normal/main.c
./src/gui/gui-bar.c
./src/gui/gui-bar.h
./src/gui/gui-bar-item.c
./src/gui/gui-bar-item-custom.c
./src/gui/gui-bar-item-custom.h
./src/gui/gui-bar-item.h
./src/gui/gui-bar-window.c
./src/gui/gui-bar-window.h
./src/gui/gui-buffer.c
./src/gui/gui-buffer.h
./src/gui/gui-chat.c
./src/gui/gui-chat.h
./src/gui/gui-color.c
./src/gui/gui-color.h
./src/gui/gui-completion.c
./src/gui/gui-completion.h
./src/gui/gui-cursor.c
./src/gui/gui-cursor.h
./src/gui/gui-filter.c
./src/gui/gui-filter.h
./src/gui/gui-focus.c
./src/gui/gui-focus.h
./src/gui/gui-history.c
./src/gui/gui-history.h
./src/gui/gui-hotlist.c
./src/gui/gui-hotlist.h
./src/gui/gui-input.c
./src/gui/gui-input.h
./src/gui/gui-key.c
./src/gui/gui-key.h
./src/gui/gui-layout.c
./src/gui/gui-layout.h
./src/gui/gui-line.c
./src/gui/gui-line.h
./src/gui/gui-main.h
./src/gui/gui-mouse.c
./src/gui/gui-mouse.h
./src/gui/gui-nick.c
./src/gui/gui-nick.h
./src/gui/gui-nicklist.c
./src/gui/gui-nicklist.h
./src/gui/gui-window.c
./src/gui/gui-window.h
./src/plugins/alias/alias.c
./src/plugins/alias/alias-command.c
./src/plugins/alias/alias-command.h
./src/plugins/alias/alias-completion.c
./src/plugins/alias/alias-completion.h
./src/plugins/alias/alias-config.c
./src/plugins/alias/alias-config.h
./src/plugins/alias/alias.h
./src/plugins/alias/alias-info.c
./src/plugins/alias/alias-info.h
./src/plugins/buflist/buflist-bar-item.c
./src/plugins/buflist/buflist-bar-item.h
./src/plugins/buflist/buflist.c
./src/plugins/buflist/buflist-command.c
./src/plugins/buflist/buflist-command.h
./src/plugins/buflist/buflist-completion.c
./src/plugins/buflist/buflist-completion.h
./src/plugins/buflist/buflist-config.c
./src/plugins/buflist/buflist-config.h
./src/plugins/buflist/buflist.h
./src/plugins/buflist/buflist-info.c
./src/plugins/buflist/buflist-info.h
./src/plugins/buflist/buflist-mouse.c
./src/plugins/buflist/buflist-mouse.h
./src/plugins/charset/charset.c
./src/plugins/charset/charset.h
./src/plugins/exec/exec-buffer.c
./src/plugins/exec/exec-buffer.h
./src/plugins/exec/exec.c
./src/plugins/exec/exec-command.c
./src/plugins/exec/exec-command.h
./src/plugins/exec/exec-completion.c
./src/plugins/exec/exec-completion.h
./src/plugins/exec/exec-config.c
./src/plugins/exec/exec-config.h
./src/plugins/exec/exec.h
./src/plugins/fifo/fifo.c
./src/plugins/fifo/fifo-command.c
./src/plugins/fifo/fifo-command.h
./src/plugins/fifo/fifo-config.c
./src/plugins/fifo/fifo-config.h
./src/plugins/fifo/fifo.h
./src/plugins/fifo/fifo-info.c
./src/plugins/fifo/fifo-info.h
./src/plugins/fset/fset-bar-item.c
./src/plugins/fset/fset-bar-item.h
./src/plugins/fset/fset-buffer.c
./src/plugins/fset/fset-buffer.h
./src/plugins/fset/fset.c
./src/plugins/fset/fset-command.c
./src/plugins/fset/fset-command.h
./src/plugins/fset/fset-completion.c
./src/plugins/fset/fset-completion.h
./src/plugins/fset/fset-config.c
./src/plugins/fset/fset-config.h
./src/plugins/fset/fset.h
./src/plugins/fset/fset-info.c
./src/plugins/fset/fset-info.h
./src/plugins/fset/fset-mouse.c
./src/plugins/fset/fset-mouse.h
./src/plugins/fset/fset-option.c
./src/plugins/fset/fset-option.h
./src/plugins/guile/weechat-guile-api.c
./src/plugins/guile/weechat-guile-api.h
./src/plugins/guile/weechat-guile.c
./src/plugins/guile/weechat-guile.h
./src/plugins/irc/irc-bar-item.c
./src/plugins/irc/irc-bar-item.h
./src/plugins/irc/irc-batch.c
./src/plugins/irc/irc-batch.h
./src/plugins/irc/irc-buffer.c
./src/plugins/irc/irc-buffer.h
./src/plugins/irc/irc.c
./src/plugins/irc/irc-channel.c
./src/plugins/irc/irc-channel.h
./src/plugins/irc/irc-color.c
./src/plugins/irc/irc-color.h
./src/plugins/irc/irc-command.c
./src/plugins/irc/irc-command.h
./src/plugins/irc/irc-completion.c
./src/plugins/irc/irc-completion.h
./src/plugins/irc/irc-config.c
./src/plugins/irc/irc-config.h
./src/plugins/irc/irc-ctcp.c
./src/plugins/irc/irc-ctcp.h
./src/plugins/irc/irc-debug.c
./src/plugins/irc/irc-debug.h
./src/plugins/irc/irc.h
./src/plugins/irc/irc-ignore.c
./src/plugins/irc/irc-ignore.h
./src/plugins/irc/irc-info.c
./src/plugins/irc/irc-info.h
./src/plugins/irc/irc-input.c
./src/plugins/irc/irc-input.h
./src/plugins/irc/irc-join.c
./src/plugins/irc/irc-join.h
./src/plugins/irc/irc-list.c
./src/plugins/irc/irc-list.h
./src/plugins/irc/irc-message.c
./src/plugins/irc/irc-message.h
./src/plugins/irc/irc-mode.c
./src/plugins/irc/irc-mode.h
./src/plugins/irc/irc-modelist.c
./src/plugins/irc/irc-modelist.h
./src/plugins/irc/irc-msgbuffer.c
./src/plugins/irc/irc-msgbuffer.h
./src/plugins/irc/irc-nick.c
./src/plugins/irc/irc-nick.h
./src/plugins/irc/irc-notify.c
./src/plugins/irc/irc-notify.h
./src/plugins/irc/irc-protocol.c
./src/plugins/irc/irc-protocol.h
./src/plugins/irc/irc-raw.c
./src/plugins/irc/irc-raw.h
./src/plugins/irc/irc-redirect.c
./src/plugins/irc/irc-redirect.h
./src/plugins/irc/irc-sasl.c
./src/plugins/irc/irc-sasl.h
./src/plugins/irc/irc-server.c
./src/plugins/irc/irc-server.h
./src/plugins/irc/irc-tag.c
./src/plugins/irc/irc-tag.h
./src/plugins/irc/irc-typing.c
./src/plugins/irc/irc-typing.h
./src/plugins/irc/irc-upgrade.c
./src/plugins/irc/irc-upgrade.h
./src/plugins/javascript/weechat-js-api.cpp
./src/plugins/javascript/weechat-js-api.h
./src/plugins/javascript/weechat-js.cpp
./src/plugins/javascript/weechat-js.h
./src/plugins/javascript/weechat-js-v8.cpp
./src/plugins/javascript/weechat-js-v8.h
./src/plugins/logger/logger-backlog.c
./src/plugins/logger/logger-backlog.h
./src/plugins/logger/logger-buffer.c
./src/plugins/logger/logger-buffer.h
./src/plugins/logger/logger.c
./src/plugins/logger/logger-command.c
./src/plugins/logger/logger-command.h
./src/plugins/logger/logger-config.c
./src/plugins/logger/logger-config.h
./src/plugins/logger/logger.h
./src/plugins/logger/logger-info.c
./src/plugins/logger/logger-info.h
./src/plugins/logger/logger-tail.c
./src/plugins/logger/logger-tail.h
./src/plugins/lua/weechat-lua-api.c
./src/plugins/lua/weechat-lua-api.h
./src/plugins/lua/weechat-lua.c
./src/plugins/lua/weechat-lua.h
./src/plugins/perl/weechat-perl-api.c
./src/plugins/perl/weechat-perl-api.h
./src/plugins/perl/weechat-perl.c
./src/plugins/perl/weechat-perl.h
./src/plugins/php/weechat-php-api.c
./src/plugins/php/weechat-php-api.h
./src/plugins/php/weechat-php.c
./src/plugins/php/weechat-php.h
./src/plugins/plugin-api.c
./src/plugins/plugin-api.h
./src/plugins/plugin-api-info.c
./src/plugins/plugin-api-info.h
./src/plugins/plugin.c
./src/plugins/plugin-config.c
./src/plugins/plugin-config.h
./src/plugins/plugin.h
./src/plugins/plugin-script-api.c
./src/plugins/plugin-script-api.h
./src/plugins/plugin-script.c
./src/plugins/plugin-script-config.c
./src/plugins/plugin-script-config.h
./src/plugins/plugin-script.h
./src/plugins/python/weechat-python-api.c
./src/plugins/python/weechat-python-api.h
./src/plugins/python/weechat-python.c
./src/plugins/python/weechat-python.h
./src/plugins/relay/api/relay-api.c
./src/plugins/relay/api/relay-api.h
./src/plugins/relay/api/relay-api-msg.c
./src/plugins/relay/api/relay-api-msg.h
./src/plugins/relay/api/relay-api-protocol.c
./src/plugins/relay/api/relay-api-protocol.h
./src/plugins/relay/api/remote/relay-remote-event.c
./src/plugins/relay/api/remote/relay-remote-event.h
./src/plugins/relay/api/remote/relay-remote-network.c
./src/plugins/relay/api/remote/relay-remote-network.h
./src/plugins/relay/irc/relay-irc.c
./src/plugins/relay/irc/relay-irc.h
./src/plugins/relay/relay-auth.c
./src/plugins/relay/relay-auth.h
./src/plugins/relay/relay-buffer.c
./src/plugins/relay/relay-buffer.h
./src/plugins/relay/relay.c
./src/plugins/relay/relay-client.c
./src/plugins/relay/relay-client.h
./src/plugins/relay/relay-command.c
./src/plugins/relay/relay-command.h
./src/plugins/relay/relay-completion.c
./src/plugins/relay/relay-completion.h
./src/plugins/relay/relay-config.c
./src/plugins/relay/relay-config.h
./src/plugins/relay/relay.h
./src/plugins/relay/relay-http.c
./src/plugins/relay/relay-http.h
./src/plugins/relay/relay-info.c
./src/plugins/relay/relay-info.h
./src/plugins/relay/relay-network.c
./src/plugins/relay/relay-network.h
./src/plugins/relay/relay-raw.c
./src/plugins/relay/relay-raw.h
./src/plugins/relay/relay-remote.c
./src/plugins/relay/relay-remote.h
./src/plugins/relay/relay-server.c
./src/plugins/relay/relay-server.h
./src/plugins/relay/relay-upgrade.c
./src/plugins/relay/relay-upgrade.h
./src/plugins/relay/relay-websocket.c
./src/plugins/relay/relay-websocket.h
./src/plugins/relay/weechat/relay-weechat.c
./src/plugins/relay/weechat/relay-weechat.h
./src/plugins/relay/weechat/relay-weechat-msg.c
./src/plugins/relay/weechat/relay-weechat-msg.h
./src/plugins/relay/weechat/relay-weechat-nicklist.c
./src/plugins/relay/weechat/relay-weechat-nicklist.h
./src/plugins/relay/weechat/relay-weechat-protocol.c
./src/plugins/relay/weechat/relay-weechat-protocol.h
./src/plugins/ruby/weechat-ruby-api.c
./src/plugins/ruby/weechat-ruby-api.h
./src/plugins/ruby/weechat-ruby.c
./src/plugins/ruby/weechat-ruby.h
./src/plugins/script/script-action.c
./src/plugins/script/script-action.h
./src/plugins/script/script-buffer.c
./src/plugins/script/script-buffer.h
./src/plugins/script/script.c
./src/plugins/script/script-command.c
./src/plugins/script/script-command.h
./src/plugins/script/script-completion.c
./src/plugins/script/script-completion.h
./src/plugins/script/script-config.c
./src/plugins/script/script-config.h
./src/plugins/script/script.h
./src/plugins/script/script-info.c
./src/plugins/script/script-info.h
./src/plugins/script/script-mouse.c
./src/plugins/script/script-mouse.h
./src/plugins/script/script-repo.c
./src/plugins/script/script-repo.h
./src/plugins/spell/spell-bar-item.c
./src/plugins/spell/spell-bar-item.h
./src/plugins/spell/spell.c
./src/plugins/spell/spell-command.c
./src/plugins/spell/spell-command.h
./src/plugins/spell/spell-completion.c
./src/plugins/spell/spell-completion.h
./src/plugins/spell/spell-config.c
./src/plugins/spell/spell-config.h
./src/plugins/spell/spell.h
./src/plugins/spell/spell-info.c
./src/plugins/spell/spell-info.h
./src/plugins/spell/spell-speller.c
./src/plugins/spell/spell-speller.h
./src/plugins/tcl/weechat-tcl-api.c
./src/plugins/tcl/weechat-tcl-api.h
./src/plugins/tcl/weechat-tcl.c
./src/plugins/tcl/weechat-tcl.h
./src/plugins/trigger/trigger-buffer.c
./src/plugins/trigger/trigger-buffer.h
./src/plugins/trigger/trigger.c
./src/plugins/trigger/trigger-callback.c
./src/plugins/trigger/trigger-callback.h
./src/plugins/trigger/trigger-command.c
./src/plugins/trigger/trigger-command.h
./src/plugins/trigger/trigger-completion.c
./src/plugins/trigger/trigger-completion.h
./src/plugins/trigger/trigger-config.c
./src/plugins/trigger/trigger-config.h
./src/plugins/trigger/trigger.h
./src/plugins/typing/typing-bar-item.c
./src/plugins/typing/typing-bar-item.h
./src/plugins/typing/typing.c
./src/plugins/typing/typing-config.c
./src/plugins/typing/typing-config.h
./src/plugins/typing/typing.h
./src/plugins/typing/typing-status.c
./src/plugins/typing/typing-status.h
./src/plugins/weechat-plugin.h
./src/plugins/xfer/xfer-buffer.c
./src/plugins/xfer/xfer-buffer.h
./src/plugins/xfer/xfer.c
./src/plugins/xfer/xfer-chat.c
./src/plugins/xfer/xfer-chat.h
./src/plugins/xfer/xfer-command.c
./src/plugins/xfer/xfer-command.h
./src/plugins/xfer/xfer-completion.c
./src/plugins/xfer/xfer-completion.h
./src/plugins/xfer/xfer-config.c
./src/plugins/xfer/xfer-config.h
./src/plugins/xfer/xfer-dcc.c
./src/plugins/xfer/xfer-dcc.h
./src/plugins/xfer/xfer-file.c
./src/plugins/xfer/xfer-file.h
./src/plugins/xfer/xfer.h
./src/plugins/xfer/xfer-info.c
./src/plugins/xfer/xfer-info.h
./src/plugins/xfer/xfer-network.c
./src/plugins/xfer/xfer-network.h
./src/plugins/xfer/xfer-upgrade.c
./src/plugins/xfer/xfer-upgrade.h
)
+1162 -1353
View File
File diff suppressed because it is too large Load Diff
+953 -986
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -20,6 +20,7 @@
# #
add_subdirectory(core) add_subdirectory(core)
list(APPEND STATIC_LIBS weechat_core)
add_subdirectory(plugins) add_subdirectory(plugins)
+5 -1
View File
@@ -87,6 +87,10 @@ else()
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
endif() endif()
include_directories(${GNUTLS_INCLUDE_PATH})
include_directories(${CURL_INCLUDE_DIRS})
if(ENABLE_ZSTD) if(ENABLE_ZSTD)
include_directories(${LIBZSTD_INCLUDE_DIRS}) include_directories(${LIBZSTD_INCLUDE_DIRS})
endif() endif()
@@ -96,6 +100,6 @@ if(ENABLE_CJSON)
endif() endif()
include_directories("${CMAKE_BINARY_DIR}") include_directories("${CMAKE_BINARY_DIR}")
add_library(weechat_core OBJECT ${LIB_CORE_SRC}) add_library(weechat_core STATIC ${LIB_CORE_SRC})
target_link_libraries(weechat_core coverage_config) target_link_libraries(weechat_core coverage_config)
add_dependencies(weechat_core version_git) add_dependencies(weechat_core version_git)
+3 -3
View File
@@ -17,11 +17,11 @@
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>. * along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifndef WEECHAT_BACKTRACE_H #ifndef WEECHAT_BACKTACE_H
#define WEECHAT_BACKTRACE_H #define WEECHAT_BACKTACE_H
#define BACKTRACE_MAX 128 #define BACKTRACE_MAX 128
extern void weechat_backtrace (); extern void weechat_backtrace ();
#endif /* WEECHAT_BACKTRACE_H */ #endif /* WEECHAT_BACKTACE_H */
+120 -148
View File
@@ -2156,15 +2156,9 @@ COMMAND_CALLBACK(debug)
if (string_strcmp (argv[1], "hooks") == 0) if (string_strcmp (argv[1], "hooks") == 0)
{ {
if (argc > 2) if (argc > 2)
{ debug_hooks_plugin (argv[2]);
debug_hooks_plugin_types (
argv[2],
(argc > 3) ? (const char **)&argv[3] : NULL);
}
else else
{
debug_hooks (); debug_hooks ();
}
return WEECHAT_RC_OK; return WEECHAT_RC_OK;
} }
@@ -5195,33 +5189,34 @@ COMMAND_CALLBACK(plugin)
if (string_strcmp (argv[1], "reload") == 0) if (string_strcmp (argv[1], "reload") == 0)
{ {
if ((argc < 3) || ((argc == 3) && (strcmp (argv[2], "*") == 0))) if (argc > 2)
{ {
plugin_unload_all (); if (argc > 3)
plugin_auto_load (NULL, 1, 1, 1, 0, NULL); {
} plugin_argv = string_split (
else if (argc == 3)
{
plugin_reload_name (argv[2], 0, NULL);
}
else
{
plugin_argv = string_split (
argv_eol[3], " ", NULL, argv_eol[3], " ", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0, &plugin_argc); 0, &plugin_argc);
if (strcmp (argv[2], "*") == 0) if (strcmp (argv[2], "*") == 0)
{ {
plugin_unload_all (); plugin_unload_all ();
plugin_auto_load (NULL, 1, 1, 1, plugin_argc, plugin_argv); plugin_auto_load (NULL, 1, 1, 1, plugin_argc, plugin_argv);
}
else
{
plugin_reload_name (argv[2], plugin_argc, plugin_argv);
}
string_free_split (plugin_argv);
} }
else else
{ plugin_reload_name (argv[2], 0, NULL);
plugin_reload_name (argv[2], plugin_argc, plugin_argv); }
} else
string_free_split (plugin_argv); {
plugin_unload_all ();
plugin_auto_load (NULL, 1, 1, 1, 0, NULL);
} }
return WEECHAT_RC_OK; return WEECHAT_RC_OK;
} }
@@ -6233,7 +6228,7 @@ COMMAND_CALLBACK(secure)
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to decrypt data: hash algorithm \"%s\" is not " _("%sFailed to decrypt data: hash algorithm \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
config_file_option_string (secure_config_crypt_hash_algo)); config_file_option_string (secure_config_crypt_hash_algo));
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
@@ -6243,7 +6238,7 @@ COMMAND_CALLBACK(secure)
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to decrypt data: cipher \"%s\" is not " _("%sFailed to decrypt data: cipher \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
config_file_option_string (secure_config_crypt_cipher)); config_file_option_string (secure_config_crypt_cipher));
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
@@ -7200,7 +7195,6 @@ command_upgrade_display (struct t_gui_buffer *buffer,
COMMAND_CALLBACK(upgrade) COMMAND_CALLBACK(upgrade)
{ {
struct t_weechat_plugin *ptr_plugin;
char *ptr_binary; char *ptr_binary;
char *exec_args[7] = { NULL, "-a", "--dir", NULL, "--upgrade", NULL }; char *exec_args[7] = { NULL, "-a", "--dir", NULL, "--upgrade", NULL };
struct stat stat_buf; struct stat stat_buf;
@@ -7254,16 +7248,7 @@ COMMAND_CALLBACK(upgrade)
&& (string_strcmp (argv[index_args], "-save") == 0)) && (string_strcmp (argv[index_args], "-save") == 0))
{ {
/* send "upgrade" signal to plugins */ /* send "upgrade" signal to plugins */
rc = hook_signal_send ("[flags:stop_on_error,ignore_eat]upgrade", (void) hook_signal_send ("upgrade", WEECHAT_HOOK_SIGNAL_STRING, "save");
WEECHAT_HOOK_SIGNAL_STRING, "save");
if (rc == WEECHAT_RC_ERROR)
{
gui_chat_printf (NULL,
_("%sUnable to save some plugin sessions "
"(files *.upgrade)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_ERROR;
}
/* save WeeChat session */ /* save WeeChat session */
if (!upgrade_weechat_save ()) if (!upgrade_weechat_save ())
{ {
@@ -7290,9 +7275,6 @@ COMMAND_CALLBACK(upgrade)
"process/thread running (hook type: process, " "process/thread running (hook type: process, "
"connect or url)"), "connect or url)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
gui_chat_printf (NULL,
_("Check running hooks with command: %s"),
"/debug hooks * process connect url");
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
} }
@@ -7363,42 +7345,19 @@ COMMAND_CALLBACK(upgrade)
} }
/* send "upgrade" signal to plugins */ /* send "upgrade" signal to plugins */
rc = hook_signal_send ("[flags:stop_on_error,ignore_eat]upgrade", (void) hook_signal_send ("upgrade", WEECHAT_HOOK_SIGNAL_STRING,
WEECHAT_HOOK_SIGNAL_STRING, (quit) ? "quit" : NULL);
(quit) ? "quit" : NULL);
if (rc == WEECHAT_RC_ERROR)
{
gui_chat_printf (NULL,
_("%sUnable to save some plugin sessions "
"(files *.upgrade)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
gui_chat_printf (NULL,
_("%sUpgrade aborted"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
free (ptr_binary);
return WEECHAT_RC_ERROR;
}
/* save WeeChat session */
if (!upgrade_weechat_save ()) if (!upgrade_weechat_save ())
{ {
gui_chat_printf (NULL, gui_chat_printf (NULL,
_("%sUnable to save WeeChat session " _("%sUnable to save WeeChat session "
"(files *.upgrade)"), "(files *.upgrade)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
gui_chat_printf (NULL,
_("%sUpgrade aborted"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
free (ptr_binary); free (ptr_binary);
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
} }
for (ptr_plugin = weechat_plugins; ptr_plugin;
ptr_plugin = ptr_plugin->next_plugin)
{
ptr_plugin->unload_with_upgrade = 1;
}
weechat_quit = 1; weechat_quit = 1;
weechat_upgrading = 1; weechat_upgrading = 1;
@@ -7540,17 +7499,34 @@ command_version_display (struct t_gui_buffer *buffer,
if (send_to_buffer_as_input) if (send_to_buffer_as_input)
{ {
snprintf (string, sizeof (string), if (translated_string)
"WeeChat %s [%s %s %s]", {
(display_git_version) ? version_get_version_with_git () : version_get_version (), snprintf (string, sizeof (string),
(translated_string) ? _("compiled on") : "compiled on", "WeeChat %s [%s %s %s]",
version_get_compilation_date (), (display_git_version) ? version_get_version_with_git () : version_get_version (),
version_get_compilation_time ()); _("compiled on"),
(void) input_data (buffer, version_get_compilation_date (),
string, version_get_compilation_time ());
NULL, (void) input_data (buffer,
0, /* split_newline */ string,
0); /* user_data */ NULL,
0, /* split_newline */
0); /* user_data */
}
else
{
snprintf (string, sizeof (string),
"WeeChat %s [%s %s %s]",
(display_git_version) ? version_get_version_with_git () : version_get_version (),
"compiled on",
version_get_compilation_date (),
version_get_compilation_time ());
(void) input_data (buffer,
string,
NULL,
0, /* split_newline */
0); /* user_data */
}
} }
else else
{ {
@@ -7895,7 +7871,7 @@ COMMAND_CALLBACK(window)
if (!gui_window_merge (ptr_win)) if (!gui_window_merge (ptr_win))
{ {
gui_chat_printf (NULL, gui_chat_printf (NULL,
_("%sCannot merge windows, there's no other " _("%sCan not merge windows, there's no other "
"window with same size near current one"), "window with same size near current one"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
@@ -7910,7 +7886,7 @@ COMMAND_CALLBACK(window)
if (!gui_window_close (ptr_win)) if (!gui_window_close (ptr_win))
{ {
gui_chat_printf (NULL, gui_chat_printf (NULL,
_("%sCannot close window, there's no other " _("%sCan not close window, there's no other "
"window with same size near current one"), "window with same size near current one"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
@@ -8031,7 +8007,7 @@ command_init ()
hook_command ( hook_command (
NULL, "allbuf", NULL, "allbuf",
N_("execute a command on all buffers"), N_("execute a command on all buffers"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<command>"), N_("<command>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("command: command to execute (or text to send to buffer if " N_("command: command to execute (or text to send to buffer if "
@@ -8044,7 +8020,7 @@ command_init ()
hook_command ( hook_command (
NULL, "away", NULL, "away",
N_("set or remove away status"), N_("set or remove away status"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-all] [<message>]"), N_("[-all] [<message>]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[-all]: set or remove away status on all connected servers"), N_("raw[-all]: set or remove away status on all connected servers"),
@@ -8054,14 +8030,14 @@ command_init ()
hook_command ( hook_command (
NULL, "bar", NULL, "bar",
N_("manage bars"), N_("manage bars"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list|listfull|listitems" N_("list|listfull|listitems"
" || add|addreplace <name> <type>[,<conditions>] <position> <size> " " || add|addreplace <name> <type>[,<conditions>] <position> <size> "
"<separator> " "<separator> "
"<item1>[,<item2>...]" "<item1>[,<item2>...]"
" || default [input|title|status|nicklist]" " || default [input|title|status|nicklist]"
" || rename <name> <new_name>" " || rename <name> <new_name>"
" || del <name>|<mask>..." " || del <name>|<mask> [<name>|<mask>...]"
" || set <name> <option> <value>" " || set <name> <option> <value>"
" || hide|show|toggle <name>" " || hide|show|toggle <name>"
" || scroll <name> <window> <scroll_value>"), " || scroll <name> <window> <scroll_value>"),
@@ -8128,13 +8104,13 @@ command_init ()
hook_command ( hook_command (
NULL, "buffer", NULL, "buffer",
N_("manage buffers"), N_("manage buffers"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list" N_("list"
" || add [-free] [-switch] <name>" " || add [-free] [-switch] <name>"
" || clear [<id>|<number>|<name>|-merged|-all [<id>|<number>|<name>...]]" " || clear [<number>|<name>|-merged|-all [<id>|<number>|<name>...]]"
" || move <number>|-|+" " || move <number>|-|+"
" || swap <id1>|<number1>|<name1> [<id2>|<number2>|<name2>]" " || swap <id1>|<number1>|<name1> [<id2>|<number2>|<name2>]"
" || cycle <id>|<number>|<name>..." " || cycle <id>|<number>|<name> [<id>|<number>|<name>...]"
" || merge <id>|<number>|<name>" " || merge <id>|<number>|<name>"
" || unmerge [<number>|-all]" " || unmerge [<number>|-all]"
" || hide [<id>|<number>|<name>|-all [<id>|<number>|<name>...]]" " || hide [<id>|<number>|<name>|-all [<id>|<number>|<name>...]]"
@@ -8206,7 +8182,7 @@ command_init ()
N_("raw[-]: jump to first buffer number"), N_("raw[-]: jump to first buffer number"),
N_("raw[+]: jump to last buffer number"), N_("raw[+]: jump to last buffer number"),
N_("name: jump to buffer by (partial) name; if the name starts with " N_("name: jump to buffer by (partial) name; if the name starts with "
"\"(?i)\", the search is case-insensitive (for example \"(?i)upper\" " "\"(?i)\", the search is case insensitive (for example \"(?i)upper\" "
"will find buffer \"irc.libera.#UPPERCASE\")"), "will find buffer \"irc.libera.#UPPERCASE\")"),
"", "",
N_("Examples:"), N_("Examples:"),
@@ -8252,7 +8228,7 @@ command_init ()
hook_command ( hook_command (
NULL, "color", NULL, "color",
N_("define color aliases and display palette of colors"), N_("define color aliases and display palette of colors"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("alias <color> <name>" N_("alias <color> <name>"
" || unalias <color>" " || unalias <color>"
" || reset" " || reset"
@@ -8293,7 +8269,7 @@ command_init ()
hook_command ( hook_command (
NULL, "50000|command", NULL, "50000|command",
N_("launch explicit WeeChat or plugin command"), N_("launch explicit WeeChat or plugin command"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-buffer <name>] <plugin> <command>" N_("[-buffer <name>] <plugin> <command>"
" || -s <command>[;<command>...]"), " || -s <command>[;<command>...]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
@@ -8314,7 +8290,7 @@ command_init ()
NULL, "cursor", NULL, "cursor",
N_("free movement of cursor on screen to execute actions on specific " N_("free movement of cursor on screen to execute actions on specific "
"areas of screen"), "areas of screen"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("go chat|<bar> [top_left|top_right|bottom_left|bottom_right]" N_("go chat|<bar> [top_left|top_right|bottom_left|bottom_right]"
" || go <x>,<y>" " || go <x>,<y>"
" || move up|down|left|right|" " || move up|down|left|right|"
@@ -8350,11 +8326,10 @@ command_init ()
hook_command ( hook_command (
NULL, "debug", NULL, "debug",
N_("debug functions"), N_("debug functions"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list" N_("list"
" || set <plugin> <level>" " || set <plugin> <level>"
" || dump [<plugin>]" " || dump|hooks [<plugin>]"
" || hooks [<plugin_mask> [<hook_type>...]]"
" || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" " || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows" "term|url|windows"
" || callbacks <duration>[<unit>]" " || callbacks <duration>[<unit>]"
@@ -8371,8 +8346,6 @@ command_init ()
"written when WeeChat crashes)"), "written when WeeChat crashes)"),
N_("raw[hooks]: display infos about hooks (with a plugin: display " N_("raw[hooks]: display infos about hooks (with a plugin: display "
"detailed info about hooks created by the plugin)"), "detailed info about hooks created by the plugin)"),
N_("plugin_mask: plugin mask, \"*\" for all plugins"),
N_("hook_type: hook type"),
N_("raw[buffer]: dump buffer content with hexadecimal values in WeeChat " N_("raw[buffer]: dump buffer content with hexadecimal values in WeeChat "
"log file"), "log file"),
N_("raw[callbacks]: write hook and bar item callbacks that took more than " N_("raw[callbacks]: write hook and bar item callbacks that took more than "
@@ -8408,7 +8381,6 @@ command_init ()
AI(" /debug set irc 1"), AI(" /debug set irc 1"),
AI(" /debug mouse verbose"), AI(" /debug mouse verbose"),
AI(" /debug time /filter toggle"), AI(" /debug time /filter toggle"),
AI(" /debug hooks * process connect url"),
AI(" /debug unicode ${chars:${\\u26C0}-${\\u26CF}}")), AI(" /debug unicode ${chars:${\\u26C0}-${\\u26CF}}")),
"list" "list"
" || set %(plugins_names)|" PLUGIN_CORE " || set %(plugins_names)|" PLUGIN_CORE
@@ -8420,7 +8392,7 @@ command_init ()
" || cursor verbose" " || cursor verbose"
" || dirs" " || dirs"
" || hdata free" " || hdata free"
" || hooks %(plugins_names)|" PLUGIN_CORE " %(hook_types)|%*" " || hooks %(plugins_names)|" PLUGIN_CORE
" || infolists" " || infolists"
" || key" " || key"
" || libs" " || libs"
@@ -8436,7 +8408,7 @@ command_init ()
hook_command ( hook_command (
NULL, "eval", NULL, "eval",
N_("evaluate expression"), N_("evaluate expression"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-n|-s] [-d] <expression>" N_("[-n|-s] [-d] <expression>"
" || [-n] [-d [-d]] -c <expression1> <operator> <expression2>"), " || [-n] [-d [-d]] -c <expression1> <operator> <expression2>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
@@ -8552,14 +8524,14 @@ command_init ()
N_("Comparison operators (by order of priority):"), N_("Comparison operators (by order of priority):"),
N_(" =~ is matching POSIX extended regex"), N_(" =~ is matching POSIX extended regex"),
N_(" !~ is NOT matching POSIX extended regex"), N_(" !~ is NOT matching POSIX extended regex"),
N_(" ==* is matching mask, case-sensitive (wildcard \"*\" is allowed)"), N_(" ==* is matching mask, case sensitive (wildcard \"*\" is allowed)"),
N_(" !!* is NOT matching mask, case-sensitive (wildcard \"*\" is allowed)"), N_(" !!* is NOT matching mask, case sensitive (wildcard \"*\" is allowed)"),
N_(" =* is matching mask, case-insensitive (wildcard \"*\" is allowed)"), N_(" =* is matching mask, case insensitive (wildcard \"*\" is allowed)"),
N_(" !* is NOT matching mask, case-insensitive (wildcard \"*\" is allowed)"), N_(" !* is NOT matching mask, case insensitive (wildcard \"*\" is allowed)"),
N_(" ==- is included, case-sensitive"), N_(" ==- is included, case sensitive"),
N_(" !!- is NOT included, case-sensitive"), N_(" !!- is NOT included, case sensitive"),
N_(" =- is included, case-insensitive"), N_(" =- is included, case insensitive"),
N_(" !- is NOT included, case-insensitive"), N_(" !- is NOT included, case insensitive"),
N_(" == equal"), N_(" == equal"),
N_(" != not equal"), N_(" != not equal"),
N_(" <= less or equal"), N_(" <= less or equal"),
@@ -8625,13 +8597,13 @@ command_init ()
NULL, "filter", NULL, "filter",
N_("filter messages in buffers, to hide/show them according to tags or " N_("filter messages in buffers, to hide/show them according to tags or "
"regex"), "regex"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list" N_("list"
" || enable|disable|toggle [<name>|<mask>|@...]" " || enable|disable|toggle [<name>|<mask>|@ [<name>|<mask>|@...]]"
" || add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>" " || add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>"
" || rename <name> <new_name>" " || rename <name> <new_name>"
" || recreate <name>" " || recreate <name>"
" || del <name>|<mask>..."), " || del <name>|<mask> [<name>|<mask>...]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[list]: list all filters"), N_("raw[list]: list all filters"),
N_("raw[enable]: enable filters (filters are enabled by default)"), N_("raw[enable]: enable filters (filters are enabled by default)"),
@@ -8665,8 +8637,8 @@ command_init ()
"reversed (use \"\\!\" to start with \"!\")"), "reversed (use \"\\!\" to start with \"!\")"),
N_("> - two regular expressions are created: " N_("> - two regular expressions are created: "
"one for prefix and one for message"), "one for prefix and one for message"),
N_("> - regex are case-insensitive, they can start by " N_("> - regex are case insensitive, they can start by "
"\"(?-i)\" to become case-sensitive"), "\"(?-i)\" to become case sensitive"),
"", "",
N_("The default key alt+\"=\" toggles filtering on/off globally and " N_("The default key alt+\"=\" toggles filtering on/off globally and "
"alt+\"-\" toggles filtering on/off in the current buffer."), "alt+\"-\" toggles filtering on/off in the current buffer."),
@@ -8711,8 +8683,8 @@ command_init ()
hook_command ( hook_command (
NULL, "help", NULL, "help",
N_("display help about commands and options"), N_("display help about commands and options"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("-list|-listfull [<plugin>...]] || <command> || <option>"), N_("-list|-listfull [<plugin> [<plugin>...]] || <command> || <option>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[-list]: list commands, by plugin (without argument, this list is " N_("raw[-list]: list commands, by plugin (without argument, this list is "
"displayed)"), "displayed)"),
@@ -8727,7 +8699,7 @@ command_init ()
hook_command ( hook_command (
NULL, "history", NULL, "history",
N_("show buffer command history"), N_("show buffer command history"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("clear || <value>"), N_("clear || <value>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[clear]: clear history"), N_("raw[clear]: clear history"),
@@ -8737,7 +8709,7 @@ command_init ()
hook_command ( hook_command (
NULL, "hotlist", NULL, "hotlist",
N_("manage hotlist"), N_("manage hotlist"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("add [low|message|private|highlight]" N_("add [low|message|private|highlight]"
" || clear [<level>]" " || clear [<level>]"
" || remove" " || remove"
@@ -8766,7 +8738,7 @@ command_init ()
hook_command ( hook_command (
NULL, "50000|input", NULL, "50000|input",
N_("functions for command line"), N_("functions for command line"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<action> [<arguments>]"), N_("<action> [<arguments>]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("action: the action, one of:"), N_("action: the action, one of:"),
@@ -8859,13 +8831,13 @@ command_init ()
hook_command ( hook_command (
NULL, "item", NULL, "item",
N_("manage custom bar items"), N_("manage custom bar items"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list" N_("list"
" || add|addreplace <name> \"<conditions>\" \"<content>\"" " || add|addreplace <name> \"<conditions>\" \"<content>\""
" || rename <name> <new_name>" " || rename <name> <new_name>"
" || refresh <name>|<mask>..." " || refresh <name>|<mask> [<name>|<mask>...]"
" || recreate <name>" " || recreate <name>"
" || del <name>|<mask>..."), " || del <name>|<mask> [<name>|<mask>...]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[list]: list all custom bar items"), N_("raw[list]: list all custom bar items"),
N_("raw[add]: add a custom bar item"), N_("raw[add]: add a custom bar item"),
@@ -8924,7 +8896,7 @@ command_init ()
hook_command ( hook_command (
NULL, "key", NULL, "key",
N_("bind/unbind keys"), N_("bind/unbind keys"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[list|listdefault|listdiff] [<context>]" N_("[list|listdefault|listdiff] [<context>]"
" || bind <key> [<command> [<args>]]" " || bind <key> [<command> [<args>]]"
" || bindctxt <context> <key> [<command> [<args>]]" " || bindctxt <context> <key> [<command> [<args>]]"
@@ -8934,7 +8906,7 @@ command_init ()
" || resetctxt <context> <key>" " || resetctxt <context> <key>"
" || resetall -yes [<context>]" " || resetall -yes [<context>]"
" || missing [<context>]" " || missing [<context>]"
" || legacy <key>..."), " || legacy <key> [<key>...]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[list]: list all current keys"), N_("raw[list]: list all current keys"),
N_("raw[listdefault]: list default keys"), N_("raw[listdefault]: list default keys"),
@@ -9018,7 +8990,7 @@ command_init ()
hook_command ( hook_command (
NULL, "layout", NULL, "layout",
N_("manage buffers/windows layouts"), N_("manage buffers/windows layouts"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("store [<name>] [buffers|windows]" N_("store [<name>] [buffers|windows]"
" || apply [<name>] [buffers|windows]" " || apply [<name>] [buffers|windows]"
" || leave" " || leave"
@@ -9054,7 +9026,7 @@ command_init ()
hook_command ( hook_command (
NULL, "mouse", NULL, "mouse",
N_("mouse control"), N_("mouse control"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("enable|disable|toggle [<delay>]"), N_("enable|disable|toggle [<delay>]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[enable]: enable mouse"), N_("raw[enable]: enable mouse"),
@@ -9073,7 +9045,7 @@ command_init ()
hook_command ( hook_command (
NULL, "mute", NULL, "mute",
N_("execute a command silently"), N_("execute a command silently"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-core | -current | -buffer <name>] <command>"), N_("[-core | -current | -buffer <name>] <command>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[-core]: no output on WeeChat core buffer"), N_("raw[-core]: no output on WeeChat core buffer"),
@@ -9098,7 +9070,7 @@ command_init ()
hook_command ( hook_command (
NULL, "plugin", NULL, "plugin",
N_("list/load/unload plugins"), N_("list/load/unload plugins"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list [-o|-ol|-i|-il|<name>]" N_("list [-o|-ol|-i|-il|<name>]"
" || listfull [<name>]" " || listfull [<name>]"
" || load <filename> [<arguments>]" " || load <filename> [<arguments>]"
@@ -9136,7 +9108,7 @@ command_init ()
hook_command ( hook_command (
NULL, "print", NULL, "print",
N_("display text on a buffer"), N_("display text on a buffer"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-buffer <id>|<number>|<name>] [-newbuffer <name>] [-free] [-switch] " N_("[-buffer <id>|<number>|<name>] [-newbuffer <name>] [-free] [-switch] "
"[-core|-current] [-y <line>] [-escape] [-date <date>] " "[-core|-current] [-y <line>] [-escape] [-date <date>] "
"[-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]" "[-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]"
@@ -9204,11 +9176,11 @@ command_init ()
hook_command ( hook_command (
NULL, "proxy", NULL, "proxy",
N_("manage proxies"), N_("manage proxies"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("list" N_("list"
" || add|addreplace <name> <type> <address> <port> " " || add|addreplace <name> <type> <address> <port> "
"[<username> [<password>]]" "[<username> [<password>]]"
" || del <name>|<mask>..." " || del <name>|<mask> [<name>|<mask>...]"
" || set <name> <option> <value>"), " || set <name> <option> <value>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[list]: list all proxies"), N_("raw[list]: list all proxies"),
@@ -9245,7 +9217,7 @@ command_init ()
hook_command ( hook_command (
NULL, "quit", NULL, "quit",
N_("quit WeeChat"), N_("quit WeeChat"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-yes] [<arguments>]"), N_("[-yes] [<arguments>]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("raw[-yes]: required if option \"weechat.look.confirm_quit\" " N_("raw[-yes]: required if option \"weechat.look.confirm_quit\" "
@@ -9262,8 +9234,8 @@ command_init ()
hook_command ( hook_command (
NULL, "reload", NULL, "reload",
N_("reload configuration files from disk"), N_("reload configuration files from disk"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[<file>...]"), N_("[<file> [<file>...]]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("file: configuration file to reload (without extension \".conf\")"), N_("file: configuration file to reload (without extension \".conf\")"),
"", "",
@@ -9273,7 +9245,7 @@ command_init ()
hook_command ( hook_command (
NULL, "repeat", NULL, "repeat",
N_("execute a command several times"), N_("execute a command several times"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-interval <delay>[<unit>]] <count> <command>"), N_("[-interval <delay>[<unit>]] <count> <command>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("delay: delay between execution of commands (minimum: 1 millisecond)"), N_("delay: delay between execution of commands (minimum: 1 millisecond)"),
@@ -9297,7 +9269,7 @@ command_init ()
N_("> ${repeat_last}: \"1\" for the last execution, \"0\" for the others"), N_("> ${repeat_last}: \"1\" for the last execution, \"0\" for the others"),
"", "",
N_("Note: the command is executed on buffer where /repeat was executed " N_("Note: the command is executed on buffer where /repeat was executed "
"(if the buffer does not exist anymore, the command is not " "(if the buffer does not exist any more, the command is not "
"executed)."), "executed)."),
"", "",
N_("Examples:"), N_("Examples:"),
@@ -9310,7 +9282,7 @@ command_init ()
hook_command ( hook_command (
NULL, "reset", NULL, "reset",
N_("reset config options"), N_("reset config options"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<option>" N_("<option>"
" || -mask <option>"), " || -mask <option>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
@@ -9327,8 +9299,8 @@ command_init ()
hook_command ( hook_command (
NULL, "save", NULL, "save",
N_("save configuration files to disk"), N_("save configuration files to disk"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[<file>...]"), N_("[<file> [<file>...]]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("file: configuration file to save (without extension \".conf\")"), N_("file: configuration file to save (without extension \".conf\")"),
"", "",
@@ -9342,7 +9314,7 @@ command_init ()
NULL, "secure", NULL, "secure",
N_("manage secured data (passwords or private data encrypted in file " N_("manage secured data (passwords or private data encrypted in file "
"sec.conf)"), "sec.conf)"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("passphrase <passphrase>|-delete" N_("passphrase <passphrase>|-delete"
" || decrypt <passphrase>|-discard" " || decrypt <passphrase>|-discard"
" || set <name> <value>" " || set <name> <value>"
@@ -9401,9 +9373,9 @@ command_init ()
hook_command ( hook_command (
NULL, "set", NULL, "set",
N_("set config options and environment variables"), N_("set config options and environment variables"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[<option> [<value>]]" N_("[<option> [<value>]]"
" || diff [<option>...]" " || diff [<option> [<option>...]]"
" || env [<variable> [<value>]]"), " || env [<variable> [<value>]]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("option: name of an option (wildcard \"*\" is allowed to list " N_("option: name of an option (wildcard \"*\" is allowed to list "
@@ -9463,8 +9435,8 @@ command_init ()
hook_command ( hook_command (
NULL, "toggle", NULL, "toggle",
N_("toggle value of a config option"), N_("toggle value of a config option"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<option> [<value>...]"), N_("<option> [<value> [<value>...]]"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("option: name of an option"), N_("option: name of an option"),
N_("value: possible values for the option (values are split like the " N_("value: possible values for the option (values are split like the "
@@ -9500,7 +9472,7 @@ command_init ()
hook_command ( hook_command (
NULL, "unset", NULL, "unset",
N_("unset/reset config options"), N_("unset/reset config options"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<option>" N_("<option>"
" || -mask <option>"), " || -mask <option>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
@@ -9521,7 +9493,7 @@ command_init ()
NULL, "upgrade", NULL, "upgrade",
N_("save WeeChat session and reload the WeeChat binary without " N_("save WeeChat session and reload the WeeChat binary without "
"disconnecting from servers"), "disconnecting from servers"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("[-yes] [<path_to_binary>|-save|-quit]" N_("[-yes] [<path_to_binary>|-save|-quit]"
" || -o|-ol"), " || -o|-ol"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
@@ -9530,7 +9502,7 @@ command_init ()
N_("path_to_binary: path to WeeChat binary (default is current binary)"), N_("path_to_binary: path to WeeChat binary (default is current binary)"),
N_("raw[-dummy]: do nothing (option used to prevent accidental " N_("raw[-dummy]: do nothing (option used to prevent accidental "
"completion with \"-quit\")"), "completion with \"-quit\")"),
N_("raw[-save]: only save the session, neither quit nor reload " N_("raw[-save]: only save the session, do not quit nor reload "
"WeeChat; the configuration files are not saved (if needed you can " "WeeChat; the configuration files are not saved (if needed you can "
"use /save before this command)"), "use /save before this command)"),
N_("raw[-quit]: close *ALL* connections, save session and quit " N_("raw[-quit]: close *ALL* connections, save session and quit "
@@ -9607,7 +9579,7 @@ command_init ()
hook_command ( hook_command (
NULL, "wait", NULL, "wait",
N_("schedule a command execution in future"), N_("schedule a command execution in future"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
N_("<number>[<unit>] <command>"), N_("<number>[<unit>] <command>"),
CMD_ARGS_DESC( CMD_ARGS_DESC(
N_("number: amount of time to wait (minimum: 1 millisecond)"), N_("number: amount of time to wait (minimum: 1 millisecond)"),
@@ -9621,7 +9593,7 @@ command_init ()
"does not start with \"/\")"), "does not start with \"/\")"),
"", "",
N_("Note: the command is executed on buffer where /wait was executed " N_("Note: the command is executed on buffer where /wait was executed "
"(if the buffer does not exist anymore, the command is not " "(if the buffer does not exist any more, the command is not "
"executed)."), "executed)."),
"", "",
N_("Examples:"), N_("Examples:"),
@@ -9636,7 +9608,7 @@ command_init ()
hook_command ( hook_command (
NULL, "window", NULL, "window",
N_("manage windows"), N_("manage windows"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */ /* TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated */
/* xgettext:no-c-format */ /* xgettext:no-c-format */
N_("list" N_("list"
" || -1|+1|b#|up|down|left|right [-window <number>]" " || -1|+1|b#|up|down|left|right [-window <number>]"
-30
View File
@@ -1015,33 +1015,6 @@ completion_list_add_filters_enabled_cb (const void *pointer, void *data,
return WEECHAT_RC_OK; return WEECHAT_RC_OK;
} }
/*
* Adds command hook types to completion list.
*/
int
completion_list_add_hook_types_cb (const void *pointer, void *data,
const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
int i;
/* make C compiler happy */
(void) pointer;
(void) data;
(void) completion_item;
(void) buffer;
for (i = 0; i < HOOK_NUM_TYPES; i++)
{
gui_completion_list_add (completion, hook_type_string[i],
0, WEECHAT_LIST_POS_SORT);
}
return WEECHAT_RC_OK;
}
/* /*
* Adds command hooks to completion list. * Adds command hooks to completion list.
*/ */
@@ -2303,9 +2276,6 @@ completion_init ()
hook_completion (NULL, "filters_names_enabled", hook_completion (NULL, "filters_names_enabled",
N_("names of enabled filters"), N_("names of enabled filters"),
&completion_list_add_filters_enabled_cb, NULL, NULL); &completion_list_add_filters_enabled_cb, NULL, NULL);
hook_completion (NULL, "hook_types",
N_("hook types"),
&completion_list_add_hook_types_cb, NULL, NULL);
hook_completion (NULL, "commands", /* formerly "%h" */ hook_completion (NULL, "commands", /* formerly "%h" */
N_("commands (weechat and plugins); " N_("commands (weechat and plugins); "
"optional argument: prefix to add before the commands"), "optional argument: prefix to add before the commands"),
+2 -2
View File
@@ -210,7 +210,7 @@ config_file_new (struct t_weechat_plugin *plugin, const char *name,
if (!ptr_name || !ptr_name[0]) if (!ptr_name || !ptr_name[0])
return NULL; return NULL;
/* two configuration files cannot have same name */ /* two configuration files can not have same name */
if (config_file_search (ptr_name)) if (config_file_search (ptr_name))
return NULL; return NULL;
@@ -3522,7 +3522,7 @@ config_file_update_data_read (struct t_config_file *config_file,
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sImportant: file %s has been updated from version %d to %d, " _("%sImportant: file %s has been updated from version %d to %d, "
"it is not compatible and cannot be loaded anymore with any " "it is not compatible and can not be loaded any more with any "
"older version"), "older version"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
filename, filename,
+15 -14
View File
@@ -3344,7 +3344,7 @@ config_weechat_init_options ()
config_look_buffer_search_case_sensitive = config_file_new_option ( config_look_buffer_search_case_sensitive = config_file_new_option (
weechat_config_file, weechat_config_section_look, weechat_config_file, weechat_config_section_look,
"buffer_search_case_sensitive", "boolean", "buffer_search_case_sensitive", "boolean",
N_("default text search in buffer: case-sensitive or not"), N_("default text search in buffer: case sensitive or not"),
NULL, 0, 0, "off", NULL, 0, NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_buffer_search_history = config_file_new_option ( config_look_buffer_search_history = config_file_new_option (
@@ -3490,7 +3490,8 @@ config_weechat_init_options ()
config_look_color_nick_offline = config_file_new_option ( config_look_color_nick_offline = config_file_new_option (
weechat_config_file, weechat_config_section_look, weechat_config_file, weechat_config_section_look,
"color_nick_offline", "boolean", "color_nick_offline", "boolean",
N_("use a different color for offline nicks (not in nicklist anymore)"), N_("use a different color for offline nicks (not in nicklist any "
"more)"),
NULL, 0, 0, "off", NULL, 0, NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
&config_change_buffers, NULL, NULL, &config_change_buffers, NULL, NULL,
@@ -3626,9 +3627,9 @@ config_weechat_init_options ()
config_look_highlight = config_file_new_option ( config_look_highlight = config_file_new_option (
weechat_config_file, weechat_config_section_look, weechat_config_file, weechat_config_section_look,
"highlight", "string", "highlight", "string",
N_("comma separated list of words to highlight; case-insensitive " N_("comma separated list of words to highlight; case insensitive "
"comparison (use \"(?-i)\" at beginning of words to make them " "comparison (use \"(?-i)\" at beginning of words to make them "
"case-sensitive), words may begin or end with \"*\" for partial " "case sensitive), words may begin or end with \"*\" for partial "
"match; example: \"test,(?-i)*toto*,flash*\""), "match; example: \"test,(?-i)*toto*,flash*\""),
NULL, 0, 0, "", NULL, 0, NULL, 0, 0, "", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
@@ -3639,8 +3640,8 @@ config_weechat_init_options ()
"from a message: this option has higher priority over other " "from a message: this option has higher priority over other "
"highlight options (if the string is found in the message, the " "highlight options (if the string is found in the message, the "
"highlight is disabled and the other options are ignored), " "highlight is disabled and the other options are ignored), "
"regular expression is case-insensitive (use \"(?-i)\" at " "regular expression is case insensitive (use \"(?-i)\" at "
"beginning to make it case-sensitive), examples: " "beginning to make it case sensitive), examples: "
"\"<flash.*>\", \"(?-i)<Flash.*>\""), "\"<flash.*>\", \"(?-i)<Flash.*>\""),
NULL, 0, 0, "", NULL, 0, NULL, 0, 0, "", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
@@ -3661,8 +3662,8 @@ config_weechat_init_options ()
N_("POSIX extended regular expression used to check if a message " N_("POSIX extended regular expression used to check if a message "
"has highlight or not, at least one match in string must be " "has highlight or not, at least one match in string must be "
"surrounded by delimiters (chars different from: alphanumeric, " "surrounded by delimiters (chars different from: alphanumeric, "
"\"-\", \"_\" and \"|\"), regular expression is case-insensitive " "\"-\", \"_\" and \"|\"), regular expression is case insensitive "
"(use \"(?-i)\" at beginning to make it case-sensitive), " "(use \"(?-i)\" at beginning to make it case sensitive), "
"examples: \"flashcode|flashy\", \"(?-i)FlashCode|flashy\""), "examples: \"flashcode|flashy\", \"(?-i)FlashCode|flashy\""),
NULL, 0, 0, "", NULL, 0, NULL, 0, 0, "", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
@@ -3671,7 +3672,7 @@ config_weechat_init_options ()
config_look_highlight_tags = config_file_new_option ( config_look_highlight_tags = config_file_new_option (
weechat_config_file, weechat_config_section_look, weechat_config_file, weechat_config_section_look,
"highlight_tags", "string", "highlight_tags", "string",
N_("comma separated list of tags to highlight; case-insensitive " N_("comma separated list of tags to highlight; case insensitive "
"comparison; wildcard \"*\" is allowed in each tag; many tags " "comparison; wildcard \"*\" is allowed in each tag; many tags "
"can be separated by \"+\" to make a logical \"and\" between " "can be separated by \"+\" to make a logical \"and\" between "
"tags; examples: \"nick_flashcode\" for messages from nick " "tags; examples: \"nick_flashcode\" for messages from nick "
@@ -3793,11 +3794,11 @@ config_weechat_init_options ()
"a hdata variable of hotlist (\"var\") or a hdata variable of " "a hdata variable of hotlist (\"var\") or a hdata variable of "
"buffer (\"buffer.var\"); " "buffer (\"buffer.var\"); "
"char \"-\" can be used before field to reverse order, " "char \"-\" can be used before field to reverse order, "
"char \"~\" can be used to do a case-insensitive comparison; " "char \"~\" can be used to do a case insensitive comparison; "
"examples: " "examples: "
"\"-priority,buffer.number\" for sort on hotlist priority then by " "\"-priority,buffer.number\" for sort on hotlist priority then by "
"buffer number, " "buffer number, "
"\"-~buffer.full_name\" for case-insensitive and reverse " "\"-~buffer.full_name\" for case insensitive and reverse "
"sort on buffer full name"), "sort on buffer full name"),
NULL, 0, 0, "-priority,time,time_usec", NULL, 0, NULL, 0, 0, "-priority,time,time_usec", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
@@ -4570,7 +4571,7 @@ config_weechat_init_options ()
config_color_chat_nick_offline = config_file_new_option ( config_color_chat_nick_offline = config_file_new_option (
weechat_config_file, weechat_config_section_color, weechat_config_file, weechat_config_section_color,
"chat_nick_offline", "color", "chat_nick_offline", "color",
N_("text color for offline nick (not in nicklist anymore); this " N_("text color for offline nick (not in nicklist any more); this "
"color is used only if option weechat.look.color_nick_offline is " "color is used only if option weechat.look.color_nick_offline is "
"enabled"), "enabled"),
NULL, GUI_COLOR_CHAT_NICK_OFFLINE, 0, "242", NULL, 0, NULL, GUI_COLOR_CHAT_NICK_OFFLINE, 0, "242", NULL, 0,
@@ -5063,7 +5064,7 @@ config_weechat_init_options ()
config_completion_case_sensitive = config_file_new_option ( config_completion_case_sensitive = config_file_new_option (
weechat_config_file, weechat_config_section_completion, weechat_config_file, weechat_config_section_completion,
"case_sensitive", "boolean", "case_sensitive", "boolean",
N_("if enabled, the completion is case-sensitive by default"), N_("if enabled, the completion is case sensitive by default"),
NULL, 0, 0, "on", NULL, 0, NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_completion_command_inline = config_file_new_option ( config_completion_command_inline = config_file_new_option (
@@ -5094,7 +5095,7 @@ config_weechat_init_options ()
config_completion_nick_case_sensitive = config_file_new_option ( config_completion_nick_case_sensitive = config_file_new_option (
weechat_config_file, weechat_config_section_completion, weechat_config_file, weechat_config_section_completion,
"nick_case_sensitive", "boolean", "nick_case_sensitive", "boolean",
N_("case-sensitive completion for nicks"), N_("case sensitive completion for nicks"),
NULL, 0, 0, "off", NULL, 0, NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_completion_nick_completer = config_file_new_option ( config_completion_nick_completer = config_file_new_option (
+1 -4
View File
@@ -31,13 +31,10 @@
#include <math.h> #include <math.h>
#include <gcrypt.h> #include <gcrypt.h>
/* Bring in htobe64 */
#ifdef __ANDROID__ #ifdef __ANDROID__
/* Bring in htobe64 */
#define _BSD_SOURCE #define _BSD_SOURCE
#include <endian.h> #include <endian.h>
#elif defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define htobe64 OSSwapHostToBigInt64
#endif #endif
#include "weechat.h" #include "weechat.h"
+67 -74
View File
@@ -19,9 +19,6 @@
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>. * along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
*/ */
/* for wcwidth in wchar.h */
#define _XOPEN_SOURCE
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
@@ -31,7 +28,6 @@
#include <malloc.h> #include <malloc.h>
#endif #endif
#include <string.h> #include <string.h>
#include <wchar.h>
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>
#include <gcrypt.h> #include <gcrypt.h>
@@ -228,11 +224,8 @@ debug_dump_cb (const void *pointer, void *data,
*/ */
void void
debug_sigsegv_cb (int signo) debug_sigsegv_cb ()
{ {
/* make C compiler happy */
(void) signo;
debug_dump (1); debug_dump (1);
unhook_all (); unhook_all ();
gui_main_end (0); gui_main_end (0);
@@ -536,19 +529,36 @@ debug_hooks ()
} }
/* /*
* Displays info about hooks for one or multiple plugins matching a mask. * Displays info about hooks for a specific plugin.
*/ */
void void
debug_hooks_plugin_types (const char *plugin_mask, const char **hook_types) debug_hooks_plugin (const char *plugin_name)
{ {
struct t_weechat_plugin *ptr_plugin;
struct t_hook *ptr_hook; struct t_hook *ptr_hook;
char *desc, **result, **result_type, str_type[1024]; char *desc, **result, **result_type, str_type[128];
int i, j, count_total, count_type, match_type, matches; int i, count_total, count_type;
if (!plugin_mask) if (!plugin_name)
return; return;
if (strcmp (plugin_name, PLUGIN_CORE) == 0)
{
ptr_plugin = NULL;
}
else
{
ptr_plugin = plugin_search (plugin_name);
if (!ptr_plugin)
{
gui_chat_printf (NULL, "%sPlugin \"%s\" not found",
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
plugin_name);
return;
}
}
result = string_dyn_alloc (1024); result = string_dyn_alloc (1024);
if (!result) if (!result)
return; return;
@@ -561,88 +571,55 @@ debug_hooks_plugin_types (const char *plugin_mask, const char **hook_types)
} }
count_total = 0; count_total = 0;
matches = 0;
for (i = 0; i < HOOK_NUM_TYPES; i++) for (i = 0; i < HOOK_NUM_TYPES; i++)
{ {
if (hook_types) count_type = 0;
string_dyn_copy (result_type, NULL);
for (ptr_hook = weechat_hooks[i]; ptr_hook;
ptr_hook = ptr_hook->next_hook)
{ {
match_type = 0; if (ptr_hook->deleted || (ptr_hook->plugin != ptr_plugin))
for (j = 0; hook_types[j]; j++) continue;
desc = hook_get_description (ptr_hook);
if (desc)
{ {
if (strcmp (hook_types[j], hook_type_string[i]) == 0) string_dyn_concat (result_type, " ", -1);
{ string_dyn_concat (result_type, desc, -1);
matches = 1; string_dyn_concat (result_type, "\n", -1);
match_type = 1; free (desc);
break;
}
} }
} count_type++;
else
{
match_type = 1;
} }
if (match_type) snprintf (str_type, sizeof (str_type),
{ " %s (%d)%s\n",
count_type = 0; hook_type_string[i],
string_dyn_copy (result_type, NULL); count_type,
(count_type > 0) ? ":" : "");
string_dyn_concat (result, str_type, -1);
for (ptr_hook = weechat_hooks[i]; ptr_hook; if (count_type > 0)
ptr_hook = ptr_hook->next_hook) string_dyn_concat (result, *result_type, -1);
{
if (ptr_hook->deleted)
continue;
if (!string_match ( count_total += count_type;
(ptr_hook->plugin) ? ptr_hook->plugin->name : PLUGIN_CORE,
plugin_mask, 1))
continue;
matches = 1;
desc = hook_get_description (ptr_hook);
if (desc)
{
string_dyn_concat (result_type, " ", -1);
string_dyn_concat (result_type,
(ptr_hook->plugin) ?
ptr_hook->plugin->name : PLUGIN_CORE,
-1);
string_dyn_concat (result_type, ": ", -1);
string_dyn_concat (result_type, desc, -1);
string_dyn_concat (result_type, "\n", -1);
free (desc);
}
count_type++;
}
snprintf (str_type, sizeof (str_type),
" %s (%d)%s\n",
hook_type_string[i],
count_type,
(count_type > 0) ? ":" : "");
string_dyn_concat (result, str_type, -1);
if (count_type > 0)
string_dyn_concat (result, *result_type, -1);
count_total += count_type;
}
} }
if (matches) if (count_total > 0)
{ {
gui_chat_printf (NULL, ""); gui_chat_printf (NULL, "");
gui_chat_printf (NULL, gui_chat_printf (NULL,
"hooks (%d)%s", "hooks in plugin \"%s\" (%d)%s",
plugin_name,
count_total, count_total,
(count_total > 0) ? ":" : ""); (count_total > 0) ? ":" : "");
gui_chat_printf (NULL, *result); gui_chat_printf (NULL, *result);
} }
else else
{ {
gui_chat_printf (NULL, "No hooks"); gui_chat_printf (NULL, "No hooks in plugin \"%s\"", plugin_name);
} }
string_dyn_free (result, 1); string_dyn_free (result, 1);
string_dyn_free (result_type, 1); string_dyn_free (result_type, 1);
@@ -752,10 +729,26 @@ debug_libs_cb (const void *pointer, void *data,
const char *signal, const char *type_data, const char *signal, const char *type_data,
void *signal_data) void *signal_data)
{ {
#ifdef GCRYPT_VERSION
const char *version_gcrypt = GCRYPT_VERSION; const char *version_gcrypt = GCRYPT_VERSION;
#else
const char *version_gcrypt = "(?)";
#endif
#ifdef GNUTLS_VERSION
const char *version_gnutls = GNUTLS_VERSION; const char *version_gnutls = GNUTLS_VERSION;
#else
const char *version_gnutls = "(?)";
#endif
#ifdef LIBCURL_VERSION
const char *version_libcurl = LIBCURL_VERSION; const char *version_libcurl = LIBCURL_VERSION;
#else
const char *version_libcurl = "(?)";
#endif
#ifdef ZLIB_VERSION
const char *version_zlib = ZLIB_VERSION; const char *version_zlib = ZLIB_VERSION;
#else
const char *version_zlib = "(?)";
#endif
/* make C compiler happy */ /* make C compiler happy */
(void) pointer; (void) pointer;
+2 -3
View File
@@ -27,13 +27,12 @@ struct t_gui_window_tree;
extern long long debug_long_callbacks; extern long long debug_long_callbacks;
extern void debug_build_info (); extern void debug_build_info ();
extern void debug_sigsegv_cb (int signo); extern void debug_sigsegv_cb ();
extern void debug_windows_tree (); extern void debug_windows_tree ();
extern void debug_memory (); extern void debug_memory ();
extern void debug_hdata (); extern void debug_hdata ();
extern void debug_hooks (); extern void debug_hooks ();
extern void debug_hooks_plugin_types (const char *plugin_name, extern void debug_hooks_plugin (const char *plugin_name);
const char **hook_types);
extern void debug_infolists (); extern void debug_infolists ();
extern void debug_directories (); extern void debug_directories ();
extern void debug_display_time_elapsed (struct timeval *time1, extern void debug_display_time_elapsed (struct timeval *time1,
+2 -2
View File
@@ -358,7 +358,7 @@ dir_set_home_path (char *path)
{ {
/* /*
* value of 4 is not mentioned in the message because it's kept only * value of 4 is not mentioned in the message because it's kept only
* for compatibility with old releases, it should not be used anymore * for compatibility with old releases, it should not be used any more
*/ */
string_fprintf (stderr, string_fprintf (stderr,
_("Error: wrong number of paths for home directories " _("Error: wrong number of paths for home directories "
@@ -738,7 +738,7 @@ dir_create_home_dir (char *path)
* Creates WeeChat home directories. * Creates WeeChat home directories.
* *
* Any error in this function (or a sub function called) is fatal: WeeChat * Any error in this function (or a sub function called) is fatal: WeeChat
* cannot run at all without the home directories. * can not run at all without the home directories.
*/ */
void void
+1 -1
View File
@@ -1620,7 +1620,7 @@ eval_syntax_highlight (const char *text, struct t_eval_context *eval_context)
* - ${weechat_data_dir}: WeeChat data directory * - ${weechat_data_dir}: WeeChat data directory
* - ${weechat_state_dir}: WeeChat state directory * - ${weechat_state_dir}: WeeChat state directory
* - ${weechat_cache_dir}: WeeChat cache directory * - ${weechat_cache_dir}: WeeChat cache directory
* - ${weechat_runtime_dir}: WeeChat runtime directory * - ${weechat_runtmie_dir}: WeeChat runtime directory
* - ${eval:string}: the evaluated string * - ${eval:string}: the evaluated string
* - ${eval_cond:string}: the evaluated condition * - ${eval_cond:string}: the evaluated condition
* - ${esc:string} or ${\\string}: the string with escaped chars * - ${esc:string} or ${\\string}: the string with escaped chars
+2 -2
View File
@@ -880,7 +880,7 @@ hdata_string (struct t_hdata *hdata, void *pointer, const char *name)
return (*((char ***)(pointer + var->offset)))[index]; return (*((char ***)(pointer + var->offset)))[index];
else else
{ {
/* we cannot index a static array of strings */ /* we can not index a static array of strings */
return NULL; return NULL;
} }
} }
@@ -998,7 +998,7 @@ hdata_hashtable (struct t_hdata *hdata, void *pointer, const char *name)
/* /*
* Compares a hdata variable of two objects. * Compares a hdata variable of two objects.
* *
* If case_sensitive == 1, the comparison of strings is case-sensitive. * If case_sensitive == 1, the comparison of strings is case sensitive.
* *
* Returns: * Returns:
* -1: variable1 < variable2 * -1: variable1 < variable2
+4 -14
View File
@@ -247,27 +247,17 @@ infolist_new_var_buffer (struct t_infolist_item *item,
{ {
struct t_infolist_var *new_var; struct t_infolist_var *new_var;
if (!item || !name || !name[0]) if (!item || !name || !name[0] || (size <= 0))
return NULL; return NULL;
if (size < 0)
size = 0;
new_var = malloc (sizeof (*new_var)); new_var = malloc (sizeof (*new_var));
if (new_var) if (new_var)
{ {
new_var->name = strdup (name); new_var->name = strdup (name);
new_var->type = INFOLIST_BUFFER; new_var->type = INFOLIST_BUFFER;
if (pointer && (size > 0)) new_var->value = malloc (size);
{ if (new_var->value)
new_var->value = malloc (size); memcpy (new_var->value, pointer, size);
if (new_var->value)
memcpy (new_var->value, pointer, size);
}
else
{
new_var->value = NULL;
}
new_var->size = size; new_var->size = size;
new_var->prev_var = item->last_var; new_var->prev_var = item->last_var;
+33 -33
View File
@@ -44,28 +44,24 @@ char **input_commands_allowed = NULL;
/* /*
* Sends data to buffer input callback. * Sends data to buffer input callback.
*
* Returns the return code of buffer callback, or WEECHAT_RC_ERROR if the
* buffer has no input callback.
*/ */
int void
input_exec_data (struct t_gui_buffer *buffer, const char *data) input_exec_data (struct t_gui_buffer *buffer, const char *data)
{ {
if (buffer->input_callback) if (buffer->input_callback)
{ {
return (buffer->input_callback) (buffer->input_callback_pointer, (void)(buffer->input_callback) (buffer->input_callback_pointer,
buffer->input_callback_data, buffer->input_callback_data,
buffer, buffer,
data); data);
} }
else else
{ {
gui_chat_printf (buffer, gui_chat_printf (buffer,
_("%sYou cannot write text in this " _("%sYou can not write text in this "
"buffer"), "buffer"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_ERROR;
} }
} }
@@ -89,7 +85,7 @@ input_exec_command (struct t_gui_buffer *buffer,
const char *ptr_command_name; const char *ptr_command_name;
int rc; int rc;
if (!string || (!string[0])) if ((!string) || (!string[0]))
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
rc = WEECHAT_RC_OK; rc = WEECHAT_RC_OK;
@@ -179,7 +175,7 @@ input_exec_command (struct t_gui_buffer *buffer,
*/ */
if (buffer->input_get_unknown_commands) if (buffer->input_get_unknown_commands)
{ {
rc = input_exec_data (buffer, string); input_exec_data (buffer, string);
} }
else else
{ {
@@ -249,9 +245,9 @@ int
input_data (struct t_gui_buffer *buffer, const char *data, input_data (struct t_gui_buffer *buffer, const char *data,
const char *commands_allowed, int split_newline, int user_data) const char *commands_allowed, int split_newline, int user_data)
{ {
char *pos, str_buffer[128], *new_data, *buffer_full_name; char *pos, *buf, str_buffer[128], *new_data, *buffer_full_name;
const char *ptr_data, *ptr_data_for_buffer; const char *ptr_data, *ptr_data_for_buffer;
int first_command, rc; int length, char_size, first_command, rc;
if (!buffer || !gui_buffer_valid (buffer) || !data) if (!buffer || !gui_buffer_valid (buffer) || !data)
return WEECHAT_RC_ERROR; return WEECHAT_RC_ERROR;
@@ -284,7 +280,7 @@ input_data (struct t_gui_buffer *buffer, const char *data,
while (ptr_data) while (ptr_data)
{ {
/* /*
* if the buffer pointer is not valid anymore (or if it's another * if the buffer pointer is not valid any more (or if it's another
* buffer), use the current buffer for the next command * buffer), use the current buffer for the next command
*/ */
if (!first_command if (!first_command
@@ -309,10 +305,25 @@ input_data (struct t_gui_buffer *buffer, const char *data,
if (ptr_data_for_buffer) if (ptr_data_for_buffer)
{ {
/* /*
* input string is NOT a command, send it as-is to the buffer * input string is NOT a command, send it to buffer input
* input callback * callback
*/ */
rc = input_exec_data (buffer, ptr_data); if (string_is_command_char (ptr_data_for_buffer))
{
char_size = utf8_char_size (ptr_data_for_buffer);
length = strlen (ptr_data_for_buffer) + char_size + 1;
buf = malloc (length);
if (buf)
{
memcpy (buf, ptr_data_for_buffer, char_size);
snprintf (buf + char_size, length - char_size,
"%s", ptr_data_for_buffer);
input_exec_data (buffer, buf);
free (buf);
}
}
else
input_exec_data (buffer, ptr_data_for_buffer);
} }
else else
{ {
@@ -323,24 +334,13 @@ input_data (struct t_gui_buffer *buffer, const char *data,
* if data is sent from user and buffer catches any user data: * if data is sent from user and buffer catches any user data:
* send it to callback * send it to callback
*/ */
rc = input_exec_data (buffer, ptr_data); input_exec_data (buffer, ptr_data);
} }
else else
{ {
/* /* execute command on buffer */
* if commands_allowed has special value "-", send data as-is rc = input_exec_command (buffer, 1, buffer->plugin, ptr_data,
* to the buffer input callback, otherwise execute the command commands_allowed);
* on the buffer
*/
if (commands_allowed && (strcmp (commands_allowed, "-") == 0))
{
rc = input_exec_data (buffer, ptr_data);
}
else
{
rc = input_exec_command (buffer, 1, buffer->plugin,
ptr_data, commands_allowed);
}
} }
} }
+4 -4
View File
@@ -164,7 +164,7 @@ weelist_add (struct t_weelist *weelist, const char *data, const char *where,
} }
/* /*
* Searches for data in a list (case-sensitive). * Searches for data in a list (case sensitive).
* *
* Returns pointer to item found, NULL if not found. * Returns pointer to item found, NULL if not found.
*/ */
@@ -188,7 +188,7 @@ weelist_search (struct t_weelist *weelist, const char *data)
} }
/* /*
* Searches for data in a list (case-sensitive). * Searches for data in a list (case sensitive).
* *
* Returns position of item found (>= 0), -1 if not found. * Returns position of item found (>= 0), -1 if not found.
*/ */
@@ -215,7 +215,7 @@ weelist_search_pos (struct t_weelist *weelist, const char *data)
} }
/* /*
* Searches for data in a list (case-insensitive). * Searches for data in a list (case insensitive).
* *
* Returns pointer to item found, NULL if not found. * Returns pointer to item found, NULL if not found.
*/ */
@@ -239,7 +239,7 @@ weelist_casesearch (struct t_weelist *weelist, const char *data)
} }
/* /*
* Searches for data in a list (case-insensitive). * Searches for data in a list (case insensitive).
* *
* Returns position of item found (>= 0), -1 if not found. * Returns position of item found (>= 0), -1 if not found.
*/ */
+47
View File
@@ -99,10 +99,17 @@ void
network_allocate_credentials () network_allocate_credentials ()
{ {
gnutls_certificate_allocate_credentials (&gnutls_xcred); gnutls_certificate_allocate_credentials (&gnutls_xcred);
#if LIBGNUTLS_VERSION_NUMBER >= 0x02090a /* 2.9.10 */
gnutls_certificate_set_verify_function (gnutls_xcred, gnutls_certificate_set_verify_function (gnutls_xcred,
&hook_connect_gnutls_verify_certificates); &hook_connect_gnutls_verify_certificates);
#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x02090a */
#if LIBGNUTLS_VERSION_NUMBER >= 0x020b00 /* 2.11.0 */
gnutls_certificate_set_retrieve_function (gnutls_xcred, gnutls_certificate_set_retrieve_function (gnutls_xcred,
&hook_connect_gnutls_set_certificates); &hook_connect_gnutls_set_certificates);
#else
gnutls_certificate_client_set_retrieve_function (gnutls_xcred,
&hook_connect_gnutls_set_certificates);
#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x020b00 */
} }
/* /*
@@ -1528,6 +1535,26 @@ network_connect_gnutls_handshake_fd_cb (const void *pointer, void *data,
{ {
fcntl (HOOK_CONNECT(hook_connect, sock), F_SETFL, fcntl (HOOK_CONNECT(hook_connect, sock), F_SETFL,
HOOK_CONNECT(hook_connect, handshake_fd_flags)); HOOK_CONNECT(hook_connect, handshake_fd_flags));
#if LIBGNUTLS_VERSION_NUMBER < 0x02090a /* 2.9.10 */
/*
* gnutls only has the gnutls_certificate_set_verify_function()
* function since version 2.9.10. We need to call our verify
* function manually after the handshake for old gnutls versions
*/
if (hook_connect_gnutls_verify_certificates (*HOOK_CONNECT(hook_connect, gnutls_sess)) != 0)
{
unhook (HOOK_CONNECT(hook_connect, handshake_hook_fd));
(void) (HOOK_CONNECT(hook_connect, callback))
(hook_connect->callback_pointer,
hook_connect->callback_data,
WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR, rc,
HOOK_CONNECT(hook_connect, sock),
"Error in the certificate.",
HOOK_CONNECT(hook_connect, handshake_ip_address));
unhook (hook_connect);
return WEECHAT_RC_OK;
}
#endif /* LIBGNUTLS_VERSION_NUMBER < 0x02090a */
unhook (HOOK_CONNECT(hook_connect, handshake_hook_fd)); unhook (HOOK_CONNECT(hook_connect, handshake_hook_fd));
(void) (HOOK_CONNECT(hook_connect, callback)) (void) (HOOK_CONNECT(hook_connect, callback))
(hook_connect->callback_pointer, (hook_connect->callback_pointer,
@@ -1742,6 +1769,26 @@ network_connect_child_read_cb (const void *pointer, void *data, int fd)
} }
fcntl (HOOK_CONNECT(hook_connect, sock), F_SETFL, fcntl (HOOK_CONNECT(hook_connect, sock), F_SETFL,
HOOK_CONNECT(hook_connect, handshake_fd_flags)); HOOK_CONNECT(hook_connect, handshake_fd_flags));
#if LIBGNUTLS_VERSION_NUMBER < 0x02090a /* 2.9.10 */
/*
* gnutls only has the gnutls_certificate_set_verify_function()
* function since version 2.9.10. We need to call our verify
* function manually after the handshake for old gnutls versions
*/
if (hook_connect_gnutls_verify_certificates (*HOOK_CONNECT(hook_connect, gnutls_sess)) != 0)
{
(void) (HOOK_CONNECT(hook_connect, callback))
(hook_connect->callback_pointer,
hook_connect->callback_data,
WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR,
rc, sock,
"Error in the certificate.",
cb_ip_address);
unhook (hook_connect);
free (cb_ip_address);
return WEECHAT_RC_OK;
}
#endif /* LIBGNUTLS_VERSION_NUMBER < 0x02090a */
} }
} }
else else
+6 -6
View File
@@ -177,7 +177,7 @@ secure_config_reload_cb (const void *pointer, void *data,
} }
/* /*
* Callback for changes on some options "weechat.crypt.*" (that cannot be * Callback for changes on some options "weechat.crypt.*" (that can not be
* changed if there are encrypted data. * changed if there are encrypted data.
*/ */
@@ -200,7 +200,7 @@ secure_config_check_crypt_option_cb (const void *pointer, void *data,
return 1; return 1;
gui_chat_printf (NULL, gui_chat_printf (NULL,
_("%sOption %s.%s.%s cannot be changed because there " _("%sOption %s.%s.%s can not be changed because there "
"are still encrypted data"), "are still encrypted data"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
option->config_file->name, option->config_file->name,
@@ -282,7 +282,7 @@ secure_config_data_read_cb (const void *pointer, void *data,
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to decrypt data \"%s\": hash algorithm \"%s\" is not " _("%sFailed to decrypt data \"%s\": hash algorithm \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
option_name, option_name,
config_file_option_string (secure_config_crypt_hash_algo)); config_file_option_string (secure_config_crypt_hash_algo));
@@ -298,7 +298,7 @@ secure_config_data_read_cb (const void *pointer, void *data,
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to decrypt data \"%s\": cipher \"%s\" is not " _("%sFailed to decrypt data \"%s\": cipher \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
option_name, option_name,
config_file_option_string (secure_config_crypt_cipher)); config_file_option_string (secure_config_crypt_cipher));
@@ -393,7 +393,7 @@ secure_config_data_write_map_cb (void *data,
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to encrypt data \"%s\": hash algorithm \"%s\" is not " _("%sFailed to encrypt data \"%s\": hash algorithm \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
key, key,
config_file_option_string (secure_config_crypt_hash_algo)); config_file_option_string (secure_config_crypt_hash_algo));
@@ -407,7 +407,7 @@ secure_config_data_write_map_cb (void *data,
gui_chat_printf ( gui_chat_printf (
NULL, NULL,
_("%sFailed to encrypt data \"%s\": cipher \"%s\" is not " _("%sFailed to encrypt data \"%s\": cipher \"%s\" is not "
"available (libgcrypt version is too old?)"), "available (ligbcrypt version is too old?)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
key, key,
config_file_option_string (secure_config_crypt_cipher)); config_file_option_string (secure_config_crypt_cipher));
+5 -20
View File
@@ -65,11 +65,8 @@ volatile sig_atomic_t signal_sigusr2_count = 0;
*/ */
void void
signal_sighup_cb (int signo) signal_sighup_cb ()
{ {
/* make C compiler happy */
(void) signo;
signal_sighup_count++; signal_sighup_count++;
} }
@@ -78,11 +75,8 @@ signal_sighup_cb (int signo)
*/ */
void void
signal_sigquit_cb (int signo) signal_sigquit_cb ()
{ {
/* make C compiler happy */
(void) signo;
signal_sigquit_count++; signal_sigquit_count++;
} }
@@ -91,11 +85,8 @@ signal_sigquit_cb (int signo)
*/ */
void void
signal_sigterm_cb (int signo) signal_sigterm_cb ()
{ {
/* make C compiler happy */
(void) signo;
signal_sigterm_count++; signal_sigterm_count++;
} }
@@ -104,11 +95,8 @@ signal_sigterm_cb (int signo)
*/ */
void void
signal_sigusr1_cb (int signo) signal_sigusr1_cb ()
{ {
/* make C compiler happy */
(void) signo;
signal_sigusr1_count++; signal_sigusr1_count++;
} }
@@ -117,11 +105,8 @@ signal_sigusr1_cb (int signo)
*/ */
void void
signal_sigusr2_cb (int signo) signal_sigusr2_cb ()
{ {
/* make C compiler happy */
(void) signo;
signal_sigusr2_count++; signal_sigusr2_count++;
} }
+17 -21
View File
@@ -31,6 +31,7 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <wctype.h> #include <wctype.h>
#include <wchar.h>
#include <regex.h> #include <regex.h>
#include <stdint.h> #include <stdint.h>
#include <gcrypt.h> #include <gcrypt.h>
@@ -515,7 +516,7 @@ string_toupper_range (const char *string, int range)
} }
/* /*
* Compares two chars (case-sensitive). * Compares two chars (case sensitive).
* *
* Returns: arithmetic result of subtracting the first UTF-8 char in string2 * Returns: arithmetic result of subtracting the first UTF-8 char in string2
* from the first UTF-8 char in string1: * from the first UTF-8 char in string1:
@@ -531,7 +532,7 @@ string_charcmp (const char *string1, const char *string2)
} }
/* /*
* Compares two chars (case-insensitive). * Compares two chars (case insensitive).
* *
* Returns: arithmetic result of subtracting the first UTF-8 char in string2 * Returns: arithmetic result of subtracting the first UTF-8 char in string2
* (converted to lowercase) from the first UTF-8 char in string1 (converted * (converted to lowercase) from the first UTF-8 char in string1 (converted
@@ -570,7 +571,7 @@ string_charcasecmp (const char *string1, const char *string2)
} }
/* /*
* Compares two chars (case-insensitive using a range). * Compares two chars (case insensitive using a range).
* *
* The range is the number of chars which can be converted from upper to lower * The range is the number of chars which can be converted from upper to lower
* case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars.
@@ -606,7 +607,7 @@ string_charcasecmp_range (const char *string1, const char *string2, int range)
} }
/* /*
* Compares two strings (case-sensitive). * Compares two strings (case sensitive).
* *
* Returns: arithmetic result of subtracting the last compared UTF-8 char in * Returns: arithmetic result of subtracting the last compared UTF-8 char in
* string2 from the last compared UTF-8 char in string1: * string2 from the last compared UTF-8 char in string1:
@@ -640,7 +641,7 @@ string_strcmp (const char *string1, const char *string2)
} }
/* /*
* Compares two strings with max length (case-sensitive). * Compares two strings with max length (case sensitive).
* *
* Returns: arithmetic result of subtracting the last compared UTF-8 char in * Returns: arithmetic result of subtracting the last compared UTF-8 char in
* string2 from the last compared UTF-8 char in string1: * string2 from the last compared UTF-8 char in string1:
@@ -679,7 +680,7 @@ string_strncmp (const char *string1, const char *string2, int max)
} }
/* /*
* Compares two strings (case-insensitive). * Compares two strings (case insensitive).
* *
* Returns: arithmetic result of subtracting the last compared UTF-8 char in * Returns: arithmetic result of subtracting the last compared UTF-8 char in
* string2 (converted to lowercase) from the last compared UTF-8 char in * string2 (converted to lowercase) from the last compared UTF-8 char in
@@ -714,7 +715,7 @@ string_strcasecmp (const char *string1, const char *string2)
} }
/* /*
* Compares two strings (case-insensitive using a range). * Compares two strings (case insensitive using a range).
* *
* The range is the number of chars which can be converted from upper to lower * The range is the number of chars which can be converted from upper to lower
* case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars.
@@ -758,7 +759,7 @@ string_strcasecmp_range (const char *string1, const char *string2, int range)
} }
/* /*
* Compares two strings with max length (case-insensitive). * Compares two strings with max length (case insensitive).
* *
* Returns: arithmetic result of subtracting the last compared UTF-8 char in * Returns: arithmetic result of subtracting the last compared UTF-8 char in
* string2 (converted to lowercase) from the last compared UTF-8 char in * string2 (converted to lowercase) from the last compared UTF-8 char in
@@ -798,7 +799,7 @@ string_strncasecmp (const char *string1, const char *string2, int max)
} }
/* /*
* Compares two strings with max length (case-insensitive using a range). * Compares two strings with max length (case insensitive using a range).
* *
* The range is the number of chars which can be converted from upper to lower * The range is the number of chars which can be converted from upper to lower
* case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars.
@@ -1182,7 +1183,7 @@ string_eval_path_home (const char *path,
/* /*
* replace "%h" by WeeChat home * replace "%h" by WeeChat home
* (deprecated: "%h" should not be used anymore with WeeChat 3.2) * (deprecated: "%h" should not be used any more with WeeChat 3.2)
*/ */
if (strncmp (path, "%h", 2) == 0) if (strncmp (path, "%h", 2) == 0)
{ {
@@ -1637,7 +1638,7 @@ string_mask_to_regex (const char *mask)
* Format of flags is: (?eins-eins)string * Format of flags is: (?eins-eins)string
* Flags are: * Flags are:
* e: POSIX extended regex (REG_EXTENDED) * e: POSIX extended regex (REG_EXTENDED)
* i: case-insensitive (REG_ICASE) * i: case insensitive (REG_ICASE)
* n: match-any-character operators don't match a newline (REG_NEWLINE) * n: match-any-character operators don't match a newline (REG_NEWLINE)
* s: support for substring addressing of matches is not required (REG_NOSUB) * s: support for substring addressing of matches is not required (REG_NOSUB)
* *
@@ -2977,7 +2978,7 @@ string_split_command (const char *command, char separator)
buffer[str_idx] = '\0'; buffer[str_idx] = '\0';
str_idx = -1; str_idx = -1;
p = buffer; p = buffer;
/* strip white spaces at the beginning of the line */ /* strip white spaces a the beginning of the line */
while (*p == ' ') p++; while (*p == ' ') p++;
if (p && p[0]) if (p && p[0])
array[arr_idx++] = strdup (p); array[arr_idx++] = strdup (p);
@@ -3253,8 +3254,7 @@ string_iconv_to_internal (const char *charset, const char *string)
} }
/* /*
* Converts internal string to terminal charset, for display or write of * Converts internal string to terminal charset, for display.
* configuration files.
* *
* Note: result must be freed after use. * Note: result must be freed after use.
*/ */
@@ -3271,10 +3271,6 @@ string_iconv_from_internal (const char *charset, const char *string)
if (!input) if (!input)
return NULL; return NULL;
/* if the locale is wrong, we keep UTF-8 */
if (!weechat_locale_ok)
return input;
/* /*
* optimized for UTF-8: if charset is NULL => we use term charset => if * optimized for UTF-8: if charset is NULL => we use term charset => if
* this charset is already UTF-8, then no iconv is needed * this charset is already UTF-8, then no iconv is needed
@@ -4249,7 +4245,7 @@ string_levenshtein (const char *string1, const char *string2,
* *
* If allow_escape == 1, the prefix/suffix can be escaped with a backslash * If allow_escape == 1, the prefix/suffix can be escaped with a backslash
* (which is then omitted in the result). * (which is then omitted in the result).
* If allow_escape == 0, the backslash is kept as-is and cannot be * If allow_escape == 0, the backslash is kept as-is and can not be
* used to escape the prefix/suffix. * used to escape the prefix/suffix.
* *
* Argument "list_prefix_no_replace" is a list to prevent replacements in * Argument "list_prefix_no_replace" is a list to prevent replacements in
@@ -4632,8 +4628,8 @@ string_shared_free (const char *string)
* *
* The string returned can be used with following restrictions: * The string returned can be used with following restrictions:
* - changes are allowed in the string, between the first char and the final * - changes are allowed in the string, between the first char and the final
* '\0', which must remain at its current location, * '\0', which must not be removed nor moved,
* - no other '\0' may be added in the string, * - no other '\0' must be added in the string,
* - content can be added in the string with function string_dyn_concat(), * - content can be added in the string with function string_dyn_concat(),
* - string can be freed with function string_dyn_free() (do NEVER call * - string can be freed with function string_dyn_free() (do NEVER call
* directly free() on the string). * directly free() on the string).
+1 -1
View File
@@ -147,7 +147,7 @@ extern int string_levenshtein (const char *string1, const char *string2,
extern char *string_replace_with_callback (const char *string, extern char *string_replace_with_callback (const char *string,
const char *prefix, const char *prefix,
const char *suffix, const char *suffix,
int allow_escape, int allow_escpae,
const char **list_prefix_no_replace, const char **list_prefix_no_replace,
char *(*callback)(void *data, char *(*callback)(void *data,
const char *prefix, const char *prefix,
+302 -16
View File
@@ -54,12 +54,18 @@ char *url_type_string[] = { "string", "long", "long long", "mask", "list" };
struct t_url_constant url_proxy_types[] = struct t_url_constant url_proxy_types[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070A00 /* 7.10.0 */
URL_DEF_CONST(PROXY, HTTP), URL_DEF_CONST(PROXY, HTTP),
URL_DEF_CONST(PROXY, SOCKS4), URL_DEF_CONST(PROXY, SOCKS4),
URL_DEF_CONST(PROXY, SOCKS5), URL_DEF_CONST(PROXY, SOCKS5),
#endif
#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */
URL_DEF_CONST(PROXY, SOCKS4A), URL_DEF_CONST(PROXY, SOCKS4A),
URL_DEF_CONST(PROXY, SOCKS5_HOSTNAME), URL_DEF_CONST(PROXY, SOCKS5_HOSTNAME),
#endif
#if LIBCURL_VERSION_NUM >= 0x071304 /* 7.19.4 */
URL_DEF_CONST(PROXY, HTTP_1_0), URL_DEF_CONST(PROXY, HTTP_1_0),
#endif
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */ #if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
URL_DEF_CONST(PROXY, HTTPS), URL_DEF_CONST(PROXY, HTTPS),
#endif #endif
@@ -68,6 +74,7 @@ struct t_url_constant url_proxy_types[] =
struct t_url_constant url_protocols[] = struct t_url_constant url_protocols[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071304 /* 7.19.4 */
URL_DEF_CONST(PROTO, HTTP), URL_DEF_CONST(PROTO, HTTP),
URL_DEF_CONST(PROTO, HTTPS), URL_DEF_CONST(PROTO, HTTPS),
URL_DEF_CONST(PROTO, FTP), URL_DEF_CONST(PROTO, FTP),
@@ -81,6 +88,8 @@ struct t_url_constant url_protocols[] =
URL_DEF_CONST(PROTO, FILE), URL_DEF_CONST(PROTO, FILE),
URL_DEF_CONST(PROTO, TFTP), URL_DEF_CONST(PROTO, TFTP),
URL_DEF_CONST(PROTO, ALL), URL_DEF_CONST(PROTO, ALL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071400 /* 7.20.0 */
URL_DEF_CONST(PROTO, IMAP), URL_DEF_CONST(PROTO, IMAP),
URL_DEF_CONST(PROTO, IMAPS), URL_DEF_CONST(PROTO, IMAPS),
URL_DEF_CONST(PROTO, POP3), URL_DEF_CONST(PROTO, POP3),
@@ -88,15 +97,22 @@ struct t_url_constant url_protocols[] =
URL_DEF_CONST(PROTO, SMTP), URL_DEF_CONST(PROTO, SMTP),
URL_DEF_CONST(PROTO, SMTPS), URL_DEF_CONST(PROTO, SMTPS),
URL_DEF_CONST(PROTO, RTSP), URL_DEF_CONST(PROTO, RTSP),
#endif
#if LIBCURL_VERSION_NUM >= 0x071500 /* 7.21.0 */
URL_DEF_CONST(PROTO, RTMP), URL_DEF_CONST(PROTO, RTMP),
URL_DEF_CONST(PROTO, RTMPT), URL_DEF_CONST(PROTO, RTMPT),
URL_DEF_CONST(PROTO, RTMPE), URL_DEF_CONST(PROTO, RTMPE),
URL_DEF_CONST(PROTO, RTMPTE), URL_DEF_CONST(PROTO, RTMPTE),
URL_DEF_CONST(PROTO, RTMPS), URL_DEF_CONST(PROTO, RTMPS),
URL_DEF_CONST(PROTO, RTMPTS), URL_DEF_CONST(PROTO, RTMPTS),
#endif
#if LIBCURL_VERSION_NUM >= 0x071502 /* 7.21.2 */
URL_DEF_CONST(PROTO, GOPHER), URL_DEF_CONST(PROTO, GOPHER),
#endif
#if LIBCURL_VERSION_NUM >= 0x072800 /* 7.40.0 */
URL_DEF_CONST(PROTO, SMB), URL_DEF_CONST(PROTO, SMB),
URL_DEF_CONST(PROTO, SMBS), URL_DEF_CONST(PROTO, SMBS),
#endif
#if LIBCURL_VERSION_NUM >= 0x074700 /* 7.71.0 */ #if LIBCURL_VERSION_NUM >= 0x074700 /* 7.71.0 */
URL_DEF_CONST(PROTO, MQTT), URL_DEF_CONST(PROTO, MQTT),
#endif #endif
@@ -108,26 +124,39 @@ struct t_url_constant url_protocols[] =
struct t_url_constant url_netrc[] = struct t_url_constant url_netrc[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070908 /* 7.9.8 */
URL_DEF_CONST(_NETRC, IGNORED), URL_DEF_CONST(_NETRC, IGNORED),
URL_DEF_CONST(_NETRC, OPTIONAL), URL_DEF_CONST(_NETRC, OPTIONAL),
URL_DEF_CONST(_NETRC, REQUIRED), URL_DEF_CONST(_NETRC, REQUIRED),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_auth[] = struct t_url_constant url_auth[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070A06 /* 7.10.6 */
URL_DEF_CONST(AUTH, NONE), URL_DEF_CONST(AUTH, NONE),
URL_DEF_CONST(AUTH, BASIC), URL_DEF_CONST(AUTH, BASIC),
URL_DEF_CONST(AUTH, DIGEST), URL_DEF_CONST(AUTH, DIGEST),
URL_DEF_CONST(AUTH, NTLM), URL_DEF_CONST(AUTH, NTLM),
URL_DEF_CONST(AUTH, ANY), URL_DEF_CONST(AUTH, ANY),
URL_DEF_CONST(AUTH, ANYSAFE), URL_DEF_CONST(AUTH, ANYSAFE),
#endif
#if LIBCURL_VERSION_NUM >= 0x071303 /* 7.19.3 */
URL_DEF_CONST(AUTH, DIGEST_IE), URL_DEF_CONST(AUTH, DIGEST_IE),
#endif
#if LIBCURL_VERSION_NUM >= 0x071503 /* 7.21.3 */
URL_DEF_CONST(AUTH, ONLY), URL_DEF_CONST(AUTH, ONLY),
#if LIBCURL_VERSION_NUM < 0x080800 /* < 8.8.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x071600 && LIBCURL_VERSION_NUM < 0x080800 /* 7.22.0 < 8.8.0 */
URL_DEF_CONST(AUTH, NTLM_WB), URL_DEF_CONST(AUTH, NTLM_WB),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x070A06 && LIBCURL_VERSION_NUM < 0x072600 /* 7.10.6 < 7.38.0 */
URL_DEF_CONST(AUTH, GSSNEGOTIATE),
#endif
#if LIBCURL_VERSION_NUM >= 0x072600 /* 7.38.0 */
URL_DEF_CONST(AUTH, NEGOTIATE), URL_DEF_CONST(AUTH, NEGOTIATE),
#endif
#if LIBCURL_VERSION_NUM >= 0x073700 /* 7.55.0 */ #if LIBCURL_VERSION_NUM >= 0x073700 /* 7.55.0 */
URL_DEF_CONST(AUTH, GSSAPI), URL_DEF_CONST(AUTH, GSSAPI),
#endif #endif
@@ -142,26 +171,38 @@ struct t_url_constant url_auth[] =
struct t_url_constant url_authtype[] = struct t_url_constant url_authtype[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071504 /* 7.21.4 */
URL_DEF_CONST(_TLSAUTH, NONE), URL_DEF_CONST(_TLSAUTH, NONE),
URL_DEF_CONST(_TLSAUTH, SRP), URL_DEF_CONST(_TLSAUTH, SRP),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_postredir[] = struct t_url_constant url_postredir[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071301 /* 7.19.1 */
URL_DEF_CONST(_REDIR, POST_301), URL_DEF_CONST(_REDIR, POST_301),
URL_DEF_CONST(_REDIR, POST_302), URL_DEF_CONST(_REDIR, POST_302),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_http_version[] = struct t_url_constant url_http_version[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070901 /* 7.9.1 */
URL_DEF_CONST(_HTTP_VERSION, NONE), URL_DEF_CONST(_HTTP_VERSION, NONE),
URL_DEF_CONST(_HTTP_VERSION, 1_0), URL_DEF_CONST(_HTTP_VERSION, 1_0),
URL_DEF_CONST(_HTTP_VERSION, 1_1), URL_DEF_CONST(_HTTP_VERSION, 1_1),
#endif
#if LIBCURL_VERSION_NUM >= 0x072100 /* 7.33.0 */
URL_DEF_CONST(_HTTP_VERSION, 2_0), URL_DEF_CONST(_HTTP_VERSION, 2_0),
#endif
#if LIBCURL_VERSION_NUM >= 0x072B00 /* 7.43.0 */
URL_DEF_CONST(_HTTP_VERSION, 2), URL_DEF_CONST(_HTTP_VERSION, 2),
#endif
#if LIBCURL_VERSION_NUM >= 0x072F00 /* 7.47.0 */
URL_DEF_CONST(_HTTP_VERSION, 2TLS), URL_DEF_CONST(_HTTP_VERSION, 2TLS),
#endif
#if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */ #if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */
URL_DEF_CONST(_HTTP_VERSION, 2_PRIOR_KNOWLEDGE), URL_DEF_CONST(_HTTP_VERSION, 2_PRIOR_KNOWLEDGE),
#endif #endif
@@ -173,30 +214,39 @@ struct t_url_constant url_http_version[] =
struct t_url_constant url_ftp_auth[] = struct t_url_constant url_ftp_auth[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070C02 /* 7.12.2 */
URL_DEF_CONST(FTPAUTH, DEFAULT), URL_DEF_CONST(FTPAUTH, DEFAULT),
URL_DEF_CONST(FTPAUTH, SSL), URL_DEF_CONST(FTPAUTH, SSL),
URL_DEF_CONST(FTPAUTH, TLS), URL_DEF_CONST(FTPAUTH, TLS),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_ftp_ssl_ccc[] = struct t_url_constant url_ftp_ssl_ccc[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071002 /* 7.16.2 */
URL_DEF_CONST(FTPSSL, CCC_NONE), URL_DEF_CONST(FTPSSL, CCC_NONE),
URL_DEF_CONST(FTPSSL, CCC_ACTIVE), URL_DEF_CONST(FTPSSL, CCC_ACTIVE),
#endif
#if LIBCURL_VERSION_NUM >= 0x071001 /* 7.16.1 */
URL_DEF_CONST(FTPSSL, CCC_PASSIVE), URL_DEF_CONST(FTPSSL, CCC_PASSIVE),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_ftp_file_method[] = struct t_url_constant url_ftp_file_method[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070F03 /* 7.15.3 */
URL_DEF_CONST(FTPMETHOD, MULTICWD), URL_DEF_CONST(FTPMETHOD, MULTICWD),
URL_DEF_CONST(FTPMETHOD, NOCWD), URL_DEF_CONST(FTPMETHOD, NOCWD),
URL_DEF_CONST(FTPMETHOD, SINGLECWD), URL_DEF_CONST(FTPMETHOD, SINGLECWD),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_rtsp_request[] = struct t_url_constant url_rtsp_request[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071400 /* 7.20.0 */
URL_DEF_CONST(_RTSPREQ, OPTIONS), URL_DEF_CONST(_RTSPREQ, OPTIONS),
URL_DEF_CONST(_RTSPREQ, DESCRIBE), URL_DEF_CONST(_RTSPREQ, DESCRIBE),
URL_DEF_CONST(_RTSPREQ, ANNOUNCE), URL_DEF_CONST(_RTSPREQ, ANNOUNCE),
@@ -208,44 +258,55 @@ struct t_url_constant url_rtsp_request[] =
URL_DEF_CONST(_RTSPREQ, SET_PARAMETER), URL_DEF_CONST(_RTSPREQ, SET_PARAMETER),
URL_DEF_CONST(_RTSPREQ, RECORD), URL_DEF_CONST(_RTSPREQ, RECORD),
URL_DEF_CONST(_RTSPREQ, RECEIVE), URL_DEF_CONST(_RTSPREQ, RECEIVE),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_time_condition[] = struct t_url_constant url_time_condition[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070907 /* 7.9.7 */
URL_DEF_CONST(_TIMECOND, NONE), URL_DEF_CONST(_TIMECOND, NONE),
URL_DEF_CONST(_TIMECOND, IFMODSINCE), URL_DEF_CONST(_TIMECOND, IFMODSINCE),
URL_DEF_CONST(_TIMECOND, IFUNMODSINCE), URL_DEF_CONST(_TIMECOND, IFUNMODSINCE),
URL_DEF_CONST(_TIMECOND, LASTMOD), URL_DEF_CONST(_TIMECOND, LASTMOD),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_ip_resolve[] = struct t_url_constant url_ip_resolve[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070A08 /* 7.10.8 */
URL_DEF_CONST(_IPRESOLVE, WHATEVER), URL_DEF_CONST(_IPRESOLVE, WHATEVER),
URL_DEF_CONST(_IPRESOLVE, V4), URL_DEF_CONST(_IPRESOLVE, V4),
URL_DEF_CONST(_IPRESOLVE, V6), URL_DEF_CONST(_IPRESOLVE, V6),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_use_ssl[] = struct t_url_constant url_use_ssl[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071100 /* 7.17.0 */
URL_DEF_CONST(USESSL, NONE), URL_DEF_CONST(USESSL, NONE),
URL_DEF_CONST(USESSL, TRY), URL_DEF_CONST(USESSL, TRY),
URL_DEF_CONST(USESSL, CONTROL), URL_DEF_CONST(USESSL, CONTROL),
URL_DEF_CONST(USESSL, ALL), URL_DEF_CONST(USESSL, ALL),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_ssl_version[] = struct t_url_constant url_ssl_version[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x070902 /* 7.9.2 */
URL_DEF_CONST(_SSLVERSION, DEFAULT), URL_DEF_CONST(_SSLVERSION, DEFAULT),
URL_DEF_CONST(_SSLVERSION, TLSv1), URL_DEF_CONST(_SSLVERSION, TLSv1),
URL_DEF_CONST(_SSLVERSION, SSLv2), URL_DEF_CONST(_SSLVERSION, SSLv2),
URL_DEF_CONST(_SSLVERSION, SSLv3), URL_DEF_CONST(_SSLVERSION, SSLv3),
#endif
#if LIBCURL_VERSION_NUM >= 0x072200 /* 7.34.0 */
URL_DEF_CONST(_SSLVERSION, TLSv1_0), URL_DEF_CONST(_SSLVERSION, TLSv1_0),
URL_DEF_CONST(_SSLVERSION, TLSv1_1), URL_DEF_CONST(_SSLVERSION, TLSv1_1),
URL_DEF_CONST(_SSLVERSION, TLSv1_2), URL_DEF_CONST(_SSLVERSION, TLSv1_2),
#endif
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */ #if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
URL_DEF_CONST(_SSLVERSION, TLSv1_3), URL_DEF_CONST(_SSLVERSION, TLSv1_3),
#endif #endif
@@ -262,8 +323,12 @@ struct t_url_constant url_ssl_version[] =
struct t_url_constant url_ssl_options[] = struct t_url_constant url_ssl_options[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071900 /* 7.25.0 */
URL_DEF_CONST(SSLOPT, ALLOW_BEAST), URL_DEF_CONST(SSLOPT, ALLOW_BEAST),
#endif
#if LIBCURL_VERSION_NUM >= 0x072C00 /* 7.44.0 */
URL_DEF_CONST(SSLOPT, NO_REVOKE), URL_DEF_CONST(SSLOPT, NO_REVOKE),
#endif
#if LIBCURL_VERSION_NUM >= 0x073800 /* 7.56.0 */ #if LIBCURL_VERSION_NUM >= 0x073800 /* 7.56.0 */
URL_DEF_CONST(SSLSET, NO_BACKENDS), URL_DEF_CONST(SSLSET, NO_BACKENDS),
URL_DEF_CONST(SSLSET, OK), URL_DEF_CONST(SSLSET, OK),
@@ -287,14 +352,17 @@ struct t_url_constant url_ssl_options[] =
struct t_url_constant url_gssapi_delegation[] = struct t_url_constant url_gssapi_delegation[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071600 /* 7.22.0 */
URL_DEF_CONST(GSSAPI_DELEGATION, NONE), URL_DEF_CONST(GSSAPI_DELEGATION, NONE),
URL_DEF_CONST(GSSAPI_DELEGATION, POLICY_FLAG), URL_DEF_CONST(GSSAPI_DELEGATION, POLICY_FLAG),
URL_DEF_CONST(GSSAPI_DELEGATION, FLAG), URL_DEF_CONST(GSSAPI_DELEGATION, FLAG),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
struct t_url_constant url_ssh_auth[] = struct t_url_constant url_ssh_auth[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x071001 /* 7.16.1 */
URL_DEF_CONST(SSH_AUTH, NONE), URL_DEF_CONST(SSH_AUTH, NONE),
URL_DEF_CONST(SSH_AUTH, PUBLICKEY), URL_DEF_CONST(SSH_AUTH, PUBLICKEY),
URL_DEF_CONST(SSH_AUTH, PASSWORD), URL_DEF_CONST(SSH_AUTH, PASSWORD),
@@ -302,7 +370,10 @@ struct t_url_constant url_ssh_auth[] =
URL_DEF_CONST(SSH_AUTH, KEYBOARD), URL_DEF_CONST(SSH_AUTH, KEYBOARD),
URL_DEF_CONST(SSH_AUTH, DEFAULT), URL_DEF_CONST(SSH_AUTH, DEFAULT),
URL_DEF_CONST(SSH_AUTH, ANY), URL_DEF_CONST(SSH_AUTH, ANY),
#endif
#if LIBCURL_VERSION_NUM >= 0x071C00 /* 7.28.0 */
URL_DEF_CONST(SSH_AUTH, AGENT), URL_DEF_CONST(SSH_AUTH, AGENT),
#endif
#if LIBCURL_VERSION_NUM >= 0x073A00 /* 7.58.0 */ #if LIBCURL_VERSION_NUM >= 0x073A00 /* 7.58.0 */
URL_DEF_CONST(SSH_AUTH, GSSAPI), URL_DEF_CONST(SSH_AUTH, GSSAPI),
#endif #endif
@@ -311,8 +382,10 @@ struct t_url_constant url_ssh_auth[] =
struct t_url_constant url_header[] = struct t_url_constant url_header[] =
{ {
#if LIBCURL_VERSION_NUM >= 0x072500 /* 7.37.0 */
URL_DEF_CONST(HEADER, UNIFIED), URL_DEF_CONST(HEADER, UNIFIED),
URL_DEF_CONST(HEADER, SEPARATE), URL_DEF_CONST(HEADER, SEPARATE),
#endif
{ NULL, 0 }, { NULL, 0 },
}; };
@@ -353,16 +426,24 @@ struct t_url_option url_options[] =
/* /*
* behavior options * behavior options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(VERBOSE, LONG, NULL), URL_DEF_OPTION(VERBOSE, LONG, NULL),
URL_DEF_OPTION(HEADER, LONG, NULL), URL_DEF_OPTION(HEADER, LONG, NULL),
URL_DEF_OPTION(NOPROGRESS, LONG, NULL), URL_DEF_OPTION(NOPROGRESS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A00 /* 7.10.0 */
URL_DEF_OPTION(NOSIGNAL, LONG, NULL), URL_DEF_OPTION(NOSIGNAL, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071500 /* 7.21.0 */
URL_DEF_OPTION(WILDCARDMATCH, LONG, NULL), URL_DEF_OPTION(WILDCARDMATCH, LONG, NULL),
#endif
/* /*
* error options * error options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(FAILONERROR, LONG, NULL), URL_DEF_OPTION(FAILONERROR, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073300 /* 7.51.0 */ #if LIBCURL_VERSION_NUM >= 0x073300 /* 7.51.0 */
URL_DEF_OPTION(KEEP_SENDING_ON_ERROR, LONG, NULL), URL_DEF_OPTION(KEEP_SENDING_ON_ERROR, LONG, NULL),
#endif #endif
@@ -370,41 +451,67 @@ struct t_url_option url_options[] =
/* /*
* network options * network options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(PROXY, STRING, NULL), URL_DEF_OPTION(PROXY, STRING, NULL),
URL_DEF_OPTION(PROXYPORT, LONG, NULL), URL_DEF_OPTION(PROXYPORT, LONG, NULL),
URL_DEF_OPTION(PORT, LONG, NULL), URL_DEF_OPTION(PORT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */ #if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
URL_DEF_OPTION(PRE_PROXY, STRING, NULL), URL_DEF_OPTION(PRE_PROXY, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x070300 /* 7.3.0 */
URL_DEF_OPTION(HTTPPROXYTUNNEL, LONG, NULL), URL_DEF_OPTION(HTTPPROXYTUNNEL, LONG, NULL),
URL_DEF_OPTION(INTERFACE, STRING, NULL), URL_DEF_OPTION(INTERFACE, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070903 /* 7.9.3 */
URL_DEF_OPTION(DNS_CACHE_TIMEOUT, LONG, NULL), URL_DEF_OPTION(DNS_CACHE_TIMEOUT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A00 /* 7.10.0 */
URL_DEF_OPTION(PROXYTYPE, LONG, url_proxy_types), URL_DEF_OPTION(PROXYTYPE, LONG, url_proxy_types),
URL_DEF_OPTION(BUFFERSIZE, LONG, NULL), URL_DEF_OPTION(BUFFERSIZE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070B02 /* 7.11.2 */
URL_DEF_OPTION(TCP_NODELAY, LONG, NULL), URL_DEF_OPTION(TCP_NODELAY, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F02 /* 7.15.2 */
URL_DEF_OPTION(LOCALPORT, LONG, NULL), URL_DEF_OPTION(LOCALPORT, LONG, NULL),
URL_DEF_OPTION(LOCALPORTRANGE, LONG, NULL), URL_DEF_OPTION(LOCALPORTRANGE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071300 /* 7.19.0 */
URL_DEF_OPTION(ADDRESS_SCOPE, LONG, NULL), URL_DEF_OPTION(ADDRESS_SCOPE, LONG, NULL),
#if LIBCURL_VERSION_NUM < 0x075500 /* < 7.85.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM < 0x075500 /* 7.19.4 < 7.85.0 */
URL_DEF_OPTION(PROTOCOLS, MASK, url_protocols), URL_DEF_OPTION(PROTOCOLS, MASK, url_protocols),
#endif #endif
#if LIBCURL_VERSION_NUM < 0x075500 /* < 7.85.0 */ #if LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM < 0x075500 /* 7.19.4 < 7.85.0 */
URL_DEF_OPTION(REDIR_PROTOCOLS, MASK, url_protocols), URL_DEF_OPTION(REDIR_PROTOCOLS, MASK, url_protocols),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x071304 /* 7.19.4 */
URL_DEF_OPTION(NOPROXY, STRING, NULL), URL_DEF_OPTION(NOPROXY, STRING, NULL),
URL_DEF_OPTION(SOCKS5_GSSAPI_NEC, LONG, NULL), URL_DEF_OPTION(SOCKS5_GSSAPI_NEC, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071900 /* 7.25.0 */
URL_DEF_OPTION(TCP_KEEPALIVE, LONG, NULL), URL_DEF_OPTION(TCP_KEEPALIVE, LONG, NULL),
URL_DEF_OPTION(TCP_KEEPIDLE, LONG, NULL), URL_DEF_OPTION(TCP_KEEPIDLE, LONG, NULL),
URL_DEF_OPTION(TCP_KEEPINTVL, LONG, NULL), URL_DEF_OPTION(TCP_KEEPINTVL, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072800 /* 7.40.0 */
URL_DEF_OPTION(UNIX_SOCKET_PATH, STRING, NULL), URL_DEF_OPTION(UNIX_SOCKET_PATH, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073500 /* 7.53.0 */ #if LIBCURL_VERSION_NUM >= 0x073500 /* 7.53.0 */
URL_DEF_OPTION(ABSTRACT_UNIX_SOCKET, STRING, NULL), URL_DEF_OPTION(ABSTRACT_UNIX_SOCKET, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x072A00 /* 7.42.0 */
URL_DEF_OPTION(PATH_AS_IS, LONG, NULL), URL_DEF_OPTION(PATH_AS_IS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072B00 /* 7.43.0 */
URL_DEF_OPTION(PROXY_SERVICE_NAME, STRING, NULL), URL_DEF_OPTION(PROXY_SERVICE_NAME, STRING, NULL),
URL_DEF_OPTION(SERVICE_NAME, STRING, NULL), URL_DEF_OPTION(SERVICE_NAME, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072D00 /* 7.45.0 */
URL_DEF_OPTION(DEFAULT_PROTOCOL, STRING, NULL), URL_DEF_OPTION(DEFAULT_PROTOCOL, STRING, NULL),
#if LIBCURL_VERSION_NUM < 0x073100 /* < 7.49.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM < 0x073100 /* 7.19.4 < 7.49.0 */
URL_DEF_OPTION(SOCKS5_GSSAPI_SERVICE, STRING, NULL), URL_DEF_OPTION(SOCKS5_GSSAPI_SERVICE, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */ #if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */
@@ -429,26 +536,44 @@ struct t_url_option url_options[] =
/* /*
* names and password options (authentication) * names and password options (authentication)
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(NETRC, LONG, url_netrc), URL_DEF_OPTION(NETRC, LONG, url_netrc),
URL_DEF_OPTION(USERPWD, STRING, NULL), URL_DEF_OPTION(USERPWD, STRING, NULL),
URL_DEF_OPTION(PROXYUSERPWD, STRING, NULL), URL_DEF_OPTION(PROXYUSERPWD, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A06 /* 7.10.6 */
URL_DEF_OPTION(HTTPAUTH, MASK, url_auth), URL_DEF_OPTION(HTTPAUTH, MASK, url_auth),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A07 /* 7.10.7 */
URL_DEF_OPTION(PROXYAUTH, MASK, url_auth), URL_DEF_OPTION(PROXYAUTH, MASK, url_auth),
#endif
#if LIBCURL_VERSION_NUM >= 0x070B00 /* 7.11.0 */
URL_DEF_OPTION(NETRC_FILE, STRING, NULL), URL_DEF_OPTION(NETRC_FILE, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071301 /* 7.19.1 */
URL_DEF_OPTION(USERNAME, STRING, NULL), URL_DEF_OPTION(USERNAME, STRING, NULL),
URL_DEF_OPTION(PASSWORD, STRING, NULL), URL_DEF_OPTION(PASSWORD, STRING, NULL),
URL_DEF_OPTION(PROXYUSERNAME, STRING, NULL), URL_DEF_OPTION(PROXYUSERNAME, STRING, NULL),
URL_DEF_OPTION(PROXYPASSWORD, STRING, NULL), URL_DEF_OPTION(PROXYPASSWORD, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071504 /* 7.21.4 */
URL_DEF_OPTION(TLSAUTH_TYPE, MASK, url_authtype), URL_DEF_OPTION(TLSAUTH_TYPE, MASK, url_authtype),
URL_DEF_OPTION(TLSAUTH_USERNAME, STRING, NULL), URL_DEF_OPTION(TLSAUTH_USERNAME, STRING, NULL),
URL_DEF_OPTION(TLSAUTH_PASSWORD, STRING, NULL), URL_DEF_OPTION(TLSAUTH_PASSWORD, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x074200 /* 7.66.0 */ #if LIBCURL_VERSION_NUM >= 0x074200 /* 7.66.0 */
URL_DEF_OPTION(SASL_AUTHZID, STRING, NULL), URL_DEF_OPTION(SASL_AUTHZID, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x071F00 /* 7.31.0 */
URL_DEF_OPTION(SASL_IR, LONG, NULL), URL_DEF_OPTION(SASL_IR, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072100 /* 7.33.0 */
URL_DEF_OPTION(XOAUTH2_BEARER, STRING, NULL), URL_DEF_OPTION(XOAUTH2_BEARER, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072200 /* 7.34.0 */
URL_DEF_OPTION(LOGIN_OPTIONS, STRING, NULL), URL_DEF_OPTION(LOGIN_OPTIONS, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073D00 /* 7.61.0 */ #if LIBCURL_VERSION_NUM >= 0x073D00 /* 7.61.0 */
URL_DEF_OPTION(DISALLOW_USERNAME_IN_URL, LONG, NULL), URL_DEF_OPTION(DISALLOW_USERNAME_IN_URL, LONG, NULL),
#endif #endif
@@ -456,6 +581,7 @@ struct t_url_option url_options[] =
/* /*
* HTTP options * HTTP options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(AUTOREFERER, LONG, NULL), URL_DEF_OPTION(AUTOREFERER, LONG, NULL),
URL_DEF_OPTION(FOLLOWLOCATION, LONG, NULL), URL_DEF_OPTION(FOLLOWLOCATION, LONG, NULL),
URL_DEF_OPTION(POST, LONG, NULL), URL_DEF_OPTION(POST, LONG, NULL),
@@ -465,33 +591,70 @@ struct t_url_option url_options[] =
URL_DEF_OPTION(HTTPHEADER, LIST, NULL), URL_DEF_OPTION(HTTPHEADER, LIST, NULL),
URL_DEF_OPTION(COOKIE, STRING, NULL), URL_DEF_OPTION(COOKIE, STRING, NULL),
URL_DEF_OPTION(COOKIEFILE, STRING, NULL), URL_DEF_OPTION(COOKIEFILE, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070200 /* 7.2.0 */
URL_DEF_OPTION(POSTFIELDSIZE, LONG, NULL), URL_DEF_OPTION(POSTFIELDSIZE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070500 /* 7.5.0 */
URL_DEF_OPTION(MAXREDIRS, LONG, NULL), URL_DEF_OPTION(MAXREDIRS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070801 /* 7.8.1 */
URL_DEF_OPTION(HTTPGET, LONG, NULL), URL_DEF_OPTION(HTTPGET, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070900 /* 7.9.0 */
URL_DEF_OPTION(COOKIEJAR, STRING, NULL), URL_DEF_OPTION(COOKIEJAR, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070901 /* 7.9.1 */
URL_DEF_OPTION(HTTP_VERSION, LONG, url_http_version), URL_DEF_OPTION(HTTP_VERSION, LONG, url_http_version),
#endif
#if LIBCURL_VERSION_NUM >= 0x070907 /* 7.9.7 */
URL_DEF_OPTION(COOKIESESSION, LONG, NULL), URL_DEF_OPTION(COOKIESESSION, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A03 /* 7.10.3 */
URL_DEF_OPTION(HTTP200ALIASES, LIST, NULL), URL_DEF_OPTION(HTTP200ALIASES, LIST, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A04 /* 7.10.4 */
URL_DEF_OPTION(UNRESTRICTED_AUTH, LONG, NULL), URL_DEF_OPTION(UNRESTRICTED_AUTH, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070B01 /* 7.11.1 */
URL_DEF_OPTION(POSTFIELDSIZE_LARGE, LONGLONG, NULL), URL_DEF_OPTION(POSTFIELDSIZE_LARGE, LONGLONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070E01 /* 7.14.1 */
URL_DEF_OPTION(COOKIELIST, STRING, NULL), URL_DEF_OPTION(COOKIELIST, STRING, NULL),
URL_DEF_OPTION(IGNORE_CONTENT_LENGTH, LONG, NULL), URL_DEF_OPTION(IGNORE_CONTENT_LENGTH, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071506 /* 7.21.6 */
URL_DEF_OPTION(ACCEPT_ENCODING, STRING, NULL), URL_DEF_OPTION(ACCEPT_ENCODING, STRING, NULL),
URL_DEF_OPTION(TRANSFER_ENCODING, LONG, NULL), URL_DEF_OPTION(TRANSFER_ENCODING, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071002 /* 7.16.2 */
URL_DEF_OPTION(HTTP_CONTENT_DECODING, LONG, NULL), URL_DEF_OPTION(HTTP_CONTENT_DECODING, LONG, NULL),
URL_DEF_OPTION(HTTP_TRANSFER_DECODING, LONG, NULL), URL_DEF_OPTION(HTTP_TRANSFER_DECODING, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071101 /* 7.17.1 */
URL_DEF_OPTION(COPYPOSTFIELDS, STRING, NULL), URL_DEF_OPTION(COPYPOSTFIELDS, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071301 /* 7.19.1 */
URL_DEF_OPTION(POSTREDIR, MASK, url_postredir), URL_DEF_OPTION(POSTREDIR, MASK, url_postredir),
#endif
#if LIBCURL_VERSION_NUM >= 0x072400 /* 7.36.0 */
URL_DEF_OPTION(EXPECT_100_TIMEOUT_MS, LONG, NULL), URL_DEF_OPTION(EXPECT_100_TIMEOUT_MS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072500 /* 7.37.0 */
URL_DEF_OPTION(HEADEROPT, MASK, url_header), URL_DEF_OPTION(HEADEROPT, MASK, url_header),
URL_DEF_OPTION(PROXYHEADER, LIST, NULL), URL_DEF_OPTION(PROXYHEADER, LIST, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072B00 /* 7.43.0 */
URL_DEF_OPTION(PIPEWAIT, LONG, NULL), URL_DEF_OPTION(PIPEWAIT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072E00 /* 7.46.0 */
URL_DEF_OPTION(STREAM_WEIGHT, LONG, NULL), URL_DEF_OPTION(STREAM_WEIGHT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073700 /* 7.55.0 */ #if LIBCURL_VERSION_NUM >= 0x073700 /* 7.55.0 */
URL_DEF_OPTION(REQUEST_TARGET, STRING, NULL), URL_DEF_OPTION(REQUEST_TARGET, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM < 0x073800 /* < 7.56.0 */ #if LIBCURL_VERSION_NUM >= 0x070100 && LIBCURL_VERSION_NUM < 0x073800 /* 7.1.0 < 7.56.0 */
URL_DEF_OPTION(HTTPPOST, LIST, NULL), URL_DEF_OPTION(HTTPPOST, LIST, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x074000 /* 7.64.0 */ #if LIBCURL_VERSION_NUM >= 0x074000 /* 7.64.0 */
URL_DEF_OPTION(HTTP09_ALLOWED, LONG, NULL), URL_DEF_OPTION(HTTP09_ALLOWED, LONG, NULL),
@@ -504,20 +667,23 @@ struct t_url_option url_options[] =
/* /*
* SMTP options * SMTP options
*/ */
#if LIBCURL_VERSION_NUM >= 0x071400 /* 7.20.0 */
URL_DEF_OPTION(MAIL_FROM, STRING, NULL), URL_DEF_OPTION(MAIL_FROM, STRING, NULL),
URL_DEF_OPTION(MAIL_RCPT, LIST, NULL), URL_DEF_OPTION(MAIL_RCPT, LIST, NULL),
URL_DEF_OPTION(MAIL_AUTH, STRING, NULL),
#if LIBCURL_VERSION_NUM >= 0x074500 && LIBCURL_VERSION_NUM < 0x080200 /* 7.69.0 < 8.2.0 */
URL_DEF_OPTION(MAIL_RCPT_ALLLOWFAILS, LONG, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x080200 /* 8.2.0 */ #if LIBCURL_VERSION_NUM >= 0x071900 /* 7.25.0 */
URL_DEF_OPTION(MAIL_RCPT_ALLOWFAILS, LONG, NULL), URL_DEF_OPTION(MAIL_AUTH, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x074500 /* 7.69.0 */
URL_DEF_OPTION(MAIL_RCPT_ALLLOWFAILS, LONG, NULL),
#endif #endif
/* /*
* TFTP options * TFTP options
*/ */
#if LIBCURL_VERSION_NUM >= 0x071304 /* 7.19.4 */
URL_DEF_OPTION(TFTP_BLKSIZE, LONG, NULL), URL_DEF_OPTION(TFTP_BLKSIZE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073000 /* 7.48.0 */ #if LIBCURL_VERSION_NUM >= 0x073000 /* 7.48.0 */
URL_DEF_OPTION(TFTP_NO_OPTIONS, LONG, NULL), URL_DEF_OPTION(TFTP_NO_OPTIONS, LONG, NULL),
#endif #endif
@@ -525,35 +691,63 @@ struct t_url_option url_options[] =
/* /*
* FTP options * FTP options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(FTPPORT, STRING, NULL), URL_DEF_OPTION(FTPPORT, STRING, NULL),
URL_DEF_OPTION(QUOTE, LIST, NULL), URL_DEF_OPTION(QUOTE, LIST, NULL),
URL_DEF_OPTION(POSTQUOTE, LIST, NULL), URL_DEF_OPTION(POSTQUOTE, LIST, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070902 /* 7.9.2 */
URL_DEF_OPTION(FTP_USE_EPSV, LONG, NULL), URL_DEF_OPTION(FTP_USE_EPSV, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070905 /* 7.9.5 */
URL_DEF_OPTION(PREQUOTE, LIST, NULL), URL_DEF_OPTION(PREQUOTE, LIST, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A05 /* 7.10.5 */
URL_DEF_OPTION(FTP_USE_EPRT, LONG, NULL), URL_DEF_OPTION(FTP_USE_EPRT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A07 /* 7.10.7 */
URL_DEF_OPTION(FTP_CREATE_MISSING_DIRS, LONG, NULL), URL_DEF_OPTION(FTP_CREATE_MISSING_DIRS, LONG, NULL),
#if LIBCURL_VERSION_NUM < 0x075500 /* < 7.85.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x070A08 && LIBCURL_VERSION_NUM < 0x075500 /* 7.10.8 < 7.85.0 */
URL_DEF_OPTION(FTP_RESPONSE_TIMEOUT, LONG, NULL), URL_DEF_OPTION(FTP_RESPONSE_TIMEOUT, LONG, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x070C02 /* 7.12.2 */
URL_DEF_OPTION(FTPSSLAUTH, LONG, url_ftp_auth), URL_DEF_OPTION(FTPSSLAUTH, LONG, url_ftp_auth),
#endif
#if LIBCURL_VERSION_NUM >= 0x070D00 /* 7.13.0 */
URL_DEF_OPTION(FTP_ACCOUNT, STRING, NULL), URL_DEF_OPTION(FTP_ACCOUNT, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F00 /* 7.15.0 */
URL_DEF_OPTION(FTP_SKIP_PASV_IP, LONG, NULL), URL_DEF_OPTION(FTP_SKIP_PASV_IP, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F01 /* 7.15.1 */
URL_DEF_OPTION(FTP_FILEMETHOD, LONG, url_ftp_file_method), URL_DEF_OPTION(FTP_FILEMETHOD, LONG, url_ftp_file_method),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F05 /* 7.15.5 */
URL_DEF_OPTION(FTP_ALTERNATIVE_TO_USER, STRING, NULL), URL_DEF_OPTION(FTP_ALTERNATIVE_TO_USER, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071001 /* 7.16.1 */
URL_DEF_OPTION(FTP_SSL_CCC, LONG, url_ftp_ssl_ccc), URL_DEF_OPTION(FTP_SSL_CCC, LONG, url_ftp_ssl_ccc),
#endif
#if LIBCURL_VERSION_NUM >= 0x071100 /* 7.17.0 */
URL_DEF_OPTION(DIRLISTONLY, LONG, NULL), URL_DEF_OPTION(DIRLISTONLY, LONG, NULL),
URL_DEF_OPTION(APPEND, LONG, NULL), URL_DEF_OPTION(APPEND, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071400 /* 7.20.0 */
URL_DEF_OPTION(FTP_USE_PRET, LONG, NULL), URL_DEF_OPTION(FTP_USE_PRET, LONG, NULL),
#endif
/* /*
* RTSP options * RTSP options
*/ */
#if LIBCURL_VERSION_NUM >= 0x071400 /* 7.20.0 */
URL_DEF_OPTION(RTSP_REQUEST, LONG, url_rtsp_request), URL_DEF_OPTION(RTSP_REQUEST, LONG, url_rtsp_request),
URL_DEF_OPTION(RTSP_SESSION_ID, STRING, NULL), URL_DEF_OPTION(RTSP_SESSION_ID, STRING, NULL),
URL_DEF_OPTION(RTSP_STREAM_URI, STRING, NULL), URL_DEF_OPTION(RTSP_STREAM_URI, STRING, NULL),
URL_DEF_OPTION(RTSP_TRANSPORT, STRING, NULL), URL_DEF_OPTION(RTSP_TRANSPORT, STRING, NULL),
URL_DEF_OPTION(RTSP_CLIENT_CSEQ, LONG, NULL), URL_DEF_OPTION(RTSP_CLIENT_CSEQ, LONG, NULL),
URL_DEF_OPTION(RTSP_SERVER_CSEQ, LONG, NULL), URL_DEF_OPTION(RTSP_SERVER_CSEQ, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x074B00 /* 7.75.0 */ #if LIBCURL_VERSION_NUM >= 0x074B00 /* 7.75.0 */
URL_DEF_OPTION(AWS_SIGV4, STRING, NULL), URL_DEF_OPTION(AWS_SIGV4, STRING, NULL),
#endif #endif
@@ -561,6 +755,7 @@ struct t_url_option url_options[] =
/* /*
* protocol options * protocol options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(CRLF, LONG, NULL), URL_DEF_OPTION(CRLF, LONG, NULL),
URL_DEF_OPTION(RANGE, STRING, NULL), URL_DEF_OPTION(RANGE, STRING, NULL),
URL_DEF_OPTION(RESUME_FROM, LONG, NULL), URL_DEF_OPTION(RESUME_FROM, LONG, NULL),
@@ -570,13 +765,24 @@ struct t_url_option url_options[] =
URL_DEF_OPTION(UPLOAD, LONG, NULL), URL_DEF_OPTION(UPLOAD, LONG, NULL),
URL_DEF_OPTION(TIMECONDITION, LONG, url_time_condition), URL_DEF_OPTION(TIMECONDITION, LONG, url_time_condition),
URL_DEF_OPTION(TIMEVALUE, LONG, NULL), URL_DEF_OPTION(TIMEVALUE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070101 /* 7.1.1 */
URL_DEF_OPTION(TRANSFERTEXT, LONG, NULL), URL_DEF_OPTION(TRANSFERTEXT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070500 /* 7.5.0 */
URL_DEF_OPTION(FILETIME, LONG, NULL), URL_DEF_OPTION(FILETIME, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A08 /* 7.10.8 */
URL_DEF_OPTION(MAXFILESIZE, LONG, NULL), URL_DEF_OPTION(MAXFILESIZE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */
URL_DEF_OPTION(PROXY_TRANSFER_MODE, LONG, NULL), URL_DEF_OPTION(PROXY_TRANSFER_MODE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070B00 /* 7.11.0 */
URL_DEF_OPTION(RESUME_FROM_LARGE, LONGLONG, NULL), URL_DEF_OPTION(RESUME_FROM_LARGE, LONGLONG, NULL),
URL_DEF_OPTION(INFILESIZE_LARGE, LONGLONG, NULL), URL_DEF_OPTION(INFILESIZE_LARGE, LONGLONG, NULL),
URL_DEF_OPTION(MAXFILESIZE_LARGE, LONGLONG, NULL), URL_DEF_OPTION(MAXFILESIZE_LARGE, LONGLONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073B00 /* 7.59.0 */ #if LIBCURL_VERSION_NUM >= 0x073B00 /* 7.59.0 */
URL_DEF_OPTION(TIMEVALUE_LARGE, LONGLONG, NULL), URL_DEF_OPTION(TIMEVALUE_LARGE, LONGLONG, NULL),
#endif #endif
@@ -590,29 +796,51 @@ struct t_url_option url_options[] =
/* /*
* connection options * connection options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(TIMEOUT, LONG, NULL), URL_DEF_OPTION(TIMEOUT, LONG, NULL),
URL_DEF_OPTION(LOW_SPEED_LIMIT, LONG, NULL), URL_DEF_OPTION(LOW_SPEED_LIMIT, LONG, NULL),
URL_DEF_OPTION(LOW_SPEED_TIME, LONG, NULL), URL_DEF_OPTION(LOW_SPEED_TIME, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070700 /* 7.7.0 */
URL_DEF_OPTION(FRESH_CONNECT, LONG, NULL), URL_DEF_OPTION(FRESH_CONNECT, LONG, NULL),
URL_DEF_OPTION(FORBID_REUSE, LONG, NULL), URL_DEF_OPTION(FORBID_REUSE, LONG, NULL),
URL_DEF_OPTION(CONNECTTIMEOUT, LONG, NULL), URL_DEF_OPTION(CONNECTTIMEOUT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070A08 /* 7.10.8 */
URL_DEF_OPTION(IPRESOLVE, LONG, url_ip_resolve), URL_DEF_OPTION(IPRESOLVE, LONG, url_ip_resolve),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F02 /* 7.15.2 */
URL_DEF_OPTION(CONNECT_ONLY, LONG, NULL), URL_DEF_OPTION(CONNECT_ONLY, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070F05 /* 7.15.5 */
URL_DEF_OPTION(MAX_SEND_SPEED_LARGE, LONGLONG, NULL), URL_DEF_OPTION(MAX_SEND_SPEED_LARGE, LONGLONG, NULL),
URL_DEF_OPTION(MAX_RECV_SPEED_LARGE, LONGLONG, NULL), URL_DEF_OPTION(MAX_RECV_SPEED_LARGE, LONGLONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071002 /* 7.16.2 */
URL_DEF_OPTION(TIMEOUT_MS, LONG, NULL), URL_DEF_OPTION(TIMEOUT_MS, LONG, NULL),
URL_DEF_OPTION(CONNECTTIMEOUT_MS, LONG, NULL), URL_DEF_OPTION(CONNECTTIMEOUT_MS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x074100 /* 7.65.0 */ #if LIBCURL_VERSION_NUM >= 0x074100 /* 7.65.0 */
URL_DEF_OPTION(MAXAGE_CONN, LONG, NULL), URL_DEF_OPTION(MAXAGE_CONN, LONG, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x071003 /* 7.16.3 */
URL_DEF_OPTION(MAXCONNECTS, LONG, NULL), URL_DEF_OPTION(MAXCONNECTS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071100 /* 7.17.0 */
URL_DEF_OPTION(USE_SSL, LONG, url_use_ssl), URL_DEF_OPTION(USE_SSL, LONG, url_use_ssl),
#endif
#if LIBCURL_VERSION_NUM >= 0x071503 /* 7.21.3 */
URL_DEF_OPTION(RESOLVE, LIST, NULL), URL_DEF_OPTION(RESOLVE, LIST, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071800 /* 7.24.0 */
URL_DEF_OPTION(DNS_SERVERS, STRING, NULL), URL_DEF_OPTION(DNS_SERVERS, STRING, NULL),
URL_DEF_OPTION(ACCEPTTIMEOUT_MS, LONG, NULL), URL_DEF_OPTION(ACCEPTTIMEOUT_MS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072100 /* 7.33.0 */
URL_DEF_OPTION(DNS_INTERFACE, STRING, NULL), URL_DEF_OPTION(DNS_INTERFACE, STRING, NULL),
URL_DEF_OPTION(DNS_LOCAL_IP4, STRING, NULL), URL_DEF_OPTION(DNS_LOCAL_IP4, STRING, NULL),
URL_DEF_OPTION(DNS_LOCAL_IP6, STRING, NULL), URL_DEF_OPTION(DNS_LOCAL_IP6, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */ #if LIBCURL_VERSION_NUM >= 0x073100 /* 7.49.0 */
URL_DEF_OPTION(CONNECT_TO, LIST, NULL), URL_DEF_OPTION(CONNECT_TO, LIST, NULL),
#endif #endif
@@ -632,39 +860,73 @@ struct t_url_option url_options[] =
/* /*
* SSL and security options * SSL and security options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070100 /* 7.1.0 */
URL_DEF_OPTION(SSLCERT, STRING, NULL), URL_DEF_OPTION(SSLCERT, STRING, NULL),
URL_DEF_OPTION(SSLVERSION, LONG, url_ssl_version), URL_DEF_OPTION(SSLVERSION, LONG, url_ssl_version),
#endif
#if LIBCURL_VERSION_NUM >= 0x070402 /* 7.4.2 */
URL_DEF_OPTION(SSL_VERIFYPEER, LONG, NULL), URL_DEF_OPTION(SSL_VERIFYPEER, LONG, NULL),
URL_DEF_OPTION(CAINFO, STRING, NULL), URL_DEF_OPTION(CAINFO, STRING, NULL),
#if LIBCURL_VERSION_NUM < 0x075400 /* < 7.84.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x070700 && LIBCURL_VERSION_NUM < 0x075400 /* 7.7.0 < 7.84.0 */
URL_DEF_OPTION(RANDOM_FILE, STRING, NULL), URL_DEF_OPTION(RANDOM_FILE, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM < 0x075400 /* < 7.84.0 */ #if LIBCURL_VERSION_NUM >= 0x070700 && LIBCURL_VERSION_NUM < 0x075400 /* 7.7.0 < 7.84.0 */
URL_DEF_OPTION(EGDSOCKET, STRING, NULL), URL_DEF_OPTION(EGDSOCKET, STRING, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x070801 /* 7.8.1 */
URL_DEF_OPTION(SSL_VERIFYHOST, LONG, NULL), URL_DEF_OPTION(SSL_VERIFYHOST, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070900 /* 7.9.0 */
URL_DEF_OPTION(SSL_CIPHER_LIST, STRING, NULL), URL_DEF_OPTION(SSL_CIPHER_LIST, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070903 /* 7.9.3 */
URL_DEF_OPTION(SSLCERTTYPE, STRING, NULL), URL_DEF_OPTION(SSLCERTTYPE, STRING, NULL),
URL_DEF_OPTION(SSLKEY, STRING, NULL), URL_DEF_OPTION(SSLKEY, STRING, NULL),
URL_DEF_OPTION(SSLKEYTYPE, STRING, NULL), URL_DEF_OPTION(SSLKEYTYPE, STRING, NULL),
URL_DEF_OPTION(SSLENGINE, STRING, NULL), URL_DEF_OPTION(SSLENGINE, STRING, NULL),
URL_DEF_OPTION(SSLENGINE_DEFAULT, LONG, NULL), URL_DEF_OPTION(SSLENGINE_DEFAULT, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x070908 /* 7.9.8 */
URL_DEF_OPTION(CAPATH, STRING, NULL), URL_DEF_OPTION(CAPATH, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071000 /* 7.16.0 */
URL_DEF_OPTION(SSL_SESSIONID_CACHE, LONG, NULL), URL_DEF_OPTION(SSL_SESSIONID_CACHE, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071004 /* 7.16.4 */
URL_DEF_OPTION(KRBLEVEL, STRING, NULL), URL_DEF_OPTION(KRBLEVEL, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071100 /* 7.17.0 */
URL_DEF_OPTION(KEYPASSWD, STRING, NULL), URL_DEF_OPTION(KEYPASSWD, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071300 /* 7.19.0 */
URL_DEF_OPTION(ISSUERCERT, STRING, NULL), URL_DEF_OPTION(ISSUERCERT, STRING, NULL),
URL_DEF_OPTION(CRLFILE, STRING, NULL), URL_DEF_OPTION(CRLFILE, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071301 /* 7.19.1 */
URL_DEF_OPTION(CERTINFO, LONG, NULL), URL_DEF_OPTION(CERTINFO, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071600 /* 7.22.0 */
URL_DEF_OPTION(GSSAPI_DELEGATION, LONG, url_gssapi_delegation), URL_DEF_OPTION(GSSAPI_DELEGATION, LONG, url_gssapi_delegation),
#endif
#if LIBCURL_VERSION_NUM >= 0x071900 /* 7.25.0 */
URL_DEF_OPTION(SSL_OPTIONS, LONG, url_ssl_options), URL_DEF_OPTION(SSL_OPTIONS, LONG, url_ssl_options),
#endif
#if LIBCURL_VERSION_NUM >= 0x072400 /* 7.36.0 */
URL_DEF_OPTION(SSL_ENABLE_ALPN, LONG, NULL), URL_DEF_OPTION(SSL_ENABLE_ALPN, LONG, NULL),
#if LIBCURL_VERSION_NUM < 0x075600 /* < 7.86.0 */ #endif
#if LIBCURL_VERSION_NUM >= 0x072400 && LIBCURL_VERSION_NUM < 0x075600 /* 7.36.0 < 7.86.0 */
URL_DEF_OPTION(SSL_ENABLE_NPN, LONG, NULL), URL_DEF_OPTION(SSL_ENABLE_NPN, LONG, NULL),
#endif #endif
#if LIBCURL_VERSION_NUM >= 0x072700 /* 7.39.0 */
URL_DEF_OPTION(PINNEDPUBLICKEY, STRING, NULL), URL_DEF_OPTION(PINNEDPUBLICKEY, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */
URL_DEF_OPTION(SSL_VERIFYSTATUS, LONG, NULL), URL_DEF_OPTION(SSL_VERIFYSTATUS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x072A00 /* 7.42.0 */
URL_DEF_OPTION(SSL_FALSESTART, LONG, NULL), URL_DEF_OPTION(SSL_FALSESTART, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */ #if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
URL_DEF_OPTION(PROXY_CAINFO, STRING, NULL), URL_DEF_OPTION(PROXY_CAINFO, STRING, NULL),
URL_DEF_OPTION(PROXY_CAPATH, STRING, NULL), URL_DEF_OPTION(PROXY_CAPATH, STRING, NULL),
@@ -706,11 +968,17 @@ struct t_url_option url_options[] =
/* /*
* SSH options * SSH options
*/ */
#if LIBCURL_VERSION_NUM >= 0x071001 /* 7.16.1 */
URL_DEF_OPTION(SSH_AUTH_TYPES, MASK, url_gssapi_delegation), URL_DEF_OPTION(SSH_AUTH_TYPES, MASK, url_gssapi_delegation),
URL_DEF_OPTION(SSH_PUBLIC_KEYFILE, STRING, NULL), URL_DEF_OPTION(SSH_PUBLIC_KEYFILE, STRING, NULL),
URL_DEF_OPTION(SSH_PRIVATE_KEYFILE, STRING, NULL), URL_DEF_OPTION(SSH_PRIVATE_KEYFILE, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071101 /* 7.17.1 */
URL_DEF_OPTION(SSH_HOST_PUBLIC_KEY_MD5, STRING, NULL), URL_DEF_OPTION(SSH_HOST_PUBLIC_KEY_MD5, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x071306 /* 7.19.6 */
URL_DEF_OPTION(SSH_KNOWNHOSTS, STRING, NULL), URL_DEF_OPTION(SSH_KNOWNHOSTS, STRING, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x073800 /* 7.56.0 */ #if LIBCURL_VERSION_NUM >= 0x073800 /* 7.56.0 */
URL_DEF_OPTION(SSH_COMPRESSION, LONG, NULL), URL_DEF_OPTION(SSH_COMPRESSION, LONG, NULL),
#endif #endif
@@ -721,7 +989,9 @@ struct t_url_option url_options[] =
/* /*
* telnet options * telnet options
*/ */
#if LIBCURL_VERSION_NUM >= 0x070700 /* 7.7 */
URL_DEF_OPTION(TELNETOPTIONS, LIST, NULL), URL_DEF_OPTION(TELNETOPTIONS, LIST, NULL),
#endif
/* /*
* websocket options * websocket options
@@ -733,8 +1003,10 @@ struct t_url_option url_options[] =
/* /*
* other options * other options
*/ */
#if LIBCURL_VERSION_NUM >= 0x071004 /* 7.16.4 */
URL_DEF_OPTION(NEW_FILE_PERMS, LONG, NULL), URL_DEF_OPTION(NEW_FILE_PERMS, LONG, NULL),
URL_DEF_OPTION(NEW_DIRECTORY_PERMS, LONG, NULL), URL_DEF_OPTION(NEW_DIRECTORY_PERMS, LONG, NULL),
#endif
#if LIBCURL_VERSION_NUM >= 0x075700 /* 7.87.0 */ #if LIBCURL_VERSION_NUM >= 0x075700 /* 7.87.0 */
URL_DEF_OPTION(QUICK_EXIT, LONG, NULL), URL_DEF_OPTION(QUICK_EXIT, LONG, NULL),
#endif #endif
@@ -997,11 +1269,23 @@ weeurl_set_proxy (CURL *curl, struct t_proxy *proxy)
curl_easy_setopt (curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_easy_setopt (curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
break; break;
case PROXY_TYPE_SOCKS4: case PROXY_TYPE_SOCKS4:
#if LIBCURL_VERSION_NUM < 0x070A00 /* 7.10.0 */
/* proxy socks4 not supported in Curl < 7.10 */
return;
#endif /* LIBCURL_VERSION_NUM < 0x070A00 */
curl_easy_setopt (curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4); curl_easy_setopt (curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
break; break;
case PROXY_TYPE_SOCKS5: case PROXY_TYPE_SOCKS5:
#if LIBCURL_VERSION_NUM < 0x070A00 /* 7.10.0 */
/* proxy socks5 not supported in Curl < 7.10 */
return;
#endif /* LIBCURL_VERSION_NUM < 0x070A00 */
#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */
curl_easy_setopt (curl, CURLOPT_PROXYTYPE, curl_easy_setopt (curl, CURLOPT_PROXYTYPE,
CURLPROXY_SOCKS5_HOSTNAME); CURLPROXY_SOCKS5_HOSTNAME);
#else
curl_easy_setopt (curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
#endif /* LIBCURL_VERSION_NUM >= 0x071200 */
break; break;
} }
@@ -1014,6 +1298,7 @@ weeurl_set_proxy (CURL *curl, struct t_proxy *proxy)
CONFIG_INTEGER(proxy->options[PROXY_OPTION_PORT])); CONFIG_INTEGER(proxy->options[PROXY_OPTION_PORT]));
/* set username/password */ /* set username/password */
#if LIBCURL_VERSION_NUM >= 0x071301 /* 7.19.1 */
if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME]) if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])
&& CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])[0]) && CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])[0])
{ {
@@ -1026,6 +1311,7 @@ weeurl_set_proxy (CURL *curl, struct t_proxy *proxy)
curl_easy_setopt (curl, CURLOPT_PROXYPASSWORD, curl_easy_setopt (curl, CURLOPT_PROXYPASSWORD,
CONFIG_STRING(proxy->options[PROXY_OPTION_PASSWORD])); CONFIG_STRING(proxy->options[PROXY_OPTION_PASSWORD]));
} }
#endif /* LIBCURL_VERSION_NUM >= 0x071301 */
} }
/* /*
@@ -1135,7 +1421,7 @@ weeurl_download (const char *url, struct t_hashtable *options,
snprintf (url_error, sizeof (url_error), snprintf (url_error, sizeof (url_error),
(i == 0) ? (i == 0) ?
_("file \"%s\" not found") : _("file \"%s\" not found") :
_("cannot write file \"%s\""), _("can not write file \"%s\""),
url_file[i].filename); url_file[i].filename);
rc = 4; rc = 4;
goto end; goto end;
-4
View File
@@ -20,16 +20,12 @@
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>. * along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
*/ */
/* for wcwidth in wchar.h */
#define _XOPEN_SOURCE
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <wchar.h>
#include <wctype.h> #include <wctype.h>
#include "weechat.h" #include "weechat.h"
+6
View File
@@ -20,6 +20,12 @@
#ifndef WEECHAT_UTF8_H #ifndef WEECHAT_UTF8_H
#define WEECHAT_UTF8_H #define WEECHAT_UTF8_H
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#include <wchar.h>
extern int local_utf8; extern int local_utf8;
extern void utf8_init (); extern void utf8_init ();
-3
View File
@@ -616,9 +616,6 @@ util_version_number (const char *version)
int num_items, i, version_int[4], index_buf; int num_items, i, version_int[4], index_buf;
long number; long number;
if (!version || !version[0])
return 0;
items = string_split (version, ".", NULL, items = string_split (version, ".", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+2 -2
View File
@@ -788,7 +788,7 @@ hook_command_similar_get_relevance (const char *cmd1, int length_cmd1,
} }
else else
{ {
/* down-rank if no chars in common between two words */ /* malus if no chars in common between two words */
if (string_get_common_bytes_count (cmd1, cmd2) == 0) if (string_get_common_bytes_count (cmd1, cmd2) == 0)
relevance *= 2; relevance *= 2;
} }
@@ -942,7 +942,7 @@ hook_command_display_error_unknown (const char *command)
NULL, NULL,
0, GUI_FILTER_TAG_NO_FILTER, 0, GUI_FILTER_TAG_NO_FILTER,
(found_diff_case_only > 0) ? (found_diff_case_only > 0) ?
_("%sUnknown command \"%s\" (commands are case-sensitive, " _("%sUnknown command \"%s\" (commands are case sensitive, "
"type /help for help), " "type /help for help), "
"commands with similar name: %s") : "commands with similar name: %s") :
_("%sUnknown command \"%s\" (type /help for help), " _("%sUnknown command \"%s\" (type /help for help), "
+4
View File
@@ -178,7 +178,11 @@ hook_connect_gnutls_set_certificates (gnutls_session_t tls_session,
const gnutls_datum_t *req_ca, int nreq, const gnutls_datum_t *req_ca, int nreq,
const gnutls_pk_algorithm_t *pk_algos, const gnutls_pk_algorithm_t *pk_algos,
int pk_algos_len, int pk_algos_len,
#if LIBGNUTLS_VERSION_NUMBER >= 0x020b00 /* 2.11.0 */
gnutls_retr2_st *answer) gnutls_retr2_st *answer)
#else
gnutls_retr_st *answer)
#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x020b00 */
{ {
struct t_hook *ptr_hook; struct t_hook *ptr_hook;
int rc; int rc;
+8
View File
@@ -41,7 +41,11 @@ typedef int (gnutls_callback_t)(const void *pointer, void *data,
const gnutls_datum_t *req_ca, int nreq, const gnutls_datum_t *req_ca, int nreq,
const gnutls_pk_algorithm_t *pk_algos, const gnutls_pk_algorithm_t *pk_algos,
int pk_algos_len, int pk_algos_len,
#if LIBGNUTLS_VERSION_NUMBER >= 0x020b00 /* 2.11.0 */
gnutls_retr2_st *answer, gnutls_retr2_st *answer,
#else
gnutls_retr_st *answer,
#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x020b00 */
int action); int action);
struct t_hook_connect struct t_hook_connect
@@ -90,7 +94,11 @@ extern int hook_connect_gnutls_set_certificates (gnutls_session_t tls_session,
const gnutls_datum_t *req_ca, int nreq, const gnutls_datum_t *req_ca, int nreq,
const gnutls_pk_algorithm_t *pk_algos, const gnutls_pk_algorithm_t *pk_algos,
int pk_algos_len, int pk_algos_len,
#if LIBGNUTLS_VERSION_NUMBER >= 0x020b00 /* 2.11.0 */
gnutls_retr2_st *answer); gnutls_retr2_st *answer);
#else
gnutls_retr_st *answer);
#endif /* LIBGNUTLS_VERSION_NUMBER >= 0x020b00 */
extern void hook_connect_free_data (struct t_hook *hook); extern void hook_connect_free_data (struct t_hook *hook);
extern int hook_connect_add_to_infolist (struct t_infolist_item *item, extern int hook_connect_add_to_infolist (struct t_infolist_item *item,
struct t_hook *hook); struct t_hook *hook);
+2 -18
View File
@@ -32,7 +32,6 @@
#include "../core-log.h" #include "../core-log.h"
#include "../core-string.h" #include "../core-string.h"
#include "../../plugins/plugin.h" #include "../../plugins/plugin.h"
#include "hook-signal.h"
/* /*
@@ -131,19 +130,10 @@ hook_hsignal_send (const char *signal, struct t_hashtable *hashtable)
{ {
struct t_hook *ptr_hook, *next_hook; struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb; struct t_hook_exec_cb hook_exec_cb;
const char *ptr_signal; int rc;
int rc, stop_on_error, ignore_eat;
rc = WEECHAT_RC_OK; rc = WEECHAT_RC_OK;
ptr_signal = signal;
stop_on_error = 0;
ignore_eat = 0;
hook_signal_extract_flags (signal, &ptr_signal,
&stop_on_error, &ignore_eat);
if (!ptr_signal)
return rc;
hook_exec_start (); hook_exec_start ();
ptr_hook = weechat_hooks[HOOK_TYPE_HSIGNAL]; ptr_hook = weechat_hooks[HOOK_TYPE_HSIGNAL];
@@ -163,14 +153,8 @@ hook_hsignal_send (const char *signal, struct t_hashtable *hashtable)
hashtable); hashtable);
hook_callback_end (ptr_hook, &hook_exec_cb); hook_callback_end (ptr_hook, &hook_exec_cb);
if (ignore_eat && (rc == WEECHAT_RC_OK_EAT)) if (rc == WEECHAT_RC_OK_EAT)
rc = WEECHAT_RC_OK;
if ((rc == WEECHAT_RC_OK_EAT)
|| (stop_on_error && (rc == WEECHAT_RC_ERROR)))
{
break; break;
}
} }
ptr_hook = next_hook; ptr_hook = next_hook;
+4 -70
View File
@@ -121,57 +121,6 @@ hook_signal_match (const char *signal, struct t_hook *hook)
return 0; return 0;
} }
/*
* Extracts flags from signal and returns flags and pointer to start of signal.
*/
void
hook_signal_extract_flags (const char *signal, const char **ptr_signal,
int *stop_on_error, int *ignore_eat)
{
char *pos, *str_flags, **flags;
int i, num_flags;
if (!signal || !ptr_signal || !stop_on_error || !ignore_eat)
return;
*ptr_signal = signal;
*stop_on_error = 0;
*ignore_eat = 0;
if (strncmp (signal, "[flags:", 7) != 0)
return;
pos = strchr (signal + 7, ']');
if (!pos)
return;
str_flags = string_strndup (signal + 7, pos - signal - 7);
if (!str_flags)
return;
*ptr_signal = pos + 1;
flags = string_split (str_flags, ",", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0, &num_flags);
if (flags)
{
for (i = 0; i < num_flags; i++)
{
if (string_strcmp (flags[i], "stop_on_error") == 0)
*stop_on_error = 1;
else if (string_strcmp (flags[i], "ignore_eat") == 0)
*ignore_eat = 1;
}
}
string_free_split (flags);
free (str_flags);
}
/* /*
* Sends a signal. * Sends a signal.
*/ */
@@ -181,19 +130,10 @@ hook_signal_send (const char *signal, const char *type_data, void *signal_data)
{ {
struct t_hook *ptr_hook, *next_hook; struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb; struct t_hook_exec_cb hook_exec_cb;
const char *ptr_signal; int rc;
int rc, stop_on_error, ignore_eat;
rc = WEECHAT_RC_OK; rc = WEECHAT_RC_OK;
ptr_signal = signal;
stop_on_error = 0;
ignore_eat = 0;
hook_signal_extract_flags (signal, &ptr_signal,
&stop_on_error, &ignore_eat);
if (!ptr_signal)
return rc;
hook_exec_start (); hook_exec_start ();
ptr_hook = weechat_hooks[HOOK_TYPE_SIGNAL]; ptr_hook = weechat_hooks[HOOK_TYPE_SIGNAL];
@@ -203,25 +143,19 @@ hook_signal_send (const char *signal, const char *type_data, void *signal_data)
if (!ptr_hook->deleted if (!ptr_hook->deleted
&& !ptr_hook->running && !ptr_hook->running
&& hook_signal_match (ptr_signal, ptr_hook)) && hook_signal_match (signal, ptr_hook))
{ {
hook_callback_start (ptr_hook, &hook_exec_cb); hook_callback_start (ptr_hook, &hook_exec_cb);
rc = (HOOK_SIGNAL(ptr_hook, callback)) rc = (HOOK_SIGNAL(ptr_hook, callback))
(ptr_hook->callback_pointer, (ptr_hook->callback_pointer,
ptr_hook->callback_data, ptr_hook->callback_data,
ptr_signal, signal,
type_data, type_data,
signal_data); signal_data);
hook_callback_end (ptr_hook, &hook_exec_cb); hook_callback_end (ptr_hook, &hook_exec_cb);
if (ignore_eat && (rc == WEECHAT_RC_OK_EAT)) if (rc == WEECHAT_RC_OK_EAT)
rc = WEECHAT_RC_OK;
if ((rc == WEECHAT_RC_OK_EAT)
|| (stop_on_error && (rc == WEECHAT_RC_ERROR)))
{
break; break;
}
} }
ptr_hook = next_hook; ptr_hook = next_hook;
-4
View File
@@ -44,10 +44,6 @@ extern struct t_hook *hook_signal (struct t_weechat_plugin *plugin,
t_hook_callback_signal *callback, t_hook_callback_signal *callback,
const void *callback_pointer, const void *callback_pointer,
void *callback_data); void *callback_data);
extern void hook_signal_extract_flags (const char *signal,
const char **ptr_signal,
int *stop_on_error,
int *ignore_eat);
extern int hook_signal_send (const char *signal, const char *type_data, extern int hook_signal_send (const char *signal, const char *type_data,
void *signal_data); void *signal_data);
extern void hook_signal_free_data (struct t_hook *hook); extern void hook_signal_free_data (struct t_hook *hook);
+1 -1
View File
@@ -105,7 +105,7 @@ hook_url_run_callback (struct t_hook *hook)
} }
/* /*
* Thread cleanup function: mark thread as not running anymore. * Thread cleanup function: mark thread as not running any more.
*/ */
void void
-1
View File
@@ -118,7 +118,6 @@ extern char *weechat_data_dir;
extern char *weechat_state_dir; extern char *weechat_state_dir;
extern char *weechat_cache_dir; extern char *weechat_cache_dir;
extern char *weechat_runtime_dir; extern char *weechat_runtime_dir;
extern int weechat_locale_ok;
extern char *weechat_local_charset; extern char *weechat_local_charset;
extern int weechat_plugin_no_dlclose; extern int weechat_plugin_no_dlclose;
extern int weechat_no_gnutls; extern int weechat_no_gnutls;
+2 -1
View File
@@ -43,7 +43,8 @@ set(LIB_GUI_COMMON_SRC
) )
include_directories("${CMAKE_BINARY_DIR}") include_directories("${CMAKE_BINARY_DIR}")
add_library(weechat_gui_common OBJECT ${LIB_GUI_COMMON_SRC}) add_library(weechat_gui_common STATIC ${LIB_GUI_COMMON_SRC})
target_link_libraries(weechat_gui_common coverage_config) target_link_libraries(weechat_gui_common coverage_config)
list(APPEND STATIC_LIBS weechat_gui_common)
subdirs(curses) subdirs(curses)
+2
View File
@@ -45,6 +45,8 @@ endif()
list(APPEND EXTRA_LIBS "m") list(APPEND EXTRA_LIBS "m")
list(APPEND EXTRA_LIBS ${CURL_LIBRARIES})
list(APPEND EXTRA_LIBS ${ZLIB_LIBRARY}) list(APPEND EXTRA_LIBS ${ZLIB_LIBRARY})
if(ENABLE_ZSTD) if(ENABLE_ZSTD)

Some files were not shown because too many files have changed in this diff Show More