Sébastien Helleu
3ca3ea32fd
irc: create server/channel/raw buffers with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:20 +02:00
Simmo Saan
3c3bb933e9
irc: optimize and reuse irc_channel_rejoin
2023-05-18 13:51:14 +02:00
Simmo Saan
6edc88f7d6
irc: use key when /join-ing in open channel buffer
2023-05-18 13:46:43 +02:00
arza
99b84a76ad
irc: start from the beginning of nicks at automatic reconnection ( closes #337 )
2023-05-17 21:42:00 +02:00
Sébastien Helleu
fbf68dcc14
irc: get value of "msg_max_length" from isupport token "LINELEN" on upgrade from WeeChat < 4.0.0 (issue #1927 )
2023-05-17 21:03:44 +02:00
Sébastien Helleu
359ec5d2db
irc: add field "utf8only" in IRC server structure
2023-05-17 20:49:27 +02:00
Valentin Lorentz
980b075ce9
irc: Implement the UTF8ONLY IRCv3 specification
...
https://ircv3.net/specs/extensions/utf8-only
2023-05-17 16:37:19 +02:00
Sébastien Helleu
1f21cdc0bd
irc: update secure data when server autojoin option contains ${sec.data.xxx} and option autojoin_dynamic is enabled ( closes #1934 )
2023-05-16 21:03:22 +02:00
Sébastien Helleu
2a3d98c996
irc: display command 437 on server buffer when nickname cannot change while banned on channel ( closes #88 )
2023-05-16 13:15:45 +02:00
Sébastien Helleu
8d35e67dd6
irc: add modifier "irc_cap_sync_req" ( closes #1767 )
2023-05-15 20:10:28 +02:00
Sébastien Helleu
d857c91a59
irc: add comments in "cap" callback
2023-05-15 20:02:45 +02:00
Sébastien Helleu
518c0e3ae3
irc: remove unused variable
2023-05-15 08:10:58 +02:00
Sébastien Helleu
20b7f406f8
irc: fix use of uninitialized variable
2023-05-15 08:10:03 +02:00
Sébastien Helleu
bd4507e99d
irc: fix format of IRC tags displayed in messages ( closes #1929 )
...
Changes:
- use "=" to separate key from value, add it only if value is set (any string,
including empty string)
- do not convert "_" to "-" in key
2023-05-14 21:25:20 +02:00
Sébastien Helleu
a6b8c95519
irc: do not display multiline message if capability "draft/multiline" is not enabled (issue #1923 )
2023-05-14 15:33:37 +02:00
Sébastien Helleu
060cb48094
irc: ignore BATCH commands when capability "batch" is not enabled (issue #1292 )
2023-05-14 15:33:30 +02:00
Sébastien Helleu
283c9d7ccf
irc: do not allow send of empty messages (single line or multiline)
2023-05-14 15:32:47 +02:00
Sébastien Helleu
c31af39ada
irc: set "input_multiline" to 1 in buffers only if capability draft/multiline is enabled (issue #1923 )
2023-05-14 15:32:43 +02:00
Sébastien Helleu
128fbe0d5b
irc: add support of "LINELEN" in message 005 (max message length in bytes) ( closes #1927 )
2023-05-14 15:32:39 +02:00
Sébastien Helleu
1116474c45
irc: reset all internal servers variables when disconnecting
2023-05-14 15:32:39 +02:00
Sébastien Helleu
176a106771
irc: add support of capability "draft/multiline" ( closes #1923 )
2023-05-14 15:32:39 +02:00
Sébastien Helleu
e8b5d73421
irc: return arraylist instead of hashtable in function irc_server_sendf (issue #1923 )
2023-05-14 15:32:35 +02:00
Sébastien Helleu
2154b440d2
irc: don't split messages on "\n" in function irc_server_sendf (issue #1923 )
...
The function now allows only a single message. Newline chars ("\n") are allowed
in messages but not used as message separator.
This is a preparation work for the support of capability "draft/multiline".
2023-05-14 15:32:26 +02:00
Sébastien Helleu
2c39906816
irc: rename constant IRC_COMMAND_CAP_SUPPORTED_COMPLETION to IRC_COMMAND_CAP_SUPPORTED
2023-05-13 19:45:10 +02:00
Sébastien Helleu
6415c09a07
core: add quotes around paths in CMake files ( closes #29 )
2023-05-13 11:59:18 +02:00
Sébastien Helleu
f6b69c9098
irc: add support of capability "batch" ( closes #1292 )
2023-05-03 22:11:31 +02:00
Sébastien Helleu
ed2ab8a6d0
irc: fix help on sort option in command /autojoin (issue #1876 )
2023-05-01 17:49:46 +02:00
Sébastien Helleu
b127bed0fc
irc: add option buffer in command /autojoin sort ( closes #1876 )
2023-05-01 17:02:51 +02:00
Sébastien Helleu
f90d8667a4
irc: add ${username} in server options "nicks" and "username", change their default values to use it
2023-04-27 22:59:24 +02:00
Sébastien Helleu
d35218e991
irc: change default colors (issue #1920 )
...
Default values changed:
- irc.color.reason_quit: default -> 244
- irc.color.topic_new: white -> 36
- irc.color.topic_old: default -> 244
2023-04-26 21:08:16 +02:00
Sébastien Helleu
6f0440e459
core: add option weechat.color.status_name_insecure (issue #1920 )
...
Default value of option weechat.color.status_name_tls is set to white instead
of lightgreen.
Now all servers/channels connected with TLS are white, and those without TLS
are lightmagenta.
2023-04-26 21:07:37 +02:00
Sébastien Helleu
e00ec6710d
irc: add message 742 (mode cannot be set)
2023-04-24 21:44:34 +02:00
Sébastien Helleu
28bb33aa5a
irc: add message 415 (cannot send message to channel)
2023-04-24 21:43:57 +02:00
Sébastien Helleu
aa1d2a709d
core: update translations (issue #1903 )
2023-04-12 17:17:52 +02:00
Sébastien Helleu
fe1ab06924
irc: improve short description of server (issue #1903 )
2023-04-12 17:17:49 +02:00
Sébastien Helleu
6e17d39adf
irc: fix URL of doc on capability negotiation (issue #1903 )
2023-04-12 17:17:46 +02:00
Sébastien Helleu
e516a0714f
irc: add support of RFC 7194 (default port 6697 for TLS) (issue #1903 )
2023-04-12 17:17:43 +02:00
Sébastien Helleu
95b30f8da5
irc: connect with TLS and port 6697 by default (issue #1903 )
2023-04-12 17:17:38 +02:00
Sébastien Helleu
dec237b104
irc: rename "ssl" options to "tls" (issue #1903 )
2023-04-12 17:17:30 +02:00
Sébastien Helleu
23b870ec1d
core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls (issue #1903 )
2023-04-12 17:17:26 +02:00
Sébastien Helleu
9ccdc5aff6
irc: check that IRC URL starts with "irc" (issue #1903 )
2023-04-12 17:17:20 +02:00
Sébastien Helleu
62171c5974
irc: add more info in description of function irc_server_alloc_with_url (issue #1903 )
2023-04-12 17:17:13 +02:00
Sébastien Helleu
e5c1945931
irc: set gnutls_sess, tls_cert and tls_cert_key to NULL by default in server (issue #1903 )
2023-04-12 17:17:00 +02:00
Sébastien Helleu
0b20cb449a
tests: add tests on function irc_server_alloc_with_url
2023-04-05 21:17:03 +02:00
Sébastien Helleu
5c801f2741
irc: display a warning if command name in option irc.msgbuffer.* is not lower case
2023-04-05 21:04:54 +02:00
Sébastien Helleu
87216279ca
irc: display a warning if CTCP name in option irc.ctcp.* is not lower case
2023-04-05 20:56:48 +02:00
Sébastien Helleu
b6a59be317
irc: search options irc.ctcp.* with lower case ctcp string
2023-04-05 20:47:20 +02:00
Sébastien Helleu
1c3b871204
irc: don't switch to buffer of joined channel if it was not manually joined nor present in server autojoin option
2023-04-03 20:00:32 +02:00
Sébastien Helleu
ff85d00e7f
irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ( closes #1898 )
2023-04-02 13:49:25 +02:00
Sébastien Helleu
4aabe8681f
core, plugins: set options to NULL by default, refactor config init functions
2023-04-01 20:56:11 +02:00