diff options
| author | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-05-15 18:03:15 +0000 |
|---|---|---|
| committer | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-05-15 18:03:15 +0000 |
| commit | c675c92a06761d6b28f8fdda8cc418b64a040c9a (patch) | |
| tree | ab99e34875ca832a867a73cc4fc0dc94cd5be6f4 /HsBot/Plugins/Base.hs | |
| parent | d80cee1ecddeb75e54de767c35f04a9a004eed12 (diff) | |
renamed Callbacks into Plugins
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@67 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'HsBot/Plugins/Base.hs')
| -rw-r--r-- | HsBot/Plugins/Base.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/HsBot/Plugins/Base.hs b/HsBot/Plugins/Base.hs new file mode 100644 index 0000000..a8acbfb --- /dev/null +++ b/HsBot/Plugins/Base.hs @@ -0,0 +1,12 @@ +module HsBot.Plugins.Base where + +import HsBot.Base.Env +import HsBot.Base.State + +type CallbackFunction = String -> SendMessage -> Env -> IO Env + +data Plugin a = Plugin { + cbPrio :: Integer, + cbFunction :: CallbackFunction +} + |
