Bit more functional testcase

This commit is contained in:
tj 2009-11-18 16:26:38 +01:00
parent d5a4d7ea4a
commit 1bcc03ce9a

View File

@ -33,7 +33,11 @@ func main() {
irc.Join("#ggpre") irc.Join("#ggpre")
}*/ }*/
if event.Code == irc.IRC_WELCOME { 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); fmt.Printf("%#v\n", event);
} }