--100% Blocker by chill cmd1 = "+blocknick" BlockedNicks = {} function Main() frmHub:EnableFullData(1) end BlockTriggs = { ["$Rev"] = 1, ["$Con"] = 2, } function DataArrival(curUser,data) if strsub(data,1,1) == "$" then local str1 = strsub(data,1,4) if BlockTriggs[str1] then if BlockedNicks[strlower(curUser.sName)] then curUser:SendData("*** You are not authorized to download.") return 1 elseif BlockTriggs[str1] == 1 then local _,_,conNick = strfind(data,"(%S+)|$") if BlockedNicks[strlower(conNick)] then curUser:SendData("*** The user you are trying to download is not authorized to upload.") return 1 end elseif BlockTriggs[str1] == 2 then local _,_,conNick = strfind(strsub(data,14,strlen(data)),"^(%S+)") if BlockedNicks[strlower(conNick)] then curUser:SendData("*** The user you are trying to download is not authorized to upload.") return 1 end end end elseif strsub(data,1,1) == "<" and curUser.bOperator then local _,_,cmd,nick = strfind(data,"^%b<>%s+(%S+)%s+(%S+)|$") if cmd and cmd == cmd1 then if BlockedNicks[strlower(nick)] then BlockedNicks[strlower(nick)] = nil curUser:SendData("*** "..nick.." is now unblocked.") else BlockedNicks[strlower(nick)] = 1 curUser:SendData("*** "..nick.." is now blocked.") end end end end