ID:143005
 
Code:
client/New()
// if(!banned)
// banned = list("Guest")
if(banned.Find(src.key) || banned.Find("[src.address]"))


Problem description:

Whenever someone tries to log in and someone is banned, it will report "error: null.Find" and the person will be unable to log in. It didn't do this until I updated to 4.0 last night. I tried adding the lines that are commented above and it did absolutely nothing to the problem.
Your "banned" var is a var/list, right?
In response to Kaiochao2536
Yes

var/list/banned = list()

There's also a line that loads the list in World/New() from a savefile.
In response to Cowdude
It's fixed when you revert to 3.5?
In response to Kaiochao2536
Well I haven't tried that, but as it did literally work just yesterday before I updated to 4.0, and all I had changed in the code is that I added a colon inside a text string, I doubt that would fix it.

I think 4.0 did something different to how it saves my savefile, because I stuck the old savefile in the folder and now it works. I'll have to look at what the game does when it has no file to load the ban list from I guess.
In response to Cowdude
Savefiles are the same.. I'm sure it's just in your code.

Deleting or nullifying the ban list anywhere?

In response to Cowdude
You definitely need to make sure that the list isn't null. It's also possible that the list in the savefile is null, in which case you're loading a null list into the banned variable. You'll want to check that when loading.

Hiead