Refactored some minor stuff
This commit is contained in:
parent
b9c8e4d404
commit
2f270f8bdf
5 changed files with 14 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
module Hsbot.Main
|
||||
(imain
|
||||
( imain
|
||||
) where
|
||||
|
||||
import System.IO
|
||||
|
@ -18,7 +18,9 @@ imain modul' reboot = imain' modul' reboot newbot
|
|||
-- | Bot's main entry point
|
||||
imain' :: Module -> Reboot -> Bot -> IO ()
|
||||
imain' modul' reboot bot = do
|
||||
putStrLn "Connecting servers..."
|
||||
servers' <- mapM connectServer (ircServers C.config)
|
||||
putStrLn "Joining channels..."
|
||||
mapM_ initServer servers'
|
||||
return ()
|
||||
|
||||
|
|
Reference in a new issue