PtokaX forum

PtokaX => Support => Topic started by: user on 27 September, 2005, 04:37:05

Title: About nickname rule on PtokaX
Post by: user on 27 September, 2005, 04:37:05
Hello

I'd like to allow ONLY users with a couple of tags to come in.

Example

I'd like to allow only users with [BLA] and [BLA123] in the beginning of the nickname.

Is that possible with the nickname rule built in PtokaX or i have to make a script?
Title: hello
Post by: LiqUiD~TrolL on 27 September, 2005, 05:32:37
hi my friend,well r you useing robocop ??

or what ?  

in robocop the only you can do is to add Bad nicks

so i guess that can t happened from there

with ptoka x you can t just add the nick you want to allow in your hub, but you can make the hub private and register only the users you wanna come in with the TAG you like.so thats impossible i guess.

by fixing script is the only idea, but i havent seen any script like this ,while searching the forums

Does someone know any script like this ???? ;-)


have a nice day
Title:
Post by: bastya_elvtars on 27 September, 2005, 06:53:51
The nick rule should do the job in PtokaX. You need to know RegExp for it.

It can also be done by script, but there is no LUA5 variant. Gonna post the one I use.
Title:
Post by: Jemte on 27 September, 2005, 21:49:59
QuoteOriginally posted by user

I'd like to allow only users with [BLA] and [BLA123] in the beginning of the nickname.

Is that possible with the nickname rule built in PtokaX or i have to make a script?
put this in the Ptokax settings for the nickname rule
^(\[BLA\d+\]\w+)

that anchors the [BLA] part to the beginning of the name with ^
\[ and \] let you use the [] chars without their special regexp meaning
\d+ matches at least 1 digit if you want to allow [BLA122abcd] you need to change that \d+ to \w+ which is all aphanumeric characters

i believe that should work for [BLA]name , [BLA123]name, & [BLA3943343534543532]name