PtokaX forum

PtokaX => FAQ section => Topic started by: Alinus on 02 April, 2005, 22:42:28

Title: Please Help Me settings nick ptokax
Post by: Alinus on 02 April, 2005, 22:42:28
YES.Some nicks contain this: [EU][RO][ISP].all kinds of this.The point is NOT TO LET the users with those nicks in.Just simple nicks
Title:
Post by: bastya_elvtars on 02 April, 2005, 22:48:16
So you want a script that checks whether nicks contain letters and numbers (and underscores) only?
Title:
Post by: bastya_elvtars on 02 April, 2005, 23:07:22
Try this... not tested.

function MyINFOArrival(user,data)
local _,_,nick=string.find(data,"%$MyINFO %$ALL (%S+)")
if nick then
if string.find(nick,"[%W^%_]") then
user:SendData("NickCheck","Only letters, numbers and underscores are allowed in nick!")
end
end
end