metzen / ingress-notify

Expanded notification functionality for Ingress.
Other
12 stars 6 forks source link

Rate limit user+portal combo. #3

Closed arantius closed 11 years ago

arantius commented 11 years ago

Only send a message to a given user+portal combo once in two minutes, by using a memcache key per combo.

Tested only by calling SendMessage() from the local interactive console.

arantius commented 11 years ago

Suggestion, lost I think on the now-overwritten commit, to keep a single xmpp.send_message() done.