Just a simple script, for the !redirect command :)
--Redirect Script by Pothead.
Bot = frmHub:GetHubBotName()
function ChatArrival(curUser, sData)
local s, e, cmd, addy = string.find(sData, "%b<> (%S+) (%S+)%|$");
if(cmd == "!redirect") then
if (curUser.bOperator ~= nil) then
if (string.find(addy, "[%c|\n\r]")) then
curUser:SendData(Bot, "Invalid address.")
else
SendToOps(Bot, curUser.sName.." changed redirect address to: "..addy)
frmHub:SetRedirectAddress(addy)
end
else
curUser:SendData(Bot, "You aren't aloud to use this.")
end
return 1;
end
end
Great script...Small and perfect...
But is there anyway to make more commands??
!userredirect
!slotredirect
etc etc....
Thanks Pothead thats just what i was looking for :D:D:D:D:D:D