Software /
code /
prosody
Comparison
plugins/mod_presence.lua @ 1211:d60e68855176
mod_presence: Lower some log levels to their correct values
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 28 May 2009 02:59:47 +0100 |
parent | 1210:342f401f354c |
child | 1245:be5fe60bd866 |
comparison
equal
deleted
inserted
replaced
1210:342f401f354c | 1211:d60e68855176 |
---|---|
130 end | 130 end |
131 end | 131 end |
132 end | 132 end |
133 stanza.attr.to = nil; -- reset it | 133 stanza.attr.to = nil; -- reset it |
134 else | 134 else |
135 log("error", "presence recieved from client with no roster"); | 135 log("warn", "presence recieved from client with no roster"); |
136 end | 136 end |
137 end | 137 end |
138 | 138 |
139 function send_presence_of_available_resources(user, host, jid, recipient_session, core_route_stanza) | 139 function send_presence_of_available_resources(user, host, jid, recipient_session, core_route_stanza) |
140 local h = hosts[host]; | 140 local h = hosts[host]; |
151 count = count + 1; | 151 count = count + 1; |
152 end | 152 end |
153 end | 153 end |
154 end | 154 end |
155 end | 155 end |
156 log("info", "broadcasted presence of "..count.." resources from "..user.."@"..host.." to "..jid); | 156 log("debug", "broadcasted presence of "..count.." resources from "..user.."@"..host.." to "..jid); |
157 return count; | 157 return count; |
158 end | 158 end |
159 | 159 |
160 function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza) | 160 function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza) |
161 local node, host = jid_split(from_bare); | 161 local node, host = jid_split(from_bare); |