- Timestamp:
- Feb 6, 2020, 3:39:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r13 r14 10 10 ) 11 11 12 const ( 13 rpl_localusers = "265" 14 rpl_globalusers = "266" 15 ) 16 12 17 type upstreamConn struct { 13 18 net net.Conn 14 19 irc *irc.Conn 15 20 srv *Server 21 registered bool 16 22 } 17 23 … … 24 30 Params: []string{c.srv.Hostname}, 25 31 }) 32 case irc.RPL_WELCOME: 33 c.registered = true 34 case irc.RPL_YOURHOST, irc.RPL_CREATED, irc.RPL_MYINFO: 35 // Ignore 36 case irc.RPL_LUSERCLIENT, irc.RPL_LUSEROP, irc.RPL_LUSERUNKNOWN, irc.RPL_LUSERCHANNELS, irc.RPL_LUSERME: 37 // Ignore 38 case irc.RPL_MOTDSTART, irc.RPL_MOTD, irc.RPL_ENDOFMOTD: 39 // Ignore 40 case rpl_localusers, rpl_globalusers: 41 // Ignore 42 case irc.RPL_STATSVLINE, irc.RPL_STATSPING, irc.RPL_STATSBLINE, irc.RPL_STATSDLINE: 43 // Ignore 26 44 default: 27 45 c.srv.Logger.Printf("Unhandled upstream message: %v", msg) 28 return nil29 46 } 47 return nil 30 48 } 31 49
Note:
See TracChangeset
for help on using the changeset viewer.