Code cleaning.
This commit is contained in:
parent
9abbc593a2
commit
4522289d55
3 changed files with 14 additions and 6 deletions
|
@ -13,7 +13,7 @@ import Hsbot.Types
|
|||
loadPlugin :: PluginId -> Env IO ()
|
||||
loadPlugin pId = do
|
||||
botMVar <- asks envBotState
|
||||
(liftIO $ takeMVar botMVar) >>= execStateT effectivelyLoadPlugin >>= liftIO . putMVar botMVar
|
||||
liftIO (takeMVar botMVar) >>= execStateT effectivelyLoadPlugin >>= liftIO . putMVar botMVar
|
||||
where
|
||||
effectivelyLoadPlugin :: Bot (Env IO) ()
|
||||
effectivelyLoadPlugin = do
|
||||
|
|
Reference in a new issue