From 3f39ebaa923ee5ce05a379313cbb046f093aa66a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Aug 2017 15:04:50 +0200 Subject: IRC: Send private messages when plugin is `queryOnly` If the plugin is defined as `queryOnly`, the response shouldn't be sent on the channel to everyone, it should instead be sent directly to the user in a private query message. Enable this functionality for the Help plugin so that help output only gets sent to the user requesting help. This ensures other channel participants don't get an annoyingly long section of output that they didn't ask for. --- src/Plugin/Help.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Plugin/Help.hs') diff --git a/src/Plugin/Help.hs b/src/Plugin/Help.hs index 258a80a..63143b1 100644 --- a/src/Plugin/Help.hs +++ b/src/Plugin/Help.hs @@ -14,6 +14,7 @@ help = defaultPlugin , perform = helpAction , command = "help" , description = "Show a list of available bot commands." + , queryOnly = True } helpAction :: PluginAction -- cgit v1.2.3