Login()
var/A = src.client.address
if(findtext(BannedIP,A,1)==1)
src << "I am sorry, but you are ip banned."
del src
var
list
BannedIP = list()
switch(alert("Are you sure you wish to ban [M]/[M.key]?","Confirmation","Yes","No"))
if("Yes")
var/A = M.client.address//Copys the IP
BannedIP+=A
Problem description:
Alright, those are really the only segments of code you need to see. If it is at ==1 it doesn't let me, the host connect. If I do ==0, it won't let others connect.
Also, Find (and findtext) returns the index of the found item, and 0 if nothing is found. So you don't want to use if(find()==1) - you want to use if(find()).