diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-02 20:32:44 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-02 20:32:44 +0000 |
commit | 44066a08973f29598540253e317ef6f9b98d5133 (patch) | |
tree | 3e5a6aa406deb0e644c123ad78c6a614c53f68c3 | |
parent | 6df0af47765087bbe8e54ddc1272b303fcc875d2 (diff) | |
download | prosody-44066a08973f29598540253e317ef6f9b98d5133.tar.gz prosody-44066a08973f29598540253e317ef6f9b98d5133.zip |
modulemanager, net.dns: Remove trailing whitespace
-rw-r--r-- | core/modulemanager.lua | 6 | ||||
-rw-r--r-- | net/dns.lua | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 6440f8b8..65a38ccb 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -175,7 +175,7 @@ function is_loaded(host, name) end function unload(host, name, ...) - local mod = get_module(host, name); + local mod = get_module(host, name); if not mod then return nil, "module-not-loaded"; end if module_has_method(mod, "unload") then @@ -282,7 +282,7 @@ function module_has_method(module, method) end function call_module_method(module, method, ...) - if module_has_method(module, method) then + if module_has_method(module, method) then local f = module.module[method]; return pcall(f, ...); else @@ -291,7 +291,7 @@ function call_module_method(module, method, ...) end ----- API functions exposed to modules ----------- --- Must all be in api.* +-- Must all be in api.* -- Returns the name of the current module function api:get_name() diff --git a/net/dns.lua b/net/dns.lua index c50e893c..2c008940 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -726,7 +726,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive local packet = sock:receive(); if packet then response = self:decode(packet); - if response and self.active[response.header.id] + if response and self.active[response.header.id] and self.active[response.header.id][response.question.raw] then --print('received response'); --self.print(response); |