-------------------------------------------------------- -- min_share_search.lua -- -- by: Black (2006) -- -- Megosztás ellenörzo -- -- e-mail: administrator@007.hu -- -- ocean.myip.hu:2006 - DCH -- -- working version by Hungarista -- -- fixed by ATAG -- modifications by maksalaatikko --------------------------------------------------------- iMinShare = 1 -- In GB exeptright = "key" -- A right which overrides the blocking function EventSearch(nick,sSearchString) if not string.find(GetUserRights(nick),exeptright) then local UserShare = GetUserShareNum (nick) if UserShare < iMinShare*1024^3 then ChatToNick("", nick, "You need to share atleast "..iMinShare.." GB to be able to search ".. "and download in this hub.") return true end end end