mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
* lisp/erc/erc-join.el (erc-autojoin-channels-delayed): Only cancel `erc--autojoin-timer' in the server buffer in which it's local. After Emacs 28 brought commitfc66ec3322"Prefer defvar-local in erc", customizing `erc-autojoin-timing' to `ident' led to ERC emitting redundant JOINs before `erc-autojoin--join' was factored out. Additionally, don't bother binding options around the call to `erc-autojoin-channels' to shape its behavior, preferring instead to call the internal workhorse function directly. Ever since bug#5521 introduced those options, the logic in `erc-autojoin-channels' has ignored `erc-autojoin-delay' anyway, so long as `erc-autojoin-timing' isn't `ident'. This change may break third party advice. (erc-autojoin-after-ident): Restore code to cancel timer. It was erroneously deleted in959fbcf34b"favor network identities in erc-join". * test/lisp/erc/erc-join-tests.el: Require erc-tests-common atop file so tests can take advantage of common utilities. (erc-autojoin-channels--connect): Replace with a function and three separate tests. (erc-join-tests--autojoin-channels-connect): New function. (erc-autojoin-channels/server, erc-autojoin-channels/network) (erc-autojoin-channels/nomatch): New tests. (erc-autojoin-channels--delay): Replace with a function and three separate tests. Remove guard to skip test on Solaris. (erc-join-tests--autojoin-channels-ident): New function. (erc-autojoin-channels-delayed/server) (erc-autojoin-channels-delayed/network) (erc-autojoin-channels-delayed/nomatch): New tests. (erc-autojoin-channels--ident): Replace with function and two separate tests. (erc-join-tests--autojoin-after-ident): New function. (erc-autojoin-after-ident/server) (erc-autojoin-after-ident/network): New tests. (erc-join-tests--autojoin-add--common) (erc-join-tests--autojoin-add): Rename former to latter. (erc-autojoin-add--network) (erc-autojoin-add--network-extended-syntax) (erc-autojoin-add--network-id): Adjust arguments to fixture. (erc-autojoin-add--server): Use common utils. (erc-join-tests--autojoin-remove--common) (erc-join-tests--autojoin-remove): Rename former to latter. (erc-autojoin-remove--network) (erc-autojoin-remove--network-id): Adjust args for fixture. (erc-autojoin-remove--server): Use common utils. * test/lisp/erc/erc-scenarios-join-timing.el: New file. * test/lisp/erc/resources/erc-scenarios-common.el (erc-scenarios-common--run-in-term): In subprocess, don't use failure tally as exit status unless body form succeeds. * test/lisp/erc/resources/erc-tests-common.el (erc-tests-common-init-server-proc): Use `make-process' instead of `start-process'. (erc-tests-common-make-server-buf): Use `erc-server-current-nick' to create the `erc-networks--id' as a `erc-networks--id-qualifying' instance, which is more realistic than a "fixed" variant. * test/lisp/erc/resources/join/timing/connect-both.eld: New file. * test/lisp/erc/resources/join/timing/ident-both.eld: New file. (Bug#79017)
49 lines
3.7 KiB
Text
49 lines
3.7 KiB
Text
;; -*- mode: lisp-data; -*-
|
|
((nick 10 "NICK tester"))
|
|
((user 10 "USER tester 0 * :tester")
|
|
(0.04 ":silver.libera.chat NOTICE * :*** Checking Ident")
|
|
(0.01 ":silver.libera.chat NOTICE * :*** Looking up your hostname...")
|
|
(0.05 ":silver.libera.chat NOTICE * :*** Found your hostname: static-23-234-108-15.test.example.com")
|
|
(0.06 ":silver.libera.chat NOTICE * :*** No Ident response")
|
|
(0.01 ":silver.libera.chat 001 tester :Welcome to the Libera.Chat Internet Relay Chat Network tester")
|
|
(0.00 ":silver.libera.chat 002 tester :Your host is silver.libera.chat[108.181.132.149/6697], running version solanum-1.0-dev")
|
|
(0.00 ":silver.libera.chat 003 tester :This server was created Wed Jul 17 2024 at 21:44:04 UTC")
|
|
(0.00 ":silver.libera.chat 004 tester silver.libera.chat solanum-1.0-dev DGIMQRSZaghilopsuwz CFILMPQRSTbcefgijklmnopqrstuvz bkloveqjfI")
|
|
(0.00 ":silver.libera.chat 005 tester ACCOUNTEXTBAN=a ETRACE FNC SAFELIST ELIST=CMNTU CALLERID=g MONITOR=100 KNOCK WHOX CHANTYPES=# EXCEPTS INVEX :are supported by this server")
|
|
(0.00 ":silver.libera.chat 005 tester CHANMODES=eIbq,k,flj,CFLMPQRSTcgimnprstuz CHANLIMIT=#:250 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=Libera.Chat STATUSMSG=@+ CASEMAPPING=rfc1459 NICKLEN=16 MAXNICKLEN=16 CHANNELLEN=50 TOPICLEN=390 :are supported by this server")
|
|
(0.01 ":silver.libera.chat 005 tester DEAF=D TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: EXTBAN=$,agjrxz :are supported by this server")
|
|
(0.00 ":silver.libera.chat 251 tester :There are 56 users and 30210 invisible on 28 servers")
|
|
(0.00 ":silver.libera.chat 252 tester 42 :IRC Operators online")
|
|
(0.00 ":silver.libera.chat 253 tester 112 :unknown connection(s)")
|
|
(0.00 ":silver.libera.chat 254 tester 22712 :channels formed")
|
|
(0.01 ":silver.libera.chat 255 tester :I have 2940 clients and 1 servers")
|
|
(0.00 ":silver.libera.chat 265 tester 2940 3488 :Current local users 2940, max 3488")
|
|
(0.00 ":silver.libera.chat 266 tester 30266 34153 :Current global users 30266, max 34153")
|
|
(0.00 ":silver.libera.chat 250 tester :Highest connection count: 3489 (3488 clients) (1113835 connections received)")
|
|
(0.01 ":silver.libera.chat 375 tester :- silver.libera.chat Message of the Day - ")
|
|
(0.00 ":silver.libera.chat 372 tester :- This server is provided by Psychz Networks.")
|
|
(0.00 ":silver.libera.chat 372 tester :- Email: support@libera.chat")
|
|
(0.00 ":silver.libera.chat 376 tester :End of /MOTD command."))
|
|
|
|
((mode 10 "MODE tester +i"))
|
|
|
|
((join 10 "JOIN #chan")
|
|
(0.00 ":tester MODE tester :+Ziw")
|
|
(0.01 ":NickServ!NickServ@services.libera.chat NOTICE tester :This nickname is registered. Please choose a different nickname, or identify via \2/msg NickServ IDENTIFY tester <password>\2"))
|
|
|
|
((privmsg 10 "PRIVMSG NickServ :IDENTIFY changeme")
|
|
(0.06 ":tester!~tester@static-23-234-108-15.test.example.com JOIN #chan"))
|
|
|
|
((mode 10 "MODE #chan")
|
|
(0.00 ":silver.libera.chat 353 tester = #chan :tester bob")
|
|
(0.01 ":silver.libera.chat 366 tester #chan :End of /NAMES list.")
|
|
(0.06 ":NickServ!NickServ@services.libera.chat NOTICE tester :You are now identified for \2tester\2.")
|
|
(0.01 ":NickServ!NickServ@services.libera.chat NOTICE tester :Last login from: \2~tester@static-23-234-108-15.test.example.com\2 on Jul 26 07:22:24 2025 +0000.")
|
|
(0.02 ":silver.libera.chat 324 tester #chan +nt")
|
|
(0.01 ":silver.libera.chat 329 tester #chan 1621432263")
|
|
(0.00 ":silver.libera.chat 900 tester tester!~tester@static-23-234-108-15.test.example.com tester :You are now logged in as tester")
|
|
(0.01 ":silver.libera.chat 396 tester user/tester :is now your hidden host (set by services.)"))
|
|
|
|
((quit 10 "QUIT :")
|
|
(0.02 ":tester!~tester@user/tester QUIT :Client Quit")
|
|
(0.02 "ERROR :Closing Link: user/tester (Client Quit)"))
|