summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/thoj/go-ircevent/irc_struct.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-28 14:26:26 +0200
committerWim <wim@42.be>2017-07-28 14:26:26 +0200
commit38d09dba2e02a3136ea202cea8b6df58dea19d1d (patch)
tree9108e0e1ad5db19c1d9cdb3eb1bbfc412b3fd91a /vendor/github.com/thoj/go-ircevent/irc_struct.go
parentfafd0c68e9d0b0db601465da2ab52ee8a47302e5 (diff)
downloadmatterbridge-msglm-38d09dba2e02a3136ea202cea8b6df58dea19d1d.tar.gz
matterbridge-msglm-38d09dba2e02a3136ea202cea8b6df58dea19d1d.tar.bz2
matterbridge-msglm-38d09dba2e02a3136ea202cea8b6df58dea19d1d.zip
Update vendor (go-irc)
Diffstat (limited to 'vendor/github.com/thoj/go-ircevent/irc_struct.go')
-rw-r--r--vendor/github.com/thoj/go-ircevent/irc_struct.go73
1 files changed, 0 insertions, 73 deletions
diff --git a/vendor/github.com/thoj/go-ircevent/irc_struct.go b/vendor/github.com/thoj/go-ircevent/irc_struct.go
deleted file mode 100644
index a188d9d9..00000000
--- a/vendor/github.com/thoj/go-ircevent/irc_struct.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2009 Thomas Jager <mail@jager.no> All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package irc
-
-import (
- "crypto/tls"
- "log"
- "net"
- "sync"
- "time"
-)
-
-type Connection struct {
- sync.Mutex
- sync.WaitGroup
- Debug bool
- Error chan error
- Password string
- UseTLS bool
- UseSASL bool
- SASLLogin string
- SASLPassword string
- SASLMech string
- TLSConfig *tls.Config
- Version string
- Timeout time.Duration
- PingFreq time.Duration
- KeepAlive time.Duration
- Server string
-
- socket net.Conn
- pwrite chan string
- end chan struct{}
-
- nick string //The nickname we want.
- nickcurrent string //The nickname we currently have.
- user string
- registered bool
- events map[string]map[int]func(*Event)
-
- QuitMessage string
- lastMessage time.Time
-
- VerboseCallbackHandler bool
- Log *log.Logger
-
- stopped bool
- quit bool //User called Quit, do not reconnect.
-}
-
-// A struct to represent an event.
-type Event struct {
- Code string
- Raw string
- Nick string //<nick>
- Host string //<nick>!<usr>@<host>
- Source string //<host>
- User string //<usr>
- Arguments []string
- Connection *Connection
-}
-
-// Retrieve the last message from Event arguments.
-// This function leaves the arguments untouched and
-// returns an empty string if there are none.
-func (e *Event) Message() string {
- if len(e.Arguments) == 0 {
- return ""
- }
- return e.Arguments[len(e.Arguments)-1]
-}