ID:150283
 
I have a spam protector that gives a person three warnings then boots them after they get three and I want it to check for the host, so the host doesn't get booted.

Heres what I have tried:

mob
proc
checkwarn()
if(src.warning>=3)
src<<"You have been warned!"
if(world.address == client.address)
src<<"Because you're the host you can't be booted"
src.warning=0
else
Boot()
else
..()

Can someone please tell me where to look to find out how to make this work, I've also tried src.client.address.
If you host from within DreamSeeker, client.address is null. So you need to check for that as well:
if((world.address == client.address) || (!client.address))
In response to Air Mapster
Air Mapster wrote:
If you host from within DreamSeeker, client.address is null. So you need to check for that as well:
> if((world.address == client.address) || (!client.address))
>



Thanks, this code works too

if(world.address == client.address || !client.address)