Thread: Bad null

Results 1 to 4 of 4
  1. #1 Bad null 
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    ok when ppl try 2 log in like say with a name that i dont like

    its supose 2 disconnect them

    like lets say some1 trys 2 log in with an extra space like this
    "bob the bilder " or " bob the bilder" or even " bob the bilder "

    it leaves them as online, they dont appear online tho, they appear as a null

    and my anti mas ac thing makes it so only 2 ppl can login per ip

    so i m wondering, how i make it so it really disconnects them so if they put in an invalid username or invalid password or stuff like that, it really disconnects them

    this is my code

    Code:
    if (!playerName.matches("[A-Za-z0-9]+[A-Za-z0-9_ ]*[A-Za-z0-9]+") || playerName.matches("[A-Za-z0-9_ ]*(__|_ | _|  )+[A-Za-z0-9_ ]*")) {
    	System.out.println("Bad Username: Failed for '"+playerName+"'");
    	returnCode = 4;
    	disconnected = true;
    	return;
    }
    so help plawks ppl get pissed and it pisses me off....
     

  2. #2  
    Banned

    Join Date
    Dec 2006
    Age
    28
    Posts
    2,196
    Thanks given
    5
    Thanks received
    23
    Rep Power
    0
    i think u want if (playerName.contains("asdfasdf")) { blah blah }
     

  3. #3  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    no i want it so it reli disconnects the person...

    i have it 2 do it in the code but instead of disconnecting them, it makes them into a null and my anti flooder just causes it so they cant log in. since it wont let that many files log in....

    perhaps u have a way 2 make it actualy log them out?
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    remove thread per client. look for a tut.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •