summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2026-04-25 16:27:52 -0300
committerEuAndreh <eu@euandre.org>2026-04-25 16:27:52 -0300
commit1c22fc62fa73d78a399aa5ea9c56c39af0c13a6e (patch)
tree0e7efa82d80cabb829bb41df558929d379181382
parentMake NICK to same nick a no-op; add WHOIS channels/idle (diff)
downloadpapod-1c22fc62fa73d78a399aa5ea9c56c39af0c13a6e.tar.gz
papod-1c22fc62fa73d78a399aa5ea9c56c39af0c13a6e.tar.xz
Split RPL_ISUPPORT to stay under 15 params per line
Modern IRC limits a single 005 reply to 15 parameters, so the single line was at risk of being trimmed by spec-strict clients once new tokens crept in. Move half of the tokens onto a second 005 line and keep both under the limit.
-rw-r--r--src/papod.clj12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/papod.clj b/src/papod.clj
index 96b3572..61c4215 100644
--- a/src/papod.clj
+++ b/src/papod.clj
@@ -954,16 +954,18 @@
))
(numeric-reply client "005"
(str "AWAYLEN=200 CASEMAPPING=ascii"
- " CHANLIMIT=#:100 CHANMODES=,,l,nt"
+ " CHANLIMIT=#:100"
+ " CHANMODES=,,l,nt"
" CHANNELLEN=64 CHANTYPES=#"
" ELIST= HOSTLEN=64"
" KICKLEN=300 MAXLIST=b:50"
- " MAXTARGETS=4 MODES=4"
- " NETWORK=papod NICKLEN=30"
- " PREFIX=(ov)@+ STATUSMSG=@+"
+ " MAXTARGETS=4"
" :are supported by this server"))
(numeric-reply client "005"
- (str "TARGMAX=KICK:1,LIST:1,WHOIS:1"
+ (str "MODES=4 NETWORK=papod"
+ " NICKLEN=30 PREFIX=(ov)@+"
+ " STATUSMSG=@+"
+ " TARGMAX=KICK:1,LIST:1,WHOIS:1"
" TOPICLEN=390 USERLEN=18"
" UTF8ONLY"
" :are supported by this server"))