Skip to content

Commit 477df0c

Browse files
committed
Advertize standard-replies capability
Not much point as we send standard replies unconditionally, but there's no harm in advertizing it anyway
1 parent 9838997 commit 477df0c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/irc/handler.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ defmodule M51.IrcConn.Handler do
7878
# https://ircv3.net/specs/extensions/server-time
7979
"server-time" => {:server_time, nil},
8080

81+
# https://ircv3.net/specs/extensions/standard-replies
82+
"standard-replies" => {:standard_replies, nil},
83+
8184
# https://ircv3.net/specs/extensions/userhost-in-names
8285
# not really useful; but kiwiirc/irc-framework interprets "foo:example.org"
8386
# as {nick: '', user: '', hostname: 'foo:example.org'} without this,

test/irc/handler_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ defmodule M51.IrcConn.HandlerTest do
1818
use ExUnit.Case, async: false
1919
doctest M51.IrcConn.Handler
2020

21-
@cap_ls_302 ":server. CAP * LS :account-tag batch draft/account-registration=before-connect draft/channel-rename draft/chathistory draft/multiline=max-bytes=8192 echo-message extended-join labeled-response message-tags sasl=PLAIN server-time soju.im/account-required userhost-in-names\r\n"
22-
@cap_ls ":server. CAP * LS :account-tag batch draft/account-registration draft/channel-rename draft/chathistory draft/multiline echo-message extended-join labeled-response message-tags sasl server-time soju.im/account-required userhost-in-names\r\n"
21+
@cap_ls_302 ":server. CAP * LS :account-tag batch draft/account-registration=before-connect draft/channel-rename draft/chathistory draft/multiline=max-bytes=8192 echo-message extended-join labeled-response message-tags sasl=PLAIN server-time soju.im/account-required standard-replies userhost-in-names\r\n"
22+
@cap_ls ":server. CAP * LS :account-tag batch draft/account-registration draft/channel-rename draft/chathistory draft/multiline echo-message extended-join labeled-response message-tags sasl server-time soju.im/account-required standard-replies userhost-in-names\r\n"
2323
@isupport "CASEMAPPING=rfc3454 CLIENTTAGDENY=*,-draft/react,-draft/reply CHANLIMIT= CHANTYPES=#! CHATHISTORY=1000 MAXTARGETS=1 MSGREFTYPES=msgid PREFIX= TARGMAX=JOIN:1,PART:1 UTF8ONLY :are supported by this server\r\n"
2424

2525
setup do

0 commit comments

Comments
 (0)