Software / code / prosody
Comparison
core/s2smanager.lua @ 5367:56db8f2c8563
s2smanager: Remove unused function parameter
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 22 Mar 2013 14:50:43 +0000 |
| parent | 5366:c1357b7fbca3 |
| child | 5447:92b88476873a |
comparison
equal
deleted
inserted
replaced
| 5366:c1357b7fbca3 | 5367:56db8f2c8563 |
|---|---|
| 36 session.log = logger_init("s2sin"..tostring(session):match("[a-f0-9]+$")); | 36 session.log = logger_init("s2sin"..tostring(session):match("[a-f0-9]+$")); |
| 37 incoming_s2s[session] = true; | 37 incoming_s2s[session] = true; |
| 38 return session; | 38 return session; |
| 39 end | 39 end |
| 40 | 40 |
| 41 function new_outgoing(from_host, to_host, connect) | 41 function new_outgoing(from_host, to_host) |
| 42 local host_session = { to_host = to_host, from_host = from_host, host = from_host, | 42 local host_session = { to_host = to_host, from_host = from_host, host = from_host, |
| 43 notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; | 43 notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; |
| 44 hosts[from_host].s2sout[to_host] = host_session; | 44 hosts[from_host].s2sout[to_host] = host_session; |
| 45 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); | 45 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |
| 46 host_session.log = logger_init(conn_name); | 46 host_session.log = logger_init(conn_name); |