Cleaned the definition of irc plugins' data structure.
This commit is contained in:
parent
738ad9e9bb
commit
5b8cffbf68
8 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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 ()
|
||||||
|
|
|
@ -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 ()
|
||||||
|
|
|
@ -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 ()
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module Hsbot.Irc.PluginCommons
|
module Hsbot.Irc.Plugin.Utils
|
||||||
( IrcPlugin
|
( IrcPlugin
|
||||||
, IrcPluginState (..)
|
, IrcPluginState (..)
|
||||||
, answerMsg
|
, answerMsg
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue