summaryrefslogtreecommitdiff
path: root/Hsbot/Plugin/Ping.hs
diff options
context:
space:
mode:
authorJulien Dessaux2011-09-10 00:10:00 +0200
committerJulien Dessaux2011-09-10 00:10:00 +0200
commit900c242551f624f4ab5b3ea79fd51611b47bd95e (patch)
tree215be6ae5c35f08eaa1be497b504abc0b28ee7c6 /Hsbot/Plugin/Ping.hs
parentFixed compilation errors. Since I forgot to add the quote module to cabal the... (diff)
parentAdded score sorting for the duck module (diff)
downloadhsbot-900c242551f624f4ab5b3ea79fd51611b47bd95e.tar.gz
hsbot-900c242551f624f4ab5b3ea79fd51611b47bd95e.tar.bz2
hsbot-900c242551f624f4ab5b3ea79fd51611b47bd95e.zip
Merge branch 'master' into quoteModule
Conflicts: hsbot.cabal
Diffstat (limited to '')
-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