PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: Zigurds on 03 March, 2005, 22:03:03

Title: DCversion from - to
Post by: Zigurds on 03 March, 2005, 22:03:03
code-------------------------------------------------------------------------

------------------------------------------------------------------------------
--DCversion  
--not allow from - to
------------------------------------------------------------------------------

function NewUserConnected(curUser)
   if curUser.bOperator == nil and curUser.bHasTag and curUser.sClient == "DC++" and tonumber(curUser.sClientVersion) ~= nil then
      if((tonumber(curUser.sClientVersion) >= 0.403) and (tonumber(curUser.sClientVersion) <= 0.665)) then
         curUser:SendData("<-HUBBOTS-> Not allowed DC 0.403 and fake client !!!)")
         curUser:Disconnect()
      end
   end
end