Archived
1
0
Fork 0

Added access controls to hsbot.

This commit is contained in:
Julien Dessaux 2011-08-08 11:39:41 +02:00
parent e74094d5d9
commit 1c8cab09cb
5 changed files with 32 additions and 6 deletions

View file

@ -76,6 +76,7 @@ runHsbot = do
mapM_ (liftIO . sendStr connhdl tlsCtx . IRC.encode . IRC.joinChan) channels
-- Finally we set the new bot state
asks envBotState >>= liftIO . flip putMVar BotState { botPlugins = M.empty
, botAccess = configAccess config
, botHooks = []
, botChannels = channels
, botNickname = nickname }