summaryrefslogtreecommitdiffstats
path: root/bot/plugins_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bot/plugins_test.go')
-rw-r--r--bot/plugins_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/bot/plugins_test.go b/bot/plugins_test.go
index 04129c9..a9a0eff 100644
--- a/bot/plugins_test.go
+++ b/bot/plugins_test.go
@@ -258,6 +258,26 @@ var eventTests = []struct {
},
},
{
+ desc: "papież",
+ in: irc.Message{
+ Command: "PRIVMSG",
+ Trailing: ":papież",
+ Params: []string{"#testchan-1"},
+ Prefix: &irc.Prefix{
+ Name: "idontexist",
+ User: "test",
+ Host: "framework",
+ },
+ },
+ expectedOut: []irc.Message{
+ {
+ Command: "PRIVMSG",
+ Params: []string{"#testchan-1"},
+ Trailing: "Papież adjective",
+ },
+ },
+ },
+ {
desc: "jan without args",
in: irc.Message{
Command: "PRIVMSG",