From 1bcc03ce9a572434fc6bac0252f43f14d4643beb Mon Sep 17 00:00:00 2001 From: tj Date: Wed, 18 Nov 2009 16:26:38 +0100 Subject: [PATCH] Bit more functional testcase --- test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test.go b/test.go index e25ff14..faa6402 100644 --- a/test.go +++ b/test.go @@ -33,7 +33,11 @@ func main() { irc.Join("#ggpre") }*/ if event.Code == irc.IRC_WELCOME { - irccon.Join("#ggpre") + irccon.Join("#gotestchan") + } else if event.Code == irc.IRC_PRIVMSG { + if event.Message == "!test" { + irccon.Privmsg(event.Target, "Whatever man!"); + } } fmt.Printf("%#v\n", event); }