READ THE RULES
0 Members and 1 Guest are viewing this topic.
local Prefix = "[GUEST]"MyINFOArrival = function(user,data) if user.iProfile == -1 and user.sNick:sub(1,#Prefix) ~= Prefix then local Bot,Hub = SetMan.GetString(21),SetMan.GetString(0) local Msg1 = "Sorry "..user.sNick..", "..Hub.." requires you to prefix your nick with the tag: "..Prefix local Msg2 = "You may return with the nickname: "..Prefix..user.sNick..", you will now be disconnected." return Core.SendPmToUser(user,Bot,Msg1.."|"),Core.SendPmToUser(user,Bot,Msg2.."|"),Core.Disconnect(user),true endend
local Prefix = "[GUEST]"MyINFOArrival = function(user,data) if user.iProfile == -1 and user.sNick:sub(1,#Prefix):lower() ~= Prefix:lower() then local Bot,Hub = SetMan.GetString(21),SetMan.GetString(0) local Msg1 = "Sorry "..user.sNick..", "..Hub.." requires you to prefix your nick with the tag: "..Prefix local Msg2 = "You may return with the nickname: "..Prefix..user.sNick..", you will now be disconnected." return Core.SendPmToUser(user,Bot,Msg1.."|"),Core.SendPmToUser(user,Bot,Msg2.."|"),Core.Disconnect(user),true endend