summaryrefslogtreecommitdiff
path: root/Hsbot/Plugin/Ping.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Hsbot/Plugin/Ping.hs')
-rw-r--r--Hsbot/Plugin/Ping.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Hsbot/Plugin/Ping.hs b/Hsbot/Plugin/Ping.hs
index 6d28ef9..9105630 100644
--- a/Hsbot/Plugin/Ping.hs
+++ b/Hsbot/Plugin/Ping.hs
@@ -11,12 +11,13 @@ import Prelude hiding (catch)
import Hsbot.Message
import Hsbot.Types
+-- | The ping plugin identity
ping :: PluginId
ping = PluginId
{ pluginName = "ping"
, pluginEp = thePing }
--- | The IrcPlugin monad main function
+-- | An IRC plugin that answer PING requests
thePing :: Plugin (Env IO) ()
thePing = forever $ readMsg >>= eval
where