Stop users from registering with keyword

Wolverine

Member
Aug 1, 2014
87
3
im looking to stop users from registering with a keyword such as MOD- or from them changing there username to that in :flagme
 

Mikee

Active Member
Jul 8, 2017
162
102
go to the flagmecommand.cs or whatever it's called and check the packet.popstring[0:2]. If it contains MOD then when they click Ok simply return a sendwhisper saying that they can not name themselves that, and return; before changeusernamecomposer packet header gets called.

as far as registering just find the register function in the CMS and do something the same.
 

NeedForSpreed

Member
May 18, 2014
326
71
There's a function in RevCMS in class.users that's named something with Valid. In the if statement check if the username contains the banned keys. Here's an example: if (strpos($username, 'MOD') !== false)

Skickat från min FRD-L09 via Tapatalk
 

Users who are viewing this thread

Top