aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-10 02:11:00 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-10 02:11:00 +0100
commit972ff8be5e6ee9984dc8979a7ac57c15d39b0dde (patch)
tree522bbc082068f3a129924bea3d986efeedf715ca
parentf6567941afffcb853e6c3a69138a9428dd2fe973 (diff)
downloadprosody-972ff8be5e6ee9984dc8979a7ac57c15d39b0dde.tar.gz
prosody-972ff8be5e6ee9984dc8979a7ac57c15d39b0dde.zip
eventmanager: Convert from Windows line endings
-rw-r--r--core/eventmanager.lua48
1 files changed, 24 insertions, 24 deletions
diff --git a/core/eventmanager.lua b/core/eventmanager.lua
index 169be8e9..04f2256f 100644
--- a/core/eventmanager.lua
+++ b/core/eventmanager.lua
@@ -1,25 +1,25 @@
-
-local t_insert = table.insert;
-local ipairs = ipairs;
-
-module "eventmanager"
-
-local event_handlers = {};
-
-function add_event_hook(name, handler)
- if not event_handlers[name] then
- event_handlers[name] = {};
- end
- t_insert(event_handlers[name] , handler);
-end
-
-function fire_event(name, ...)
- local event_handlers = event_handlers[name];
- if event_handlers then
- for name, handler in ipairs(event_handlers) do
- handler(...);
- end
- end
-end
-
+
+local t_insert = table.insert;
+local ipairs = ipairs;
+
+module "eventmanager"
+
+local event_handlers = {};
+
+function add_event_hook(name, handler)
+ if not event_handlers[name] then
+ event_handlers[name] = {};
+ end
+ t_insert(event_handlers[name] , handler);
+end
+
+function fire_event(name, ...)
+ local event_handlers = event_handlers[name];
+ if event_handlers then
+ for name, handler in ipairs(event_handlers) do
+ handler(...);
+ end
+ end
+end
+
return _M; \ No newline at end of file