Skip to content

Commit 249e91b

Browse files
committed
Advertize ISUPPORT MAXTARGETS
It's probably to be as ignored as TARGMAX, but it doesn't hurt to have it
1 parent ebaee9e commit 249e91b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/irc/handler.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ defmodule M51.IrcConn.Handler do
581581
"CHANLIMIT=",
582582
"CHANTYPES=#!",
583583
"CHATHISTORY=1000",
584+
"MAXTARGETS=1",
584585
"PREFIX=",
585586
"TARGMAX=JOIN:1,PART:1",
586587
"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 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 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)