Add a simple test.

master
Robert Gerus 2015-12-16 19:29:36 +01:00
parent 52dee8ab20
commit 1d8d793a61
1 changed files with 12 additions and 0 deletions

View File

@ -785,6 +785,18 @@ var variableOutputTestEvents = []struct {
outRegex: *regexp.MustCompile("^bonjour [(]nsfw[)]: http://.*"),
function: bonjour,
},
{
in: irc.Message{
Command: "PRIVMSG",
Trailing: ":korwin",
Params: []string{"#testchan-1"},
Prefix: &irc.Prefix{
Name: "idontexist",
},
},
outRegex: *regexp.MustCompile("^."),
function: korwin,
},
{
in: irc.Message{
Command: "PRIVMSG",