View Single Post
  #10  
Old 03-01-2008, 06:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..

PHP Code:
function onCreated() {
  
temp.test "Chompy,Te st,foo";
  
  echo(
test.tokenize());
  echo(
test.tokenize(","));

Output:

PHP Code:
Chompy,Te,st,foo   // size() = 4
Chompy,"Te st",foo // size() = 3 
So it should be ACCESS.tokenize(","); instead of ACCESS.tokenize(); in the hasAccess(acc) function
__________________

Last edited by Chompy; 03-01-2008 at 07:09 PM..
Reply With Quote