Skip to content

Commit 6c4f8d4

Browse files
committed
Add MSGREFTYPES=msgid ISUPPORT token
1 parent d3ff32a commit 6c4f8d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/irc/handler.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@ defmodule M51.IrcConn.Handler do
582582
"CHANTYPES=#!",
583583
"CHATHISTORY=1000",
584584
"MAXTARGETS=1",
585+
# https://github.com/ircv3/ircv3-specifications/pull/510
586+
"MSGREFTYPES=msgid",
585587
"PREFIX=",
586588
"TARGMAX=JOIN:1,PART:1",
587589
"UTF8ONLY",

test/irc/handler_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule M51.IrcConn.HandlerTest do
2020

2121
@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 userhost-in-names\r\n"
2222
@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 userhost-in-names\r\n"
23-
@isupport "CASEMAPPING=rfc3454 CLIENTTAGDENY=*,-draft/react,-draft/reply CHANLIMIT= CHANTYPES=#! CHATHISTORY=1000 MAXTARGETS=1 PREFIX= TARGMAX=JOIN:1,PART:1 UTF8ONLY :are supported by this server\r\n"
23+
@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
2626
start_supervised!({MockMatrixClient, {self()}})

0 commit comments

Comments
 (0)