Remove unnecessary debug output

This commit is contained in:
kayos@tcp.direct 2022-03-16 10:09:43 -07:00
parent 9c72236c15
commit de1dae9799
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
6 changed files with 3 additions and 12 deletions

View File

@ -5,7 +5,6 @@
package girc
import (
"os"
"reflect"
"testing"
)
@ -17,7 +16,7 @@ func TestCapSupported(t *testing.T) {
User: "user",
SASL: &SASLPlain{User: "test", Pass: "example"},
SupportedCaps: map[string][]string{"example": nil},
Debug: os.Stdout,
// Debug: os.Stdout,
})
var ok bool

View File

@ -5,7 +5,6 @@
package girc
import (
"os"
"strings"
"testing"
"time"
@ -18,7 +17,6 @@ func TestDisableTracking(t *testing.T) {
Nick: "test",
User: "test",
Name: "Testing123",
Debug: os.Stdout,
})
if client.Handlers.internal.len() < 1 {
@ -84,7 +82,6 @@ func TestClientLifetime(t *testing.T) {
Nick: "test",
User: "test",
Name: "Testing123",
Debug: os.Stdout,
})
tm := client.Lifetime()

View File

@ -8,7 +8,7 @@ import (
"bufio"
"bytes"
"net"
"os"
"sync/atomic"
"testing"
"time"
@ -101,7 +101,6 @@ func genMockConn() (client *Client, clientConn net.Conn, serverConn net.Conn) {
Nick: "test",
User: "test",
Name: "Testing123",
Debug: os.Stdout,
})
conn1, conn2 := net.Pipe()

View File

@ -152,7 +152,7 @@ const (
RPL_LISTEND = "323"
RPL_UNIQOPIS = "325"
RPL_CHANNELMODEIS = "324"
RPL_CREATIONTIME = "329"
RPL_CREATIONTIME = "329"
RPL_NOTOPIC = "331"
RPL_TOPIC = "332"
RPL_INVITING = "341"

View File

@ -301,7 +301,6 @@ func handleCTCPSource(client *Client, ctcp CTCPEvent) {
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
// local time.
func handleCTCPTime(client *Client, ctcp CTCPEvent) {
@ -316,7 +315,6 @@ func handleCTCPFinger(client *Client, ctcp CTCPEvent) {
return
}
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)))

View File

@ -35,7 +35,6 @@ func Example_bare() {
Port: 6667,
Nick: "test",
User: "user",
Debug: os.Stdout,
})
if err := client.Connect(); err != nil {
@ -52,7 +51,6 @@ func Example_simple() {
Nick: "test",
User: "user",
Name: "Example bot",
Debug: os.Stdout,
})
client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) {