Archived
1
0
Fork 0

Improving a bit the Ping module's code.

This commit is contained in:
Julien Dessaux 2011-05-10 23:21:50 +02:00
parent aba484db54
commit 91f9db5be7

View file

@ -18,9 +18,7 @@ ping = PluginId
-- | The IrcPlugin monad main function
thePing :: Plugin (Env IO) ()
thePing = forever $ do
msg <- readMsg
eval msg
thePing = forever $ readMsg >>= eval
where
eval :: Message -> Plugin (Env IO) ()
eval (IncomingMsg msg)