Jump to content

Forbidden Names


Recommended Posts

+ for (String listid : FORBIDDEN_NAMES.split(","))
+ {
+ LIST_FORBIDDEN_NAMES.add(String.valueOf(listid));
+ }

listid is already a String, no need String.valueOf it.

 

As always you are right :D fixed

Link to comment
Share on other sites

You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES

+ for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))
Link to comment
Share on other sites

 

You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES

+ for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))

I love how you always help people but you eat their cookies in their kitchen :3

Link to comment
Share on other sites

And this is why people don't share anymore.

Ultimately you want implement a formula which will understand human eye letter similarities like I and l and then merge that with your current code. Also don't get values to lower. Use ignorecase.

Edited by .Elfocrash
Link to comment
Share on other sites

And this is why people don't share anymore.

 

Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ?  :P

Edited by Tryskell
Link to comment
Share on other sites

Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ? :P

I wasn't referring to you mate. Just on the general situation.

People learnt coding for low quality shares so the shares they now get to do are equally low.

 

Suggestions are always welcome.

Edited by .Elfocrash
Link to comment
Share on other sites

I wasn't referring to you mate. Just on the general situation.

People learnt coding for low quality shares so the shares they now get to do are equally low.

 

Suggestions are always welcome.

ppl share on other forums my friend...so i think something is not going well with you ppl and mean modarators.

 

Link to comment
Share on other sites

enough! locked.

 

Reason: 

  • Do not post simple java strings or stupid configuration codes. Such topics will be immediately locked
  • Badly coded shares will be locked for the sake of java
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...