Remove unnecessary debug output
This commit is contained in:
parent
9c72236c15
commit
de1dae9799
@ -5,7 +5,6 @@
|
|||||||
package girc
|
package girc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -17,7 +16,7 @@ func TestCapSupported(t *testing.T) {
|
|||||||
User: "user",
|
User: "user",
|
||||||
SASL: &SASLPlain{User: "test", Pass: "example"},
|
SASL: &SASLPlain{User: "test", Pass: "example"},
|
||||||
SupportedCaps: map[string][]string{"example": nil},
|
SupportedCaps: map[string][]string{"example": nil},
|
||||||
Debug: os.Stdout,
|
// Debug: os.Stdout,
|
||||||
})
|
})
|
||||||
|
|
||||||
var ok bool
|
var ok bool
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
package girc
|
package girc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -18,7 +17,6 @@ func TestDisableTracking(t *testing.T) {
|
|||||||
Nick: "test",
|
Nick: "test",
|
||||||
User: "test",
|
User: "test",
|
||||||
Name: "Testing123",
|
Name: "Testing123",
|
||||||
Debug: os.Stdout,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if client.Handlers.internal.len() < 1 {
|
if client.Handlers.internal.len() < 1 {
|
||||||
@ -84,7 +82,6 @@ func TestClientLifetime(t *testing.T) {
|
|||||||
Nick: "test",
|
Nick: "test",
|
||||||
User: "test",
|
User: "test",
|
||||||
Name: "Testing123",
|
Name: "Testing123",
|
||||||
Debug: os.Stdout,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
tm := client.Lifetime()
|
tm := client.Lifetime()
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -101,7 +101,6 @@ func genMockConn() (client *Client, clientConn net.Conn, serverConn net.Conn) {
|
|||||||
Nick: "test",
|
Nick: "test",
|
||||||
User: "test",
|
User: "test",
|
||||||
Name: "Testing123",
|
Name: "Testing123",
|
||||||
Debug: os.Stdout,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
conn1, conn2 := net.Pipe()
|
conn1, conn2 := net.Pipe()
|
||||||
|
@ -152,7 +152,7 @@ const (
|
|||||||
RPL_LISTEND = "323"
|
RPL_LISTEND = "323"
|
||||||
RPL_UNIQOPIS = "325"
|
RPL_UNIQOPIS = "325"
|
||||||
RPL_CHANNELMODEIS = "324"
|
RPL_CHANNELMODEIS = "324"
|
||||||
RPL_CREATIONTIME = "329"
|
RPL_CREATIONTIME = "329"
|
||||||
RPL_NOTOPIC = "331"
|
RPL_NOTOPIC = "331"
|
||||||
RPL_TOPIC = "332"
|
RPL_TOPIC = "332"
|
||||||
RPL_INVITING = "341"
|
RPL_INVITING = "341"
|
||||||
|
2
ctcp.go
2
ctcp.go
@ -301,7 +301,6 @@ func handleCTCPSource(client *Client, ctcp CTCPEvent) {
|
|||||||
client.Cmd.SendCTCPReply(ctcp.Source.ID(), CTCP_SOURCE, "https://github.com/yunginnanet/girc-atomic")
|
client.Cmd.SendCTCPReply(ctcp.Source.ID(), CTCP_SOURCE, "https://github.com/yunginnanet/girc-atomic")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// handleCTCPTime replies with a RFC 1123 (Z) formatted version of Go's
|
// handleCTCPTime replies with a RFC 1123 (Z) formatted version of Go's
|
||||||
// local time.
|
// local time.
|
||||||
func handleCTCPTime(client *Client, ctcp CTCPEvent) {
|
func handleCTCPTime(client *Client, ctcp CTCPEvent) {
|
||||||
@ -316,7 +315,6 @@ func handleCTCPFinger(client *Client, ctcp CTCPEvent) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
active := client.conn.lastActive.Load().(time.Time)
|
active := client.conn.lastActive.Load().(time.Time)
|
||||||
client.Cmd.SendCTCPReply(ctcp.Source.ID(), CTCP_FINGER, fmt.Sprintf("%s -- idle %s", client.Config.Name, time.Since(active)))
|
client.Cmd.SendCTCPReply(ctcp.Source.ID(), CTCP_FINGER, fmt.Sprintf("%s -- idle %s", client.Config.Name, time.Since(active)))
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ func Example_bare() {
|
|||||||
Port: 6667,
|
Port: 6667,
|
||||||
Nick: "test",
|
Nick: "test",
|
||||||
User: "user",
|
User: "user",
|
||||||
Debug: os.Stdout,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if err := client.Connect(); err != nil {
|
if err := client.Connect(); err != nil {
|
||||||
@ -52,7 +51,6 @@ func Example_simple() {
|
|||||||
Nick: "test",
|
Nick: "test",
|
||||||
User: "user",
|
User: "user",
|
||||||
Name: "Example bot",
|
Name: "Example bot",
|
||||||
Debug: os.Stdout,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) {
|
client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user