equal
deleted
inserted
replaced
129 local ip = recent_ips[session.ip]; |
129 local ip = recent_ips[session.ip]; |
130 ip.count = ip.count + 1; |
130 ip.count = ip.count + 1; |
131 |
131 |
132 if os_time() - ip.time < min_seconds_between_registrations then |
132 if os_time() - ip.time < min_seconds_between_registrations then |
133 ip.time = os_time(); |
133 ip.time = os_time(); |
134 session.send(st.error_reply(stanza, "cancel", "not-acceptable")); |
134 session.send(st.error_reply(stanza, "wait", "not-acceptable")); |
135 return; |
135 return; |
136 end |
136 end |
137 ip.time = os_time(); |
137 ip.time = os_time(); |
138 end |
138 end |
139 end |
139 end |