Changeset 36 in code for trunk/upstream.go


Ignore:
Timestamp:
Feb 7, 2020, 10:07:01 AM (5 years ago)
Author:
contact
Message:

Forward PRIVMSG messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r35 r36  
    279279                }
    280280                c.srv.lock.Unlock()
     281        case "PRIVMSG":
     282                c.srv.lock.Lock()
     283                for _, dc := range c.srv.downstreamConns {
     284                        dc.messages <- msg
     285                }
     286                c.srv.lock.Unlock()
    281287        case irc.RPL_YOURHOST, irc.RPL_CREATED:
    282288                // Ignore
Note: See TracChangeset for help on using the changeset viewer.