diff options
author | Wim <wim@42.be> | 2017-07-28 14:26:26 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-07-28 14:26:26 +0200 |
commit | 38d09dba2e02a3136ea202cea8b6df58dea19d1d (patch) | |
tree | 9108e0e1ad5db19c1d9cdb3eb1bbfc412b3fd91a /vendor/github.com/thoj/go-ircevent/examples | |
parent | fafd0c68e9d0b0db601465da2ab52ee8a47302e5 (diff) | |
download | matterbridge-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/examples')
-rw-r--r-- | vendor/github.com/thoj/go-ircevent/examples/simple/simple.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/github.com/thoj/go-ircevent/examples/simple/simple.go b/vendor/github.com/thoj/go-ircevent/examples/simple/simple.go deleted file mode 100644 index f2c27c60..00000000 --- a/vendor/github.com/thoj/go-ircevent/examples/simple/simple.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "github.com/thoj/go-ircevent" - "crypto/tls" - "fmt" -) - -const channel = "#go-eventirc-test"; -const serverssl = "irc.freenode.net:7000" - -func main() { - ircnick1 := "blatiblat" - irccon := irc.IRC(ircnick1, "IRCTestSSL") - irccon.VerboseCallbackHandler = true - irccon.Debug = true - irccon.UseTLS = true - irccon.TLSConfig = &tls.Config{InsecureSkipVerify: true} - irccon.AddCallback("001", func(e *irc.Event) { irccon.Join(channel) }) - irccon.AddCallback("366", func(e *irc.Event) { }) - err := irccon.Connect(serverssl) - if err != nil { - fmt.Printf("Err %s", err ) - return - } - irccon.Loop() -} |