From a88ddeb67d6d8a31da4ac79d1c2d1a1d776c2c7c Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 6 Nov 2008 16:57:10 +0500 Subject: Fixed some whitespace. --- plugins/mod_version.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'plugins/mod_version.lua') diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index d351d75b..552480e0 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -7,13 +7,12 @@ local log = require "util.logger".init("mod_version"); local xmlns_version = "jabber:iq:version" local function handle_version_request(session, stanza) - if stanza.attr.type == "get" then - session.send(st.reply(stanza) - :query(xmlns_version) - :tag("name"):text("lxmppd"):up() - :tag("version"):text("pre-alpha"):up() - :tag("os"):text("The best one")); - end + if stanza.attr.type == "get" then + session.send(st.reply(stanza):query(xmlns_version) + :tag("name"):text("lxmppd"):up() + :tag("version"):text("pre-alpha"):up() + :tag("os"):text("The best one")); + end end add_iq_handler("c2s", xmlns_version, handle_version_request); -- cgit v1.2.3