skyboy

Message Limiter

May 2nd, 2011
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:void((function(){var p=ChatRoom.prototype,a=p.receivedMessage,o={},t={};p.receivedMessage=function(e){var d=e.data,u=d.user.username,m=d.message;if(t[u]&&(t[u]>new Date().getTime()&&o[u]==m)){t[u]+=5000;return}t[u]=new Date().getTime()+10000;o[u]=m;a.call(this,e);}})())
RAW Paste Data