-- -- Quickie Flood 1.0 -- by Mutor The Ugly -- Please use with caution. 8-) -- -- Syntax - +flood -- -- For ease, add this user command to your DC++ settings -> advanced -- -- Tick [*]Chat, [*]User Menu -- Name = Alt. Flood User -- Command = +flood %[nick] %[line:Flood-Count] %[line:Reason] -- bot = "[Sentry]" -- Rename to your main bot function Main() end function DataArrival(curUser, sData) sData=strsub(sData,1,-2) s,e,cmd,arg,arg2,arg3 = strfind(sData, "%b<>%s+(%S+)%s+(%S+)%s+(%S+)%s+(%S+)%s*") if (cmd=="+flood") then local usrnick = GetItemByName(arg) if curUser.iProfile == 0 then -- Who may use this tool? - 0 = Master 1= OP count = arg2 reason = arg3 for z=1,count do SendPmToNick(arg, z, "You have been flooded by [ "..curUser.sName.." ] . Reason:: "..reason.." |") end SendToAll(bot, curUser.sName.." has flooded "..arg.." "..arg2.." times because :"..reason) else SendToNick(curUser.sName,"[ Command Denied! ] :: Don't even think about it, you aint got the skills!") end return 1 end end