Hola!

Was wondering if anyon has had any success with peldi's 'Banning IPs' codes? http://www.peldi.com/blog/000062.html. I have been trying to figure out exactly where to place:

In the FCChat constructor:

this.bannedIPs_so = SharedObject.get(this.prefix+"bannedIPs", true);
this.bannedIPs = this.bannedIPs_so.getProperty("banned");
if (this.bannedIPs == undefined)
this.bannedIPs = new Object();

and

in the FCChat.prototype.connect definition, add this to the top:


if (this.isBanned(client.ip))
application.disconnect(client);

I know the last part goes under:

// send a message to all others participating in the chat session
FCChat.prototype.sendMessage = function( client, mesg ) {

var cglobal = this.getClientGlobalStorage(client);

// PUT THE NEW CODE HERE!
// ---

// ---

mesg = this.hiliteURLs(mesg);

Hope someone can help me on this. I thank you in advance.

Antroy