PtokaX forum

PtokaX => Support => Topic started by: diabolik2186 on 11 October, 2005, 09:50:38

Title: Nick Limits?
Post by: diabolik2186 on 11 October, 2005, 09:50:38
In the PtokaX exist a function named "Check nick names"...
how can i denied some characters?

Example...
If i would denied the use of "!" character in the Nick, what I would have to write in the box?
Title:
Post by: DJ Bert on 12 October, 2005, 00:49:21
You can enable or disable this check. If you have disabled it then all chars can be used. + and ! are most used in the script commands. If you enable it, then you can type in the box any char you want to block what you want.


Grtzzz

DJ Bert
Title: ptokax and regex
Post by: blacksun on 18 October, 2005, 15:48:51
hell'o,

i just implemented a rule in regex to alow only users with the folowing nick type to connect to the hub:

[COUNTRY_CODE]nick
ex: [US]nick

this implementation disconnects users that have [XX][XX][XX]nick type or nickname. (the one found by default in ptokax cannot disconnect this kind of users because it always finds a valid pattern. eg: [US][XX]nick is valid beacause " XX]n " is found by the regex engine and is considered valid. because i don't want to have such user-nicks in my hub, i implemented the following rule in regex, that excludes the above situation. the expression is as follows:

(?
thing is that, although it works in regexbuddy test, the ptokax regex engine does not recognise it (?) and disconnects even a valid nick, such as [US]nick .

can't seem to find a workaround this issue, so i ask for ure help and advice.

with respect,
F.C.
Title:
Post by: blacksun on 18 October, 2005, 16:53:50
ok, i made another rule, seems it works:

^(\[[A-Z]{2}\]\w+)