Changeset 673 in code for trunk/irc.go


Ignore:
Timestamp:
Nov 4, 2021, 11:24:15 AM (4 years ago)
Author:
hubert
Message:

Skip list/type A mode arguments

Type-A modes always have an argument[0], but soju doesn't care about
them since it doesn't keep track of mode lists (ban/invite/.. lists).

[0] https://modern.ircdocs.horse/#mode-message

Type A: Modes that add or remove an address to or from a list. These
modes MUST always have a parameter when sent from the server to a
client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/irc.go

    r662 r673  
    146146                        continue
    147147                }
    148                 if mt == modeTypeB || (mt == modeTypeC && plusMinus == '+') {
     148                if mt == modeTypeA {
     149                        nextArgument++
     150                } else if mt == modeTypeB || (mt == modeTypeC && plusMinus == '+') {
    149151                        if plusMinus == '+' {
    150152                                var argument string
Note: See TracChangeset for help on using the changeset viewer.