forked from External/ergo
urgh this should not even be commited yet, this will all be squashed out
This commit is contained in:
parent
dbca03e948
commit
e83283e7fd
7 changed files with 1117 additions and 1124 deletions
|
|
@ -9,15 +9,16 @@ import (
|
|||
"runtime/debug"
|
||||
"runtime/pprof"
|
||||
"time"
|
||||
|
||||
"github.com/DanielOaks/girc-go/ircmsg"
|
||||
)
|
||||
|
||||
func (msg *DebugCommand) HandleServer(server *Server) {
|
||||
client := msg.Client()
|
||||
func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||
if !client.flags[Operator] {
|
||||
return
|
||||
}
|
||||
|
||||
switch msg.subCommand {
|
||||
switch msg.Params[0] {
|
||||
case "GCSTATS":
|
||||
stats := debug.GCStats{
|
||||
Pause: make([]time.Duration, 10),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue