Archived
1
0
Fork 0

Cleaned the definition of irc plugins' data structure.

This commit is contained in:
Julien Dessaux 2010-05-18 00:46:36 +02:00
parent 738ad9e9bb
commit 5b8cffbf68
8 changed files with 8 additions and 8 deletions

View file

@ -16,11 +16,11 @@ import qualified Data.Map as M
import Hsbot.Irc.Config import Hsbot.Irc.Config
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons
import Hsbot.Irc.Plugin.Core import Hsbot.Irc.Plugin.Core
import Hsbot.Irc.Plugin.Dummy import Hsbot.Irc.Plugin.Dummy
import Hsbot.Irc.Plugin.Ping import Hsbot.Irc.Plugin.Ping
import Hsbot.Irc.Plugin.Quote import Hsbot.Irc.Plugin.Quote
import Hsbot.Irc.Plugin.Utils
import Hsbot.Irc.Types import Hsbot.Irc.Types
-- | Sends a msg to a plugin -- | Sends a msg to a plugin

View file

@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch) import Prelude hiding (catch)
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point -- | The plugin's main entry point
ircBotPluginCore :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO () ircBotPluginCore :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()

View file

@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch) import Prelude hiding (catch)
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point -- | The plugin's main entry point
ircBotPluginDummy :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO () ircBotPluginDummy :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()

View file

@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch) import Prelude hiding (catch)
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point -- | The plugin's main entry point
ircBotPluginPing :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO () ircBotPluginPing :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()

View file

@ -18,7 +18,7 @@ import System.Posix.Files
import System.Random(randomRIO) import System.Random(randomRIO)
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons import Hsbot.Irc.Plugin.Utils
-- | A quote element -- | A quote element
data QuoteElt = QuoteElt data QuoteElt = QuoteElt

View file

@ -1,4 +1,4 @@
module Hsbot.Irc.PluginCommons module Hsbot.Irc.Plugin.Utils
( IrcPlugin ( IrcPlugin
, IrcPluginState (..) , IrcPluginState (..)
, answerMsg , answerMsg

View file

@ -13,7 +13,7 @@ import System.IO
import Hsbot.Irc.Config import Hsbot.Irc.Config
import Hsbot.Irc.Message import Hsbot.Irc.Message
import Hsbot.Irc.PluginCommons import Hsbot.Irc.Plugin.Utils
import Hsbot.Message import Hsbot.Message
-- | The Ircbot monad -- | The Ircbot monad

View file

@ -45,11 +45,11 @@ Library
Hsbot.Irc.Core Hsbot.Irc.Core
Hsbot.Irc.Message Hsbot.Irc.Message
Hsbot.Irc.Plugin Hsbot.Irc.Plugin
Hsbot.Irc.PluginCommons
Hsbot.Irc.Plugin.Core Hsbot.Irc.Plugin.Core
Hsbot.Irc.Plugin.Dummy Hsbot.Irc.Plugin.Dummy
Hsbot.Irc.Plugin.Ping Hsbot.Irc.Plugin.Ping
Hsbot.Irc.Plugin.Quote Hsbot.Irc.Plugin.Quote
Hsbot.Irc.Plugin.Utils
Hsbot.Irc.Server Hsbot.Irc.Server
Hsbot.Irc.Types Hsbot.Irc.Types
Hsbot.Message Hsbot.Message