Browse Source

Removed debug fmt.Printf from ParsePacket.

master
Gisle Aune 6 years ago
parent
commit
36c2a5ea38
  1. 3
      event_packet.go

3
event_packet.go

@ -2,7 +2,6 @@ package irc
import ( import (
"errors" "errors"
"fmt"
"strings" "strings"
"time" "time"
) )
@ -74,8 +73,6 @@ func ParsePacket(line string) (Event, error) {
event.verb = tokens[0] event.verb = tokens[0]
event.Args = tokens[1:] event.Args = tokens[1:]
fmt.Printf("%#+v\n", split)
// Parse CTCP // Parse CTCP
if (event.verb == "PRIVMSG" || event.verb == "NOTICE") && strings.HasPrefix(event.Text, "\x01") { if (event.verb == "PRIVMSG" || event.verb == "NOTICE") && strings.HasPrefix(event.Text, "\x01") {
verbtext := strings.SplitN(strings.Replace(event.Text, "\x01", "", 2), " ", 2) verbtext := strings.SplitN(strings.Replace(event.Text, "\x01", "", 2), " ", 2)

Loading…
Cancel
Save