summaryrefslogtreecommitdiff
path: root/Hsbot
diff options
context:
space:
mode:
authorJulien Dessaux2010-05-18 00:46:36 +0200
committerJulien Dessaux2010-05-18 00:46:36 +0200
commit5b8cffbf6809b378aab9c6e1f7601112d810b709 (patch)
treef48748168b7a56f4235c50f8f8bfa928d61ccdea /Hsbot
parentRemoved thread ids from plugins data structure. (diff)
downloadhsbot-5b8cffbf6809b378aab9c6e1f7601112d810b709.tar.gz
hsbot-5b8cffbf6809b378aab9c6e1f7601112d810b709.tar.bz2
hsbot-5b8cffbf6809b378aab9c6e1f7601112d810b709.zip
Cleaned the definition of irc plugins' data structure.
Diffstat (limited to 'Hsbot')
-rw-r--r--Hsbot/Irc/Plugin.hs2
-rw-r--r--Hsbot/Irc/Plugin/Core.hs2
-rw-r--r--Hsbot/Irc/Plugin/Dummy.hs2
-rw-r--r--Hsbot/Irc/Plugin/Ping.hs2
-rw-r--r--Hsbot/Irc/Plugin/Quote.hs2
-rw-r--r--Hsbot/Irc/Plugin/Utils.hs (renamed from Hsbot/Irc/PluginCommons.hs)2
-rw-r--r--Hsbot/Irc/Types.hs2
7 files changed, 7 insertions, 7 deletions
diff --git a/Hsbot/Irc/Plugin.hs b/Hsbot/Irc/Plugin.hs
index 525ab8f..3e6bef0 100644
--- a/Hsbot/Irc/Plugin.hs
+++ b/Hsbot/Irc/Plugin.hs
@@ -16,11 +16,11 @@ import qualified Data.Map as M
import Hsbot.Irc.Config
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
import Hsbot.Irc.Plugin.Core
import Hsbot.Irc.Plugin.Dummy
import Hsbot.Irc.Plugin.Ping
import Hsbot.Irc.Plugin.Quote
+import Hsbot.Irc.Plugin.Utils
import Hsbot.Irc.Types
-- | Sends a msg to a plugin
diff --git a/Hsbot/Irc/Plugin/Core.hs b/Hsbot/Irc/Plugin/Core.hs
index 9987a89..0297e2c 100644
--- a/Hsbot/Irc/Plugin/Core.hs
+++ b/Hsbot/Irc/Plugin/Core.hs
@@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch)
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
+import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point
ircBotPluginCore :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()
diff --git a/Hsbot/Irc/Plugin/Dummy.hs b/Hsbot/Irc/Plugin/Dummy.hs
index c543b90..4e10644 100644
--- a/Hsbot/Irc/Plugin/Dummy.hs
+++ b/Hsbot/Irc/Plugin/Dummy.hs
@@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch)
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
+import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point
ircBotPluginDummy :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()
diff --git a/Hsbot/Irc/Plugin/Ping.hs b/Hsbot/Irc/Plugin/Ping.hs
index 90579c4..57418b3 100644
--- a/Hsbot/Irc/Plugin/Ping.hs
+++ b/Hsbot/Irc/Plugin/Ping.hs
@@ -8,7 +8,7 @@ import Control.Monad.State
import Prelude hiding (catch)
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
+import Hsbot.Irc.Plugin.Utils
-- | The plugin's main entry point
ircBotPluginPing :: Chan IrcBotMsg -> Chan IrcBotMsg -> IO ()
diff --git a/Hsbot/Irc/Plugin/Quote.hs b/Hsbot/Irc/Plugin/Quote.hs
index 31eaeaf..0335d8b 100644
--- a/Hsbot/Irc/Plugin/Quote.hs
+++ b/Hsbot/Irc/Plugin/Quote.hs
@@ -18,7 +18,7 @@ import System.Posix.Files
import System.Random(randomRIO)
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
+import Hsbot.Irc.Plugin.Utils
-- | A quote element
data QuoteElt = QuoteElt
diff --git a/Hsbot/Irc/PluginCommons.hs b/Hsbot/Irc/Plugin/Utils.hs
index 51f9473..1e54d3a 100644
--- a/Hsbot/Irc/PluginCommons.hs
+++ b/Hsbot/Irc/Plugin/Utils.hs
@@ -1,4 +1,4 @@
-module Hsbot.Irc.PluginCommons
+module Hsbot.Irc.Plugin.Utils
( IrcPlugin
, IrcPluginState (..)
, answerMsg
diff --git a/Hsbot/Irc/Types.hs b/Hsbot/Irc/Types.hs
index 7ee716f..78e663b 100644
--- a/Hsbot/Irc/Types.hs
+++ b/Hsbot/Irc/Types.hs
@@ -13,7 +13,7 @@ import System.IO
import Hsbot.Irc.Config
import Hsbot.Irc.Message
-import Hsbot.Irc.PluginCommons
+import Hsbot.Irc.Plugin.Utils
import Hsbot.Message
-- | The Ircbot monad