PtokaX forum

PtokaX => Support => Topic started by: MrZ on 17 October, 2004, 19:57:58

Title: Problems with people using $ in there nicks
Post by: MrZ on 17 October, 2004, 19:57:58
Hia

A "new" thing has started to show up in out hub, people using $ in there nicks.

I know that there is an option to "Check nick names" in ptax, but not sure how it works..

([[A-Z]{2}]) does this means no other then letters and numbers?, what if i wanna add something else like a
? ?

Many ppl using brackets [ ] like this -> [CS?]Deputy

Tnx :)

Z ya

Title:
Post by: NightLitch on 17 October, 2004, 20:35:23
try this for $, it's a start:

function NewUserConnected(sUser)
-- if strfind(sUser.sName, "$") then
if strfind(sUser.sName, "%$") then
sUser:SendData("Your nickname contains bad characters...")
sUser:Disconnect()
end
end

Best Regards / NightLitch
Title:
Post by: MrZ on 18 October, 2004, 06:40:19
:)) Tnx a lot NightLitch



Btw, I think one of our OP's might me yours as well :))
Title:
Post by: MrZ on 18 October, 2004, 18:31:17
Hia again

Just notised that the second line is remarked by a --

Is there a reason for that ?
Title:
Post by: bastya_elvtars on 18 October, 2004, 19:13:00
its commented cause its bad and NL wrote a new one instead of putting a % into the original :P
Title:
Post by: MrZ on 19 October, 2004, 06:33:57
Guessed, just wondered if there was a special reason for leaving it and not removing it, maybe there was..... to show its bad - hehe

Tnx a lot, Both of U

Z ya
Title:
Post by: nErBoS on 19 October, 2004, 13:23:19
Hi,

The char "$" is a magical char used in strfind there for to not get some invalid data is best to use "%$" that search for a real "$".

Best regards, nErBoS
Title:
Post by: MrZ on 19 October, 2004, 17:38:25
tnx a lot to you all guys... ow u one,,

if u ever get around Halmstad a round is on me
Title:
Post by: NightLitch on 19 October, 2004, 17:50:59
QuoteOriginally posted by MrZ
tnx a lot to you all guys... ow u one,,

if u ever get around Halmstad a round is on me

Well round up the beet mate... Am just some miles away.

Vad ?r det fr?n Ume? till Halmstad ???

Ladda upp jag kommer ;-p

/NightLitch
Title:
Post by: _Satan_ on 09 November, 2004, 00:19:28
I have some users (perhaps) with empty nick with 0 sharing i cant get whats that .