From 1d8d793a61123ead06f8a07b2ffb1949bd2c909b Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Wed, 16 Dec 2015 19:29:36 +0100 Subject: [PATCH] Add a simple test. --- bot/plugins_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bot/plugins_test.go b/bot/plugins_test.go index fedd783..5b68922 100644 --- a/bot/plugins_test.go +++ b/bot/plugins_test.go @@ -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",