commit 18998b0
delthas
·
2024-10-07 15:24:16 +0000 UTC
parent 6bb81e4
Display RPL_STATSCONN nicely
2 files changed,
+2,
-1
+1,
-0
1@@ -12,6 +12,7 @@ const (
2 rplEndofstats = "219" // <stats letter> :End of /STATS report
3 rplUmodeis = "221" // <modes>
4 rplStatsuptime = "242" // :Server Up <days> days <hours>:<minutes>:<seconds>
5+ rplStatsconn = "250" // :Highest connection count: <connections> (<clients> clients) (<total> connections received)
6 rplLuserclient = "251" // :<int> users and <int> services on <int> servers
7 rplLuserop = "252" // <int> :operator(s) online
8 rplLuserunknown = "253" // <int> :unknown connection(s)
+1,
-1
1@@ -1544,7 +1544,7 @@ func (s *Session) handleMessageRegistered(msg Message, playback bool) (Event, er
2 Prefix: "Stats",
3 Message: fmt.Sprintf("The server current uptime is: %s", msg.Params[len(msg.Params)-1]),
4 }, nil
5- case rplLuserclient:
6+ case rplStatsconn, rplLuserclient:
7 return InfoEvent{
8 Prefix: "Stats",
9 Message: msg.Params[len(msg.Params)-1],