mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 16:42:53 +00:00
Removed debug fmt.Printf from ParsePacket.
This commit is contained in:
@@ -2,7 +2,6 @@ package irc
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -74,8 +73,6 @@ func ParsePacket(line string) (Event, error) {
|
||||
event.verb = tokens[0]
|
||||
event.Args = tokens[1:]
|
||||
|
||||
fmt.Printf("%#+v\n", split)
|
||||
|
||||
// Parse CTCP
|
||||
if (event.verb == "PRIVMSG" || event.verb == "NOTICE") && strings.HasPrefix(event.Text, "\x01") {
|
||||
verbtext := strings.SplitN(strings.Replace(event.Text, "\x01", "", 2), " ", 2)
|
||||
|
||||
Reference in New Issue
Block a user