Changeset 217 in code for trunk/downstream.go


Ignore:
Timestamp:
Apr 3, 2020, 7:00:19 PM (5 years ago)
Author:
contact
Message:

Add NOTICE messages to ring buffer

References: https://todo.sr.ht/~emersion/soju/33

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r216 r217  
    721721                                msg = msg.Copy()
    722722                                switch msg.Command {
    723                                 case "PRIVMSG":
     723                                case "PRIVMSG", "NOTICE":
    724724                                        msg.Prefix = dc.marshalUserPrefix(uc, msg.Prefix)
    725725                                        msg.Params[0] = dc.marshalEntity(uc, msg.Params[0])
    726726                                default:
    727                                         panic("expected to consume a PRIVMSG message")
     727                                        panic(fmt.Sprintf("unexpected %q message", msg.Command))
    728728                                }
    729729
Note: See TracChangeset for help on using the changeset viewer.