aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-08 04:22:15 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-08 04:22:15 +0100
commitaa77dac9dae9a6f15a78e1624fbe2fd9dd03fae6 (patch)
treea12162fad29e5a437d73e076b4e8e52bfa5451bf /plugins
parent2cbe18d731f1d6ab265adc8acf7ee17cfee1c0b1 (diff)
downloadprosody-aa77dac9dae9a6f15a78e1624fbe2fd9dd03fae6.tar.gz
prosody-aa77dac9dae9a6f15a78e1624fbe2fd9dd03fae6.zip
mod_uptime: Convert to unix line endings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_uptime.lua48
1 files changed, 24 insertions, 24 deletions
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua
index e52fd57e..ffb55a3c 100644
--- a/plugins/mod_uptime.lua
+++ b/plugins/mod_uptime.lua
@@ -7,27 +7,27 @@
--
-
-local st = require "util.stanza"
-
-local jid_split = require "util.jid".split;
-local t_concat = table.concat;
-
-local start_time = os.time();
-
-module:add_feature("jabber:iq:last");
-
-module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
- function (origin, stanza)
- if stanza.tags[1].name == "query" then
- if stanza.attr.type == "get" then
- local node, host, resource = jid_split(stanza.attr.to);
- if node or resource then
- -- TODO
- else
- origin.send(st.reply(stanza):tag("query", {xmlns = "jabber:iq:last", seconds = tostring(os.difftime(os.time(), start_time))}));
- return true;
- end
- end
- end
- end);
+
+local st = require "util.stanza"
+
+local jid_split = require "util.jid".split;
+local t_concat = table.concat;
+
+local start_time = os.time();
+
+module:add_feature("jabber:iq:last");
+
+module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
+ function (origin, stanza)
+ if stanza.tags[1].name == "query" then
+ if stanza.attr.type == "get" then
+ local node, host, resource = jid_split(stanza.attr.to);
+ if node or resource then
+ -- TODO
+ else
+ origin.send(st.reply(stanza):tag("query", {xmlns = "jabber:iq:last", seconds = tostring(os.difftime(os.time(), start_time))}));
+ return true;
+ end
+ end
+ end
+ end);