getPlugin :: FilePath -> Bot s (LoadStatus Plugin)
getPlugin path = do
  conf <- readMVar =<< use botConf
  let pluginD = pluginDir conf 
      path' 
        | isRelative path = pluginD </> path
        | otherwise       = path
      includes = pluginDir conf : pluginIncludeDirs conf
  
  liftIO $ load_ path' [] "plugin"
getPlugin :: FilePath -> Bot s (LoadStatus Plugin)
getPlugin path = do
  conf <- readMVar =<< use botConf
  let pluginD = pluginDir conf 
      path' 
        | isRelative path = pluginD </> path
        | otherwise       = path
      includes = pluginDir conf : pluginIncludeDirs conf
  
  liftIO $ load_ path' [] "plugin"
getPlugin path = do
  conf <- readMVar =<< use botConf
  let pluginD = pluginDir conf 
      path' 
        | isRelative path = pluginD </> path
        | otherwise       = path
      includes = pluginDir conf : pluginIncludeDirs conf
  
  liftIO $ load_ path' [] "plugin"