Improving a bit the Ping module's code.
This commit is contained in:
parent
aba484db54
commit
91f9db5be7
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue